diff options
author | Konstantin Osipov <kostja@sun.com> | 2010-04-13 19:04:45 +0400 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2010-04-13 19:04:45 +0400 |
commit | 53fecff1ef023e5020d17dbe38ec8ee4fa499d12 (patch) | |
tree | 30820e84d6b99238e1ecd963c1995382a93a7cf6 /include/sslopt-vars.h | |
parent | 04b601a7fe4c87d0b72f8b14c306a14c005846d7 (diff) | |
download | mariadb-git-53fecff1ef023e5020d17dbe38ec8ee4fa499d12.tar.gz |
Backport of:
ChangeSet@1.2703, 2007-12-07 09:35:28-05:00, cmiller@zippy.cornsilk.net +40 -0
Bug#13174: SHA2 function
Patch contributed from Bill Karwin, paper unnumbered CLA in Seattle
Implement SHA2 functions.
Chad added code to make it work with YaSSL. Also, he removed the
(probable) bug of embedded server never using SSL-dependent
functions. (libmysqld/Makefile.am didn't read ANY autoconf defs.)
Function specification:
SHA2( string cleartext, integer hash_length )
-> string hash, or NULL
where hash_length is one of 224, 256, 384, or 512. If either is
NULL or a length is unsupported, then the result is NULL. The
resulting string is always the length of the hash_length parameter
or is NULL.
Include the canonical hash examples from the NIST in the test
results.
---
Polish and address concerns of reviewers.
Diffstat (limited to 'include/sslopt-vars.h')
-rw-r--r-- | include/sslopt-vars.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sslopt-vars.h b/include/sslopt-vars.h index 4493fbc59ab..d0eec3b6d74 100644 --- a/include/sslopt-vars.h +++ b/include/sslopt-vars.h @@ -16,7 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifdef HAVE_OPENSSL +#if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY) #ifdef SSL_VARS_NOT_STATIC #define SSL_STATIC #else |