1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Merge bk-internal.mysql.com:/home/bk/mysql-5.1

into  zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-maint
This commit is contained in:
cmiller@zippy.cornsilk.net
2007-01-31 16:24:28 -05:00
150 changed files with 2416 additions and 2532 deletions

View File

@ -1644,6 +1644,7 @@ ndb/src/kernel/error/liberror.dsp
ndb/src/kernel/ndbd ndb/src/kernel/ndbd
ndb/src/kernel/ndbd.dsp ndb/src/kernel/ndbd.dsp
ndb/src/kernel/vm/libkernel.dsp ndb/src/kernel/vm/libkernel.dsp
ndb/src/libndb.ver
ndb/src/libndbclient.dsp ndb/src/libndbclient.dsp
ndb/src/mgmapi/libmgmapi.dsp ndb/src/mgmapi/libmgmapi.dsp
ndb/src/mgmclient/libndbmgmclient.dsp ndb/src/mgmclient/libndbmgmclient.dsp
@ -2638,6 +2639,7 @@ storage/ndb/src/kernel/error/liberror.dsp
storage/ndb/src/kernel/ndbd storage/ndb/src/kernel/ndbd
storage/ndb/src/kernel/ndbd.dsp storage/ndb/src/kernel/ndbd.dsp
storage/ndb/src/kernel/vm/libkernel.dsp storage/ndb/src/kernel/vm/libkernel.dsp
storage/ndb/src/libndb.ver
storage/ndb/src/libndbclient.dsp storage/ndb/src/libndbclient.dsp
storage/ndb/src/mgmapi/libmgmapi.dsp storage/ndb/src/mgmapi/libmgmapi.dsp
storage/ndb/src/mgmclient/libndbmgmclient.dsp storage/ndb/src/mgmclient/libndbmgmclient.dsp

View File

@ -33,4 +33,12 @@
4561bde4qWhz1I8tkItXKex5uniipA 4561bde4qWhz1I8tkItXKex5uniipA
4562ba016dYH0JzszOqZ8p6psbKfnQ 4562ba016dYH0JzszOqZ8p6psbKfnQ
45771031yRCoM_ZfONdYchPvVEgLRg 45771031yRCoM_ZfONdYchPvVEgLRg
459a60d8rIxeTuhB3j_QsOwLGdcpng
459a61c9OS8PzIsdviZJDkybJ1y1uA
459a70691aYIfU2ohV0a3P5iTLpO2A
459a7422KF_P7PuU3YQ5qG6ZLEVpiA
459a74e4nRcXppMSBYeQQ5efDkTADg
45ae6628gqKTsUFfnoNExadETVIkbA 45ae6628gqKTsUFfnoNExadETVIkbA
45ba4faf2oqu6eR8fqecR3LfSNcYUg
45ba5238-NKl80QVXzdGo8hO9M75Xg
45c0fdfb2mz6NdOIsLenJtf6_ZelTA

View File

@ -524,6 +524,17 @@ rl_redisplay ()
wrap_offset = prompt_invis_chars_first_line = 0; wrap_offset = prompt_invis_chars_first_line = 0;
} }
#if defined (HANDLE_MULTIBYTE)
#define CHECK_INV_LBREAKS() \
do { \
if (newlines >= (inv_lbsize - 2)) \
{ \
inv_lbsize *= 2; \
inv_lbreaks = (int *)xrealloc (inv_lbreaks, inv_lbsize * sizeof (int)); \
_rl_wrapped_line = (int *)xrealloc (_rl_wrapped_line, inv_lbsize * sizeof (int)); \
} \
} while (0)
#else
#define CHECK_INV_LBREAKS() \ #define CHECK_INV_LBREAKS() \
do { \ do { \
if (newlines >= (inv_lbsize - 2)) \ if (newlines >= (inv_lbsize - 2)) \
@ -532,6 +543,7 @@ rl_redisplay ()
inv_lbreaks = (int *)xrealloc (inv_lbreaks, inv_lbsize * sizeof (int)); \ inv_lbreaks = (int *)xrealloc (inv_lbreaks, inv_lbsize * sizeof (int)); \
} \ } \
} while (0) } while (0)
#endif
#if defined (HANDLE_MULTIBYTE) #if defined (HANDLE_MULTIBYTE)
#define CHECK_LPOS() \ #define CHECK_LPOS() \

View File

@ -278,6 +278,17 @@ AC_DEFUN([MYSQL_SETUP_NDBCLUSTER], [
ndb_bin_am_ldflags="" ndb_bin_am_ldflags=""
fi fi
# libndbclient versioning when linked with GNU ld.
if $LD --version 2>/dev/null|grep -q GNU; then
NDB_LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/storage/ndb/src/libndb.ver"
AC_CONFIG_FILES(storage/ndb/src/libndb.ver)
fi
AC_SUBST(NDB_LD_VERSION_SCRIPT)
AC_SUBST(NDB_SHARED_LIB_MAJOR_VERSION)
AC_SUBST(NDB_SHARED_LIB_VERSION)
AC_SUBST(NDB_VERSION_MAJOR) AC_SUBST(NDB_VERSION_MAJOR)
AC_SUBST(NDB_VERSION_MINOR) AC_SUBST(NDB_VERSION_MINOR)
AC_SUBST(NDB_VERSION_BUILD) AC_SUBST(NDB_VERSION_BUILD)

View File

@ -15,6 +15,8 @@ DOT_FRM_VERSION=6
# See the libtool docs for information on how to do shared lib versions. # See the libtool docs for information on how to do shared lib versions.
SHARED_LIB_MAJOR_VERSION=15 SHARED_LIB_MAJOR_VERSION=15
SHARED_LIB_VERSION=$SHARED_LIB_MAJOR_VERSION:0:0 SHARED_LIB_VERSION=$SHARED_LIB_MAJOR_VERSION:0:0
NDB_SHARED_LIB_MAJOR_VERSION=3
NDB_SHARED_LIB_VERSION=$NDB_SHARED_LIB_MAJOR_VERSION:0:0
# Set all version vars based on $VERSION. How do we do this more elegant ? # Set all version vars based on $VERSION. How do we do this more elegant ?
# Remember that regexps needs to quote [ and ] since this is run through m4 # Remember that regexps needs to quote [ and ] since this is run through m4
MYSQL_NO_DASH_VERSION=`echo $VERSION | sed -e "s|[[a-z]]*-.*$||"` MYSQL_NO_DASH_VERSION=`echo $VERSION | sed -e "s|[[a-z]]*-.*$||"`
@ -354,6 +356,7 @@ if $LD --version 2>/dev/null|grep -q GNU; then
fi fi
AC_SUBST(LD_VERSION_SCRIPT) AC_SUBST(LD_VERSION_SCRIPT)
# Avoid bug in fcntl on some versions of linux # Avoid bug in fcntl on some versions of linux
AC_MSG_CHECKING([if we should use 'skip-external-locking' as default for $target_os]) AC_MSG_CHECKING([if we should use 'skip-external-locking' as default for $target_os])
# Any variation of Linux # Any variation of Linux

View File

@ -1,4 +1,20 @@
yaSSL Release notes, version 1.5.0 (11/09/06) *****************yaSSL Release notes, version 1.5.8 (1/10/07)
This release of yaSSL contains bug fixes, portability enhancements, and
support for GCC 4.1.1 and vs2005 sp1.
Since yaSSL now supports zlib, as does libcur, the libcurl build test can
fail if yaSSL is built with zlib support since the zlib library isn't
passed. You can do two things to fix this:
1) build yaSSL w/o zlib --without-zlib
2) or add flags to curl configure LDFLAGS="-lm -lz"
*****************yaSSL Release notes, version 1.5.0 (11/09/06)
This release of yaSSL contains bug fixes, portability enhancements, This release of yaSSL contains bug fixes, portability enhancements,
and full TLS 1.1 support. Use the functions: and full TLS 1.1 support. Use the functions:
@ -7,7 +23,7 @@ yaSSL Release notes, version 1.5.0 (11/09/06)
SSL_METHOD *TLSv1_1_client_method(void); SSL_METHOD *TLSv1_1_client_method(void);
or the SSLv23 versions (even though yaSSL doesn't support SSL 2.0 the v23 or the SSLv23 versions (even though yaSSL doesn't support SSL 2.0 the v23
means to pick the highest of SSL 3.0, TLS 1.0, or TLS 1.1. means to pick the highest of SSL 3.0, TLS 1.0, or TLS 1.1).
See normal build instructions below under 1.0.6. See normal build instructions below under 1.0.6.

View File

@ -1,26 +1,19 @@
/* buffer.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* cert_wrapper.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* crypto_wrapper.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* factory.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* The factory header defines an Object Factory, used by SSL message and /* The factory header defines an Object Factory, used by SSL message and

View File

@ -1,26 +1,19 @@
/* handshake.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* The handshake header declares function prototypes for creating and reading /* The handshake header declares function prototypes for creating and reading

View File

@ -1,26 +1,19 @@
/* lock.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* lock.hpp provides an os specific Lock, locks mutex on entry and unlocks /* lock.hpp provides an os specific Lock, locks mutex on entry and unlocks

View File

@ -1,26 +1,19 @@
/* log.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* ssl.h /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* ssl.h defines openssl compatibility layer /* ssl.h defines openssl compatibility layer
@ -41,7 +34,7 @@
#include "rsa.h" #include "rsa.h"
#define YASSL_VERSION "1.5.0" #define YASSL_VERSION "1.5.8"
#if defined(__cplusplus) #if defined(__cplusplus)

View File

@ -1,26 +1,19 @@
/* socket_wrapper.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* timer.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* timer.hpp provides a high res and low res timers /* timer.hpp provides a high res and low res timers

View File

@ -1,22 +1,19 @@
/* yassl.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* yaSSL is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of You should have received a copy of the GNU General Public License
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program; see the file COPYING. If not, write to the
* GNU General Public License for more details. Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA 02110-1301 USA.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* yassl_error.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* yassl_imp.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* yaSSL implementation header defines all strucutres from the SSL.v3 /* yaSSL implementation header defines all strucutres from the SSL.v3

View File

@ -1,26 +1,19 @@
/* yassl_int.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
@ -591,6 +584,9 @@ class SSL {
Socket socket_; // socket wrapper Socket socket_; // socket wrapper
Buffers buffers_; // buffered handshakes and data Buffers buffers_; // buffered handshakes and data
Log log_; // logger Log log_; // logger
// optimization variables
bool has_data_; // buffered data ready?
public: public:
SSL(SSL_CTX* ctx); SSL(SSL_CTX* ctx);
@ -613,6 +609,8 @@ public:
Log& useLog(); Log& useLog();
Buffers& useBuffers(); Buffers& useBuffers();
bool HasData() const;
// sets // sets
void set_pending(Cipher suite); void set_pending(Cipher suite);
void set_random(const opaque*, ConnectionEnd); void set_random(const opaque*, ConnectionEnd);

View File

@ -1,26 +1,19 @@
/* yassl_types.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* yaSSL types header defines all constants, enums, and typedefs /* yaSSL types header defines all constants, enums, and typedefs

View File

@ -1,26 +1,19 @@
/* buffer.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* cert_wrapper.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* crypto_wrapper.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* The crypto wrapper source implements the policies for the cipher /* The crypto wrapper source implements the policies for the cipher

View File

@ -1,26 +1,19 @@
/* handshake.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
@ -979,7 +972,7 @@ int receiveData(SSL& ssl, Data& data, bool peek)
ssl.verfiyHandShakeComplete(); ssl.verfiyHandShakeComplete();
if (ssl.GetError()) return -1; if (ssl.GetError()) return -1;
if (!ssl.bufferedData()) if (!ssl.HasData())
processReply(ssl); processReply(ssl);
if (peek) if (peek)

View File

@ -1,26 +1,19 @@
/* lock.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* Locking functions /* Locking functions

View File

@ -1,26 +1,19 @@
/* log.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* Debug logging functions /* Debug logging functions

View File

@ -1,22 +1,4 @@
REM quick and dirty build file for testing different MSDEVs REM quick and dirty build file for testing different MSDEVs
@echo off
REM Copyright (C) 2006 MySQL AB
REM
REM This program is free software; you can redistribute it and/or modify
REM it under the terms of the GNU General Public License as published by
REM the Free Software Foundation; version 2 of the License.
REM
REM This program is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
REM GNU General Public License for more details.
REM
REM You should have received a copy of the GNU General Public License
REM along with this program; if not, write to the Free Software
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
@echo on
setlocal setlocal
set myFLAGS= /I../include /I../taocrypt/mySTL /I../taocrypt/include /W3 /c /ZI set myFLAGS= /I../include /I../taocrypt/mySTL /I../taocrypt/include /W3 /c /ZI

View File

@ -1,26 +1,19 @@
/* socket_wrapper.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
@ -81,7 +74,7 @@ socket_t Socket::get_fd() const
Socket::~Socket() Socket::~Socket()
{ {
closeSocket(); // don't close automatically now
} }

View File

@ -1,26 +1,19 @@
/* ssl.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* SSL source implements all openssl compatibility API functions /* SSL source implements all openssl compatibility API functions
@ -407,7 +400,6 @@ int SSL_do_handshake(SSL* ssl)
int SSL_clear(SSL* ssl) int SSL_clear(SSL* ssl)
{ {
ssl->useSocket().closeSocket();
GetErrors().Remove(); GetErrors().Remove();
return SSL_SUCCESS; return SSL_SUCCESS;
@ -958,7 +950,7 @@ void ERR_print_errors_fp(FILE* /*fp*/)
char* ERR_error_string(unsigned long errNumber, char* buffer) char* ERR_error_string(unsigned long errNumber, char* buffer)
{ {
static char* msg = (char*) "Please supply a buffer for error string"; static char* msg = "Please supply a buffer for error string";
if (buffer) { if (buffer) {
SetErrorString(YasslError(errNumber), buffer); SetErrorString(YasslError(errNumber), buffer);

View File

@ -1,26 +1,19 @@
/* template_instnt.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* timer.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* timer.cpp implements a high res and low res timer /* timer.cpp implements a high res and low res timer

View File

@ -1,26 +1,19 @@
/* yassl.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* yassl_error.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
@ -150,6 +143,10 @@ void SetErrorString(YasslError error, char* buffer)
strncpy(buffer, "the read operation would block", max); strncpy(buffer, "the read operation would block", max);
break; break;
case CERTFICATE_ERROR :
strncpy(buffer, "Unable to verify certificate", max);
break;
// TaoCrypt errors // TaoCrypt errors
case NO_ERROR_E : case NO_ERROR_E :
strncpy(buffer, "not in error state", max); strncpy(buffer, "not in error state", max);
@ -255,8 +252,12 @@ void SetErrorString(YasslError error, char* buffer)
strncpy(buffer, "ASN: bad other signature confirmation", max); strncpy(buffer, "ASN: bad other signature confirmation", max);
break; break;
case CERTFICATE_ERROR : case CONTENT_E :
strncpy(buffer, "Unable to verify certificate", max); strncpy(buffer, "bad content processing", max);
break;
case PEM_E :
strncpy(buffer, "bad PEM format processing", max);
break; break;
default : default :

View File

@ -1,26 +1,19 @@
/* yassl_imp.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* yaSSL source implements all SSL.v3 secification structures. /* yaSSL source implements all SSL.v3 secification structures.

View File

@ -1,26 +1,19 @@
/* yassl_int.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
@ -298,7 +291,7 @@ const ClientKeyFactory& sslFactory::getClientKey() const
SSL::SSL(SSL_CTX* ctx) SSL::SSL(SSL_CTX* ctx)
: secure_(ctx->getMethod()->getVersion(), crypto_.use_random(), : secure_(ctx->getMethod()->getVersion(), crypto_.use_random(),
ctx->getMethod()->getSide(), ctx->GetCiphers(), ctx, ctx->getMethod()->getSide(), ctx->GetCiphers(), ctx,
ctx->GetDH_Parms().set_) ctx->GetDH_Parms().set_), has_data_(false)
{ {
if (int err = crypto_.get_random().GetError()) { if (int err = crypto_.get_random().GetError()) {
SetError(YasslError(err)); SetError(YasslError(err));
@ -1054,6 +1047,8 @@ void SSL::fillData(Data& data)
if (data.get_length() == dataSz) if (data.get_length() == dataSz)
break; break;
} }
if (buffers_.getData().size() == 0) has_data_ = false; // none left
} }
@ -1389,9 +1384,17 @@ bool SSL::isTLSv1_1() const
} }
// is there buffered data available, optimization to remove iteration on buffer
bool SSL::HasData() const
{
return has_data_;
}
void SSL::addData(input_buffer* data) void SSL::addData(input_buffer* data)
{ {
buffers_.useData().push_back(data); buffers_.useData().push_back(data);
if (!has_data_) has_data_ = true;
} }

View File

@ -1,22 +1,4 @@
REM quick and dirty build file for testing different MSDEVs REM quick and dirty build file for testing different MSDEVs
@echo off
REM Copyright (C) 2006 MySQL AB
REM
REM This program is free software; you can redistribute it and/or modify
REM it under the terms of the GNU General Public License as published by
REM the Free Software Foundation; version 2 of the License.
REM
REM This program is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
REM GNU General Public License for more details.
REM
REM You should have received a copy of the GNU General Public License
REM along with this program; if not, write to the Free Software
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
@echo on
setlocal setlocal
set myFLAGS= /I../include /I../mySTL /c /W3 /G6 /O2 set myFLAGS= /I../include /I../mySTL /c /W3 /G6 /O2

View File

@ -1,26 +1,19 @@
/* aes.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* aes.hpp defines AES /* aes.hpp defines AES

View File

@ -1,26 +1,19 @@
/* algebra.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's algebra.h from CryptoPP */ /* based on Wei Dai's algebra.h from CryptoPP */

View File

@ -1,26 +1,19 @@
/* arc4.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* arc4.hpp defines ARC4 /* arc4.hpp defines ARC4

View File

@ -1,26 +1,19 @@
/* asn.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* asn.hpp provides ASN1 BER, PublicKey, and x509v3 decoding /* asn.hpp provides ASN1 BER, PublicKey, and x509v3 decoding
@ -99,6 +92,17 @@ enum DNTags
}; };
enum PCKS12_Tags
{
/* DATA = 1, */ // from ASN1
SIGNED_DATA = 2,
ENVELOPED_DATA = 3,
SIGNED_AND_ENVELOPED_DATA = 4,
DIGESTED_DATA = 5,
ENCRYPTED_DATA = 6
};
enum Constants enum Constants
{ {
MIN_DATE_SZ = 13, MIN_DATE_SZ = 13,
@ -195,6 +199,16 @@ private:
}; };
// PKCS12 BER Decoder
class PKCS12_Decoder : public BER_Decoder {
public:
explicit PKCS12_Decoder(Source& s) : BER_Decoder(s) {}
void Decode();
private:
void ReadHeader();
};
// General PublicKey // General PublicKey
class PublicKey { class PublicKey {
byte* key_; byte* key_;
@ -241,6 +255,7 @@ private:
typedef STL::list<Signer*> SignerList; typedef STL::list<Signer*> SignerList;
enum ContentType { HUH = 651 };
enum SigType { SHAwDSA = 517, MD2wRSA = 646, MD5wRSA = 648, SHAwRSA =649}; enum SigType { SHAwDSA = 517, MD2wRSA = 646, MD5wRSA = 648, SHAwRSA =649};
enum HashType { MD2h = 646, MD5h = 649, SHAh = 88 }; enum HashType { MD2h = 646, MD5h = 649, SHAh = 88 };
enum KeyType { DSAk = 515, RSAk = 645 }; // sums of algo OID enum KeyType { DSAk = 515, RSAk = 645 }; // sums of algo OID
@ -345,6 +360,12 @@ private:
}; };
// Get Cert in PEM format from BEGIN to END
int GetCert(Source&);
// Get Cert in PEM format from pkcs12 file
int GetPKCS_Cert(const char* password, Source&);
} // namespace } // namespace

View File

@ -1,26 +1,19 @@
/* block.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* blowfish.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* blowfish.hpp defines Blowfish /* blowfish.hpp defines Blowfish
@ -89,7 +82,7 @@ typedef BlockCipher<DECRYPTION, Blowfish, CBC> Blowfish_CBC_Decryption;
} // naemspace } // namespace
#endif // TAO_CRYPT_BLOWFISH_HPP #endif // TAO_CRYPT_BLOWFISH_HPP

View File

@ -1,26 +1,19 @@
/* coding.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* coding.hpp defines hex and base64 encoding/decoing /* coding.hpp defines hex and base64 encoding/decoing

View File

@ -1,26 +1,19 @@
/* des.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* des.hpp defines DES, DES_EDE2, and DES_EDE3 /* des.hpp defines DES, DES_EDE2, and DES_EDE3

View File

@ -1,26 +1,19 @@
/* dh.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* dh.hpp provides Diffie-Hellman support /* dh.hpp provides Diffie-Hellman support

View File

@ -1,26 +1,19 @@
/* dsa.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* dsa.hpp provides Digitial Signautre Algorithm see FIPS 186-2 /* dsa.hpp provides Digitial Signautre Algorithm see FIPS 186-2

View File

@ -1,26 +1,19 @@
/* error.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* error.hpp provides a taocrypt error numbers /* error.hpp provides a taocrypt error numbers
@ -70,8 +63,12 @@ DSA_SZ_E = 1035, // "bad DSA r or s size"
BEFORE_DATE_E = 1036, // "before date in the future" BEFORE_DATE_E = 1036, // "before date in the future"
AFTER_DATE_E = 1037, // "after date in the past" AFTER_DATE_E = 1037, // "after date in the past"
SIG_CONFIRM_E = 1038, // "bad self signature confirmation" SIG_CONFIRM_E = 1038, // "bad self signature confirmation"
SIG_OTHER_E = 1039 // "bad other signature confirmation" SIG_OTHER_E = 1039, // "bad other signature confirmation"
CONTENT_E = 1040, // "bad content processing"
PEM_E = 1041 // "bad pem format error"
// add error string to yassl/src/yassl_error.cpp !!!
}; };

View File

@ -1,26 +1,19 @@
/* file.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* file.hpp provies File Sources and Sinks /* file.hpp provies File Sources and Sinks
@ -71,8 +64,10 @@ public:
void SetError(ErrorNumber w) { error_.SetError(w); } void SetError(ErrorNumber w) { error_.SetError(w); }
friend class FileSource; // for get() friend class FileSource; // for get()
private:
Source(const Source& that) : buffer_(that.buffer_), current_(that.current_) {} Source(const Source& that)
: buffer_(that.buffer_), current_(that.current_) {}
Source& operator=(const Source& that) Source& operator=(const Source& that)
{ {
Source tmp(that); Source tmp(that);

View File

@ -1,26 +1,19 @@
/* hash.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* hash.hpp provides a base for digest types /* hash.hpp provides a base for digest types

View File

@ -1,26 +1,19 @@
/* hmac.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* hamc.hpp implements HMAC, see RFC 2104 /* hamc.hpp implements HMAC, see RFC 2104

View File

@ -1,26 +1,19 @@
/* integer.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's integer.h from CryptoPP */ /* based on Wei Dai's integer.h from CryptoPP */

View File

@ -1,26 +1,19 @@
/* kernelc.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* kernelc.hpp provides support for C std lib when compiled in kernel mode /* kernelc.hpp provides support for C std lib when compiled in kernel mode

View File

@ -1,26 +1,19 @@
/* md5.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* md2.hpp provides MD2 digest support, see RFC 1319 /* md2.hpp provides MD2 digest support, see RFC 1319

View File

@ -1,26 +1,19 @@
/* md4.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* md4.hpp provides MD4 digest support /* md4.hpp provides MD4 digest support

View File

@ -1,26 +1,19 @@
/* md5.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* md5.hpp provides MD5 digest support, see RFC 1321 /* md5.hpp provides MD5 digest support, see RFC 1321

View File

@ -1,26 +1,19 @@
/* misc.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's misc.h from CryptoPP */ /* based on Wei Dai's misc.h from CryptoPP */

View File

@ -1,26 +1,19 @@
/* modarith.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* modes.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* modes.hpp provides ECB and CBC modes for block cipher encryption/decryption /* modes.hpp provides ECB and CBC modes for block cipher encryption/decryption

View File

@ -1,26 +1,19 @@
/* pwdbased.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* pwdbased.hpp defines PBKDF2 from PKCS #5 /* pwdbased.hpp defines PBKDF2 from PKCS #5

View File

@ -1,26 +1,19 @@
/* random.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* random.hpp provides a crypto secure Random Number Generator using an OS /* random.hpp provides a crypto secure Random Number Generator using an OS

View File

@ -1,26 +1,19 @@
/* ripemd.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* ripemd.hpp provides RIPEMD digest support /* ripemd.hpp provides RIPEMD digest support

View File

@ -1,26 +1,19 @@
/* rsa.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* rsa.hpp provides RSA ES encrypt/decrypt, SSL (block type 1) sign and verify /* rsa.hpp provides RSA ES encrypt/decrypt, SSL (block type 1) sign and verify

View File

@ -1,26 +1,19 @@
/* runtime.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* runtime.hpp provides C++ runtime support functions when building a pure C /* runtime.hpp provides C++ runtime support functions when building a pure C

View File

@ -1,26 +1,19 @@
/* sha.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* sha.hpp provides SHA-1 digests, see RFC 3174 /* sha.hpp provides SHA-1 digests, see RFC 3174

View File

@ -1,26 +1,19 @@
/* twofish.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* twofish.hpp defines Twofish /* twofish.hpp defines Twofish

View File

@ -1,26 +1,19 @@
/* type_traits.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* type_traits defines fundamental types /* type_traits defines fundamental types

View File

@ -1,26 +1,19 @@
/* types.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's misc.h from CryptoPP, basic crypt types */ /* based on Wei Dai's misc.h from CryptoPP, basic crypt types */
@ -72,7 +65,8 @@ typedef unsigned int word32;
#if defined(HAVE_64_MULTIPLY) && (defined(__alpha__) || defined(__ia64__) \ #if defined(HAVE_64_MULTIPLY) && (defined(__alpha__) || defined(__ia64__) \
|| defined(_ARCH_PPC64) || defined(__mips64) || defined(__x86_64__)) || defined(_ARCH_PPC64) || defined(__mips64) || defined(__x86_64__) \
|| defined(_M_X64) || defined(_M_IA64))
// These platforms have 64-bit CPU registers. Unfortunately most C++ compilers // These platforms have 64-bit CPU registers. Unfortunately most C++ compilers
// don't allow any way to access the 64-bit by 64-bit multiply instruction // don't allow any way to access the 64-bit by 64-bit multiply instruction
// without using assembly, so in order to use word64 as word, the assembly // without using assembly, so in order to use word64 as word, the assembly

View File

@ -1,26 +1,19 @@
/* mySTL algorithm.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* mySTL helpers.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* mySTL list.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* mySTL memory.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* mySTL memory_array.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* mySTL pair.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* mySTL stdexcept.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* mySTL vector.hpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* aes.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* C++ based on Wei Dai's aes.cpp from CryptoPP */ /* C++ based on Wei Dai's aes.cpp from CryptoPP */

View File

@ -1,26 +1,19 @@
/* aestables.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's aestables.cpp from CryptoPP */ /* based on Wei Dai's aestables.cpp from CryptoPP */

View File

@ -1,26 +1,19 @@
/* algebra.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's algebra.cpp from CryptoPP */ /* based on Wei Dai's algebra.cpp from CryptoPP */

View File

@ -1,26 +1,19 @@
/* arc4.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's arc4.cpp from CryptoPP */ /* based on Wei Dai's arc4.cpp from CryptoPP */

View File

@ -1,26 +1,19 @@
/* asn.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* asn.cpp implements ASN1 BER, PublicKey, and x509v3 decoding /* asn.cpp implements ASN1 BER, PublicKey, and x509v3 decoding
@ -1098,4 +1091,83 @@ word32 DecodeDSA_Signature(byte* decoded, const byte* encoded, word32 sz)
} }
// Get Cert in PEM format from BEGIN to END
int GetCert(Source& source)
{
char header[] = "-----BEGIN CERTIFICATE-----";
char footer[] = "-----END CERTIFICATE-----";
char* begin = strstr((char*)source.get_buffer(), header);
char* end = strstr((char*)source.get_buffer(), footer);
if (!begin || !end || begin >= end) return -1;
end += strlen(footer);
if (*end == '\r') end++;
Source tmp((byte*)begin, end - begin + 1);
source.Swap(tmp);
return 0;
}
// Decode a BER encoded PKCS12 structure
void PKCS12_Decoder::Decode()
{
ReadHeader();
if (source_.GetError().What()) return;
// Get AuthSafe
GetSequence();
// get object id
byte obj_id = source_.next();
if (obj_id != OBJECT_IDENTIFIER) {
source_.SetError(OBJECT_ID_E);
return;
}
word32 length = GetLength(source_);
word32 algo_sum = 0;
while (length--)
algo_sum += source_.next();
// Get MacData optional
/*
mac digestInfo like certdecoder::getdigest?
macsalt octet string
iter integer
*/
}
void PKCS12_Decoder::ReadHeader()
{
// Gets Version
GetSequence();
GetVersion();
}
// Get Cert in PEM format from pkcs12 file
int GetPKCS_Cert(const char* password, Source& source)
{
PKCS12_Decoder pkcs12(source);
pkcs12.Decode();
return 0;
}
} // namespace } // namespace

View File

@ -1,26 +1,19 @@
/* bftables.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's bfinit.cpp from CryptoPP */ /* based on Wei Dai's bfinit.cpp from CryptoPP */

View File

@ -1,26 +1,19 @@
/* blowfish.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* C++ code based on Wei Dai's blowfish.cpp from CryptoPP */ /* C++ code based on Wei Dai's blowfish.cpp from CryptoPP */

View File

@ -1,26 +1,19 @@
/* coding.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* coding.cpp implements hex and base64 encoding/decoing /* coding.cpp implements hex and base64 encoding/decoing
@ -131,8 +124,7 @@ void HexDecoder::Decode()
void Base64Encoder::Encode() void Base64Encoder::Encode()
{ {
word32 bytes = plain_.size(); word32 bytes = plain_.size();
word32 outSz = bytes * 4 / 3; word32 outSz = (bytes + 3 - 1) / 3 * 4;
outSz += (outSz % 4); // 4 byte integrals
outSz += (outSz + pemLineSz - 1) / pemLineSz; // new lines outSz += (outSz + pemLineSz - 1) / pemLineSz; // new lines
encoded_.New(outSz); encoded_.New(outSz);
@ -159,7 +151,7 @@ void Base64Encoder::Encode()
bytes -= 3; bytes -= 3;
if ((++j % 16) == 0) if ((++j % 16) == 0 && bytes)
encoded_[i++] = '\n'; encoded_[i++] = '\n';
} }
@ -236,11 +228,18 @@ void Base64Decoder::Decode()
if ((++j % 16) == 0) { if ((++j % 16) == 0) {
byte endLine = coded_.next(); byte endLine = coded_.next();
bytes--; bytes--;
while (endLine == ' ') { // remove possible whitespace
endLine = coded_.next();
bytes--;
}
if (endLine == '\r') { if (endLine == '\r') {
endLine = coded_.next(); endLine = coded_.next();
bytes--; bytes--;
} }
assert(endLine == '\n'); if (endLine != '\n') {
coded_.SetError(PEM_E);
return;
}
} }
} }

View File

@ -1,26 +1,19 @@
/* crypto.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* put features that other apps expect from OpenSSL type crypto */ /* put features that other apps expect from OpenSSL type crypto */

View File

@ -1,26 +1,19 @@
/* des.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* C++ part based on Wei Dai's des.cpp from CryptoPP */ /* C++ part based on Wei Dai's des.cpp from CryptoPP */

View File

@ -1,26 +1,19 @@
/* dh.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* dsa.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* file.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* file.cpp implements File Sources and Sinks /* file.cpp implements File Sources and Sinks

View File

@ -1,26 +1,19 @@
/* hash.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* hash.cpp implements a base for digest types /* hash.cpp implements a base for digest types

View File

@ -1,26 +1,19 @@
/* integer.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
@ -38,22 +31,11 @@
#include <c_asm.h> // for asm overflow assembly #include <c_asm.h> // for asm overflow assembly
#endif #endif
#if defined(_M_X64) || defined(_M_IA64)
// 64bit multiply overflow intrinsic #include <intrin.h>
#if defined(_MSC_VER) && defined(_WIN64) && !defined(__INTEL_COMPILER) && \ #pragma intrinsic(_umul128)
!defined(TAOCRYPT_NATIVE_DWORD_AVAILABLE)
#ifdef __ia64__
#define myUMULH __UMULH
#elif __x86_64__
#define myUMULH __umulh
#else
#error unknown 64bit windows
#endif #endif
extern "C" word myUMULH(word, word);
#pragma intrinsic (myUMULH)
#endif
#ifdef __GNUC__ #ifdef __GNUC__
#include <signal.h> #include <signal.h>
@ -88,7 +70,7 @@ namespace TaoCrypt {
#ifdef SSE2_INTRINSICS_AVAILABLE #ifdef SSE2_INTRINSICS_AVAILABLE
template <class T> template <class T>
CPP_TYPENAME AllocatorBase<T>::pointer AlignedAllocator<T>::allocate( CPP_TYPENAME AlignedAllocator<T>::pointer AlignedAllocator<T>::allocate(
size_type n, const void *) size_type n, const void *)
{ {
CheckSize(n); CheckSize(n);
@ -184,9 +166,8 @@ DWord() {}
#ifdef TAOCRYPT_NATIVE_DWORD_AVAILABLE #ifdef TAOCRYPT_NATIVE_DWORD_AVAILABLE
r.whole_ = (dword)a * b; r.whole_ = (dword)a * b;
#elif defined(_MSC_VER) #elif defined(_M_X64) || defined(_M_IA64)
r.halfs_.low = a*b; r.halfs_.low = _umul128(a, b, &r.halfs_.high);
r.halfs_.high = myUMULH(a,b);
#elif defined(__alpha__) #elif defined(__alpha__)
r.halfs_.low = a*b; r.halfs_.low = a*b;
@ -572,24 +553,29 @@ static word AtomicInverseModPower2(word A)
class Portable class Portable
{ {
public: public:
static word Add(word *C, const word *A, const word *B, unsigned int N); static word TAOCRYPT_CDECL Add(word *C, const word *A, const word *B,
static word Subtract(word *C, const word *A, const word*B, unsigned int N); unsigned int N);
static word TAOCRYPT_CDECL Subtract(word *C, const word *A, const word*B,
unsigned int N);
static void TAOCRYPT_CDECL Multiply2(word *C, const word *A, const word *B);
static word TAOCRYPT_CDECL Multiply2Add(word *C,
const word *A, const word *B);
static void TAOCRYPT_CDECL Multiply4(word *C, const word *A, const word *B);
static void TAOCRYPT_CDECL Multiply8(word *C, const word *A, const word *B);
static unsigned int TAOCRYPT_CDECL MultiplyRecursionLimit() {return 8;}
static void Multiply2(word *C, const word *A, const word *B); static void TAOCRYPT_CDECL Multiply2Bottom(word *C, const word *A,
static word Multiply2Add(word *C, const word *A, const word *B); const word *B);
static void Multiply4(word *C, const word *A, const word *B); static void TAOCRYPT_CDECL Multiply4Bottom(word *C, const word *A,
static void Multiply8(word *C, const word *A, const word *B); const word *B);
static unsigned int MultiplyRecursionLimit() {return 8;} static void TAOCRYPT_CDECL Multiply8Bottom(word *C, const word *A,
const word *B);
static unsigned int TAOCRYPT_CDECL MultiplyBottomRecursionLimit(){return 8;}
static void Multiply2Bottom(word *C, const word *A, const word *B); static void TAOCRYPT_CDECL Square2(word *R, const word *A);
static void Multiply4Bottom(word *C, const word *A, const word *B); static void TAOCRYPT_CDECL Square4(word *R, const word *A);
static void Multiply8Bottom(word *C, const word *A, const word *B); static void TAOCRYPT_CDECL Square8(word *R, const word *A) {assert(false);}
static unsigned int MultiplyBottomRecursionLimit() {return 8;} static unsigned int TAOCRYPT_CDECL SquareRecursionLimit() {return 4;}
static void Square2(word *R, const word *A);
static void Square4(word *R, const word *A);
static void Square8(word *R, const word *A) {assert(false);}
static unsigned int SquareRecursionLimit() {return 4;}
}; };
word Portable::Add(word *C, const word *A, const word *B, unsigned int N) word Portable::Add(word *C, const word *A, const word *B, unsigned int N)

View File

@ -1,22 +1,4 @@
REM quick and dirty build file for testing different MSDEVs REM quick and dirty build file for testing different MSDEVs
@echo off
REM Copyright (C) 2006 MySQL AB
REM
REM This program is free software; you can redistribute it and/or modify
REM it under the terms of the GNU General Public License as published by
REM the Free Software Foundation; version 2 of the License.
REM
REM This program is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
REM GNU General Public License for more details.
REM
REM You should have received a copy of the GNU General Public License
REM along with this program; if not, write to the Free Software
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
@echo on
setlocal setlocal
set myFLAGS= /I../include /I../mySTL /c /W3 /G6 /O2 set myFLAGS= /I../include /I../mySTL /c /W3 /G6 /O2

View File

@ -1,26 +1,19 @@
/* md2.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* md4.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* md5.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* misc.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's misc.cpp from CryptoPP */ /* based on Wei Dai's misc.cpp from CryptoPP */

View File

@ -1,26 +1,19 @@
/* random.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* ripemd.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */

View File

@ -1,26 +1,19 @@
/* rsa.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's rsa.cpp from CryptoPP */ /* based on Wei Dai's rsa.cpp from CryptoPP */

View File

@ -1,26 +1,19 @@
/* sha.cpp /*
* Copyright (C) 2000-2007 MySQL AB
* Copyright (C) 2003 Sawtooth Consulting Ltd.
* This program is free software; you can redistribute it and/or modify
* This file is part of yaSSL. it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* yaSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by This program is distributed in the hope that it will be useful,
* the Free Software Foundation; either version 2 of the License, or but WITHOUT ANY WARRANTY; without even the implied warranty of
* (at your option) any later version. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* There are special exceptions to the terms and conditions of the GPL as it
* is applied to yaSSL. View the full text of the exception in the file You should have received a copy of the GNU General Public License
* FLOSS-EXCEPTIONS in the directory of this software distribution. along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* yaSSL is distributed in the hope that it will be useful, MA 02110-1301 USA.
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
/* based on Wei Dai's sha.cpp from CryptoPP */ /* based on Wei Dai's sha.cpp from CryptoPP */

Some files were not shown because too many files have changed in this diff Show More