diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bf/bf_locl.h (renamed from crypto/bf/bf_locl.org) | 34 | ||||
-rw-r--r-- | crypto/bn/bn.h (renamed from crypto/bn/bn.org) | 29 | ||||
-rw-r--r-- | crypto/des/des.h (renamed from crypto/des/des.org) | 21 | ||||
-rw-r--r-- | crypto/des/des_locl.h (renamed from crypto/des/des_locl.org) | 78 | ||||
-rw-r--r-- | crypto/idea/idea.h (renamed from crypto/idea/idea.org) | 11 | ||||
-rw-r--r-- | crypto/md2/md2.h (renamed from crypto/md2/md2.org) | 12 | ||||
-rw-r--r-- | crypto/objects/obj_dat.h | 2 | ||||
-rw-r--r-- | crypto/pem/pem.h | 8 | ||||
-rw-r--r-- | crypto/rc2/rc2.h (renamed from crypto/rc2/rc2.org) | 12 | ||||
-rw-r--r-- | crypto/rc4/rc4.h (renamed from crypto/rc4/rc4.org) | 12 | ||||
-rw-r--r-- | crypto/rc4/rc4_locl.h | 4 | ||||
-rw-r--r-- | crypto/rc4/rc4_locl.org | 70 |
12 files changed, 19 insertions, 274 deletions
diff --git a/crypto/bf/bf_locl.org b/crypto/bf/bf_locl.h index bd62084032..418ff04fde 100644 --- a/crypto/bf/bf_locl.org +++ b/crypto/bf/bf_locl.h @@ -56,27 +56,9 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify bf_locl.org since bf_locl.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - -/* Special defines which change the way the code is built depending on the - CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find - even newer MIPS CPU's, but at the moment one size fits all for - optimization options. Older Sparc's work better with only UNROLL, but - there's no way to tell at compile time what it is you're running on */ - -#if defined( sun ) /* Newer Sparc's */ -# define BF_PTR -#elif defined( __ultrix ) /* Older MIPS */ -# define BF_PTR -#elif defined( __sgi ) /* Newer MIPS */ -# define BF_PTR -#endif /* Systems-specific speed defines */ +#ifndef _HEADER_BF_LOCL_H +#define _HEADER_BF_LOCL_H +#include "opensslconf.h" /* BF_PTR, BF_PTR2 */ #undef c2l #define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ @@ -169,14 +151,6 @@ /* This is actually a big endian algorithm, the most significate byte * is used to lookup array 0 */ -/* use BF_PTR2 for intel boxes, - * BF_PTR for sparc and MIPS/SGI - * use nothing for Alpha and HP. - */ -#if !defined(BF_PTR) && !defined(BF_PTR2) -#undef BF_PTR -#endif - #define BF_M 0x3fc #define BF_0 22L #define BF_1 14L @@ -228,3 +202,5 @@ S[0x0200+((int)(R>> 8L)&0xff)])+ \ S[0x0300+((int)(R )&0xff)])&0xffffffffL; #endif + +#endif diff --git a/crypto/bn/bn.org b/crypto/bn/bn.h index 393fae5a64..136bf55569 100644 --- a/crypto/bn/bn.org +++ b/crypto/bn/bn.h @@ -56,27 +56,15 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify bn.org since bn.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - #ifndef HEADER_BN_H #define HEADER_BN_H +#include "opensslconf.h" + #ifdef __cplusplus extern "C" { #endif -#undef BN_LLONG - -#ifdef WIN32 -#define BN_LLONG /* This comment stops Configure mutilating things */ -#endif - #define BN_MUL_COMBA #define BN_SQR_COMBA #define BN_RECURSION @@ -98,17 +86,6 @@ extern "C" { #define BN_DIV2W #endif -/* Only one for the following should be defined */ -/* The prime number generation stuff may not work when - * EIGHT_BIT but I don't care since I've only used this mode - * for debuging the bignum libraries */ -#undef SIXTY_FOUR_BIT_LONG -#undef SIXTY_FOUR_BIT -#define THIRTY_TWO_BIT -#undef SIXTEEN_BIT -#undef EIGHT_BIT - - /* assuming long is 64bit - this is the DEC Alpha * unsigned long long is only 64 bits :-(, don't define * BN_LLONG for the DEC Alpha */ @@ -138,7 +115,7 @@ extern "C" { * assember code :-). Do NOT define BN_ULLONG. */ #ifdef SIXTY_FOUR_BIT -#undef BN_LLONG +#define BN_LLONG /* #define BN_ULLONG unsigned long long */ #define BN_ULONG unsigned long long #define BN_LONG long long diff --git a/crypto/des/des.org b/crypto/des/des.h index 0e84c6eaac..c9f67921d3 100644 --- a/crypto/des/des.org +++ b/crypto/des/des.h @@ -56,14 +56,6 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify des.org since des.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - #ifndef HEADER_DES_H #define HEADER_DES_H @@ -72,12 +64,7 @@ extern "C" { #endif #include <stdio.h> - -/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a - * %20 speed up (longs are 8 bytes, int's are 4). */ -#ifndef DES_LONG -#define DES_LONG unsigned long -#endif +#include "opensslconf.h" /* DES_LONG */ typedef unsigned char des_cblock[8]; typedef unsigned char *des_cblocks; /* Unfortunately there's no way to say that @@ -145,12 +132,6 @@ extern int des_check_key; /* defaults to false */ extern int des_rw_mode; /* defaults to DES_PCBC_MODE */ extern int des_set_weak_key_flag; /* set the weak key flag */ -/* The next line is used to disable full ANSI prototypes, if your - * compiler has problems with the prototypes, make sure this line always - * evaluates to true :-) */ -#if defined(MSDOS) || defined(__STDC__) -#undef NOPROTO -#endif #ifndef NOPROTO const char *des_options(void); void des_ecb3_encrypt(const des_cblock input, des_cblock output, diff --git a/crypto/des/des_locl.org b/crypto/des/des_locl.h index c9e8be3add..d01c704244 100644 --- a/crypto/des/des_locl.org +++ b/crypto/des/des_locl.h @@ -56,14 +56,6 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify des_locl.org since des_locl.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - #ifndef HEADER_DES_LOCL_H #define HEADER_DES_LOCL_H @@ -80,75 +72,7 @@ #endif #include "des.h" -#ifndef DES_DEFAULT_OPTIONS -/* the following is tweaked from a config script, that is why it is a - * protected undef/define */ -#ifndef DES_PTR -#undef DES_PTR -#endif - -/* This helps C compiler generate the correct code for multiple functional - * units. It reduces register dependancies at the expense of 2 more - * registers */ -#ifndef DES_RISC1 -#undef DES_RISC1 -#endif - -#ifndef DES_RISC2 -#undef DES_RISC2 -#endif - -#if defined(DES_RISC1) && defined(DES_RISC2) -YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! -#endif - -/* Unroll the inner loop, this sometimes helps, sometimes hinders. - * Very mucy CPU dependant */ -#ifndef DES_UNROLL -#undef DES_UNROLL -#endif - -/* These default values were supplied by - * Peter Gutman <pgut001@cs.auckland.ac.nz> - * They are only used if nothing else has been defined */ -#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) -/* Special defines which change the way the code is built depending on the - CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find - even newer MIPS CPU's, but at the moment one size fits all for - optimization options. Older Sparc's work better with only UNROLL, but - there's no way to tell at compile time what it is you're running on */ - -#if defined( sun ) /* Newer Sparc's */ -# define DES_PTR -# define DES_RISC1 -# define DES_UNROLL -#elif defined( __ultrix ) /* Older MIPS */ -# define DES_PTR -# define DES_RISC2 -# define DES_UNROLL -#elif defined( __osf1__ ) /* Alpha */ -# define DES_PTR -# define DES_RISC2 -#elif defined ( _AIX ) /* RS6000 */ - /* Unknown */ -#elif defined( __hpux ) /* HP-PA */ - /* Unknown */ -#elif defined( __aux ) /* 68K */ - /* Unknown */ -#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ -# define DES_UNROLL -#elif defined( __sgi ) /* Newer MIPS */ -# define DES_PTR -# define DES_RISC2 -# define DES_UNROLL -#elif defined( i386 ) /* x86 boxes, should be gcc */ -# define DES_PTR -# define DES_RISC1 -# define DES_UNROLL -#endif /* Systems-specific speed defines */ -#endif - -#endif /* DES_DEFAULT_OPTIONS */ +#include "opensslconf.h" #ifdef MSDOS /* Visual C++ 2.1 (Windows NT/95) */ #include <stdlib.h> diff --git a/crypto/idea/idea.org b/crypto/idea/idea.h index 5b3084fada..59a9fa3622 100644 --- a/crypto/idea/idea.org +++ b/crypto/idea/idea.h @@ -56,15 +56,6 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify idea.org since idea.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - - #ifndef HEADER_IDEA_H #define HEADER_IDEA_H @@ -75,7 +66,7 @@ extern "C" { #define IDEA_ENCRYPT 1 #define IDEA_DECRYPT 0 -#define IDEA_INT unsigned int +#include "opensslconf.h" /* IDEA_INT */ #define IDEA_BLOCK 8 #define IDEA_KEY_LENGTH 16 diff --git a/crypto/md2/md2.org b/crypto/md2/md2.h index de0c7c3532..1a0079fa27 100644 --- a/crypto/md2/md2.org +++ b/crypto/md2/md2.h @@ -56,15 +56,6 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify md2.org since md2.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - - #ifndef HEADER_MD2_H #define HEADER_MD2_H @@ -74,8 +65,7 @@ extern "C" { #define MD2_DIGEST_LENGTH 16 #define MD2_BLOCK 16 - -#define MD2_INT unsigned int +#include "opensslconf.h" /* MD2_INT */ typedef struct MD2state_st { diff --git a/crypto/objects/obj_dat.h b/crypto/objects/obj_dat.h index 10a6304af5..03ba60c255 100644 --- a/crypto/objects/obj_dat.h +++ b/crypto/objects/obj_dat.h @@ -761,8 +761,8 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={ &(nid_objs[19]),/* OBJ_rsa 2 5 8 1 1 */ &(nid_objs[96]),/* OBJ_mdc2WithRSA 2 5 8 3 100 */ &(nid_objs[95]),/* OBJ_mdc2 2 5 8 3 101 */ -&(nid_objs[124]),/* OBJ_rle_compression 1 1 1 1 666.1 */ &(nid_objs[125]),/* OBJ_zlib_compression 1 1 1 1 666.2 */ +&(nid_objs[124]),/* OBJ_rle_compression 1 1 1 1 666.1 */ &(nid_objs[104]),/* OBJ_md5WithRSA 1 3 14 3 2 3 */ &(nid_objs[29]),/* OBJ_des_ecb 1 3 14 3 2 6 */ &(nid_objs[31]),/* OBJ_des_cbc 1 3 14 3 2 7 */ diff --git a/crypto/pem/pem.h b/crypto/pem/pem.h index fa6495176d..c85942a5c3 100644 --- a/crypto/pem/pem.h +++ b/crypto/pem/pem.h @@ -56,14 +56,6 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify pem.org since pem.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - #ifndef HEADER_PEM_H #define HEADER_PEM_H diff --git a/crypto/rc2/rc2.org b/crypto/rc2/rc2.h index 37354cfa62..507a89698e 100644 --- a/crypto/rc2/rc2.org +++ b/crypto/rc2/rc2.h @@ -56,14 +56,6 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify rc2.org since rc2.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - #ifndef HEADER_RC2_H #define HEADER_RC2_H @@ -74,9 +66,7 @@ extern "C" { #define RC2_ENCRYPT 1 #define RC2_DECRYPT 0 -/* I need to put in a mod for the alpha - eay */ -#define RC2_INT unsigned short - +#include "opensslconf.h" /* RC2_INT */ #define RC2_BLOCK 8 #define RC2_KEY_LENGTH 16 diff --git a/crypto/rc4/rc4.org b/crypto/rc4/rc4.h index bf5fd3d404..7dee7320a1 100644 --- a/crypto/rc4/rc4.org +++ b/crypto/rc4/rc4.h @@ -56,14 +56,6 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify rc4.org since rc4.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - #ifndef HEADER_RC4_H #define HEADER_RC4_H @@ -71,9 +63,7 @@ extern "C" { #endif -/* using int types make the structure larger but make the code faster - * on most boxes I have tested - up to %20 faster. */ -#define RC4_INT unsigned int +#include "opensslconf.h" /* RC4_INT */ typedef struct rc4_key_st { diff --git a/crypto/rc4/rc4_locl.h b/crypto/rc4/rc4_locl.h new file mode 100644 index 0000000000..ecce6b91dd --- /dev/null +++ b/crypto/rc4/rc4_locl.h @@ -0,0 +1,4 @@ +#ifndef _HEADER_RC4_LOCL_H +#define _HEADER_RC4_LOCL_H +#include "opensslconf.h" +#endif diff --git a/crypto/rc4/rc4_locl.org b/crypto/rc4/rc4_locl.org deleted file mode 100644 index 1ef4455fb7..0000000000 --- a/crypto/rc4/rc4_locl.org +++ /dev/null @@ -1,70 +0,0 @@ -/* crypto/rc4/rc4_locl.org */ -/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) - * All rights reserved. - * - * This package is an SSL implementation written - * by Eric Young (eay@cryptsoft.com). - * The implementation was written so as to conform with Netscapes SSL. - * - * This library is free for commercial and non-commercial use as long as - * the following conditions are aheared to. The following conditions - * apply to all code found in this distribution, be it the RC4, RSA, - * lhash, DES, etc., code; not just the SSL code. The SSL documentation - * included with this distribution is covered by the same copyright terms - * except that the holder is Tim Hudson (tjh@cryptsoft.com). - * - * Copyright remains Eric Young's, and as such any Copyright notices in - * the code are not to be removed. - * If this package is used in a product, Eric Young should be given attribution - * as the author of the parts of the library used. - * This can be in the form of a textual message at program startup or - * in documentation (online or textual) provided with the package. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * "This product includes cryptographic software written by - * Eric Young (eay@cryptsoft.com)" - * The word 'cryptographic' can be left out if the rouines from the library - * being used are not cryptographic related :-). - * 4. If you include any Windows specific code (or a derivative thereof) from - * the apps directory (application code) you must include an acknowledgement: - * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" - * - * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * The licence and distribution terms for any publically available version or - * derivative of this code cannot be changed. i.e. this code cannot simply be - * copied and put under another distribution licence - * [including the GNU Public Licence.] - */ - -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify bf_locl.org since bf_locl.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - -/* if this is defined data[i] is used instead of *data, this is a %20 - * speedup on x86 */ -#undef RC4_INDEX - |