diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-07-13 17:48:06 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-07-13 17:48:06 +0200 |
commit | 3e9446a7426d13c8cc53937b0dc9a8ce17127ae3 (patch) | |
tree | ecca01e0ae52afde99aa9393a22a57f319fc208f /include/sha1.h | |
parent | 36519b8a830204f45ec4693c89b6bdb8c9c6b79b (diff) | |
download | mariadb-git-3e9446a7426d13c8cc53937b0dc9a8ce17127ae3.tar.gz |
SHA1 service
(because mysql_ssl library is built with -fvisibility=hidden)
Diffstat (limited to 'include/sha1.h')
-rw-r--r-- | include/sha1.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/include/sha1.h b/include/sha1.h index b20cc8f5026..d927cd26ad9 100644 --- a/include/sha1.h +++ b/include/sha1.h @@ -1,8 +1,7 @@ #ifndef SHA1_INCLUDED #define SHA1_INCLUDED -/* Copyright (c) 2002, 2006 MySQL AB, 2009 Sun Microsystems, Inc. - Use is subject to license terms. +/* Copyright (c) 2013, Monty Program Ab This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,13 +17,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define SHA1_HASH_SIZE 20 /* Hash size in bytes */ - -C_MODE_START - -void compute_sha1_hash(uint8 *digest, const char *buf, int len); -void compute_sha1_hash_multi(uint8 *digest, const char *buf1, int len1, - const char *buf2, int len2); -C_MODE_END +#include <mysql/service_sha1.h> +#define SHA1_HASH_SIZE MY_SHA1_HASH_SIZE +#define compute_sha1_hash(A,B,C) my_sha1(A,B,C) +#define compute_sha1_hash_multi(A,B,C,D,E) my_sha1_multi(A,B,C,D,E,NULL) #endif /* SHA__INCLUDED */ |