2009-09-23 23:32:31 +02:00
|
|
|
#ifndef MYSQL_EMBED_INCLUDED
|
|
|
|
#define MYSQL_EMBED_INCLUDED
|
|
|
|
|
2011-06-30 17:46:53 +02:00
|
|
|
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
|
2001-09-21 03:38:35 +03:00
|
|
|
|
|
|
|
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
|
2006-12-23 20:17:15 +01:00
|
|
|
the Free Software Foundation; version 2 of the License.
|
2001-09-21 03:38:35 +03:00
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2011-06-30 17:46:53 +02:00
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
2001-09-21 03:38:35 +03:00
|
|
|
|
|
|
|
/* Defines that are unique to the embedded version of MySQL */
|
|
|
|
|
|
|
|
#ifdef EMBEDDED_LIBRARY
|
|
|
|
|
|
|
|
/* Things we don't need in the embedded version of MySQL */
|
2003-07-04 11:40:10 +05:00
|
|
|
/* TODO HF add #undef HAVE_VIO if we don't want client in embedded library */
|
2001-09-21 03:38:35 +03:00
|
|
|
|
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.
2010-04-13 19:04:45 +04:00
|
|
|
#undef HAVE_DLOPEN /* No udf functions */
|
2003-03-04 15:02:49 +02:00
|
|
|
#undef HAVE_SMEM /* No shared memory */
|
2001-09-21 03:38:35 +03:00
|
|
|
|
|
|
|
#endif /* EMBEDDED_LIBRARY */
|
2009-09-23 23:32:31 +02:00
|
|
|
#endif /* MYSQL_EMBED_INCLUDED */
|