diff options
Diffstat (limited to 'src/lib/libcrypto/conf')
-rw-r--r-- | src/lib/libcrypto/conf/conf.h | 114 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf_err.c | 100 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/keysets.pl | 61 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/ssleay.cnf | 78 |
4 files changed, 0 insertions, 353 deletions
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h deleted file mode 100644 index e7c5150097..0000000000 --- a/src/lib/libcrypto/conf/conf.h +++ /dev/null | |||
@@ -1,114 +0,0 @@ | |||
1 | /* crypto/conf/conf.h */ | ||
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * This package is an SSL implementation written | ||
6 | * by Eric Young (eay@cryptsoft.com). | ||
7 | * The implementation was written so as to conform with Netscapes SSL. | ||
8 | * | ||
9 | * This library is free for commercial and non-commercial use as long as | ||
10 | * the following conditions are aheared to. The following conditions | ||
11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
13 | * included with this distribution is covered by the same copyright terms | ||
14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
15 | * | ||
16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
17 | * the code are not to be removed. | ||
18 | * If this package is used in a product, Eric Young should be given attribution | ||
19 | * as the author of the parts of the library used. | ||
20 | * This can be in the form of a textual message at program startup or | ||
21 | * in documentation (online or textual) provided with the package. | ||
22 | * | ||
23 | * Redistribution and use in source and binary forms, with or without | ||
24 | * modification, are permitted provided that the following conditions | ||
25 | * are met: | ||
26 | * 1. Redistributions of source code must retain the copyright | ||
27 | * notice, this list of conditions and the following disclaimer. | ||
28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
29 | * notice, this list of conditions and the following disclaimer in the | ||
30 | * documentation and/or other materials provided with the distribution. | ||
31 | * 3. All advertising materials mentioning features or use of this software | ||
32 | * must display the following acknowledgement: | ||
33 | * "This product includes cryptographic software written by | ||
34 | * Eric Young (eay@cryptsoft.com)" | ||
35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
36 | * being used are not cryptographic related :-). | ||
37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
38 | * the apps directory (application code) you must include an acknowledgement: | ||
39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
40 | * | ||
41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
51 | * SUCH DAMAGE. | ||
52 | * | ||
53 | * The licence and distribution terms for any publically available version or | ||
54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
55 | * copied and put under another distribution licence | ||
56 | * [including the GNU Public Licence.] | ||
57 | */ | ||
58 | |||
59 | #ifndef HEADER_CONF_H | ||
60 | #define HEADER_CONF_H | ||
61 | |||
62 | #ifdef __cplusplus | ||
63 | extern "C" { | ||
64 | #endif | ||
65 | |||
66 | #include <openssl/bio.h> | ||
67 | #include <openssl/lhash.h> | ||
68 | #include <openssl/stack.h> | ||
69 | #include <openssl/safestack.h> | ||
70 | |||
71 | typedef struct | ||
72 | { | ||
73 | char *section; | ||
74 | char *name; | ||
75 | char *value; | ||
76 | } CONF_VALUE; | ||
77 | |||
78 | DECLARE_STACK_OF(CONF_VALUE) | ||
79 | |||
80 | LHASH *CONF_load(LHASH *conf,const char *file,long *eline); | ||
81 | LHASH *CONF_load_fp(LHASH *conf, FILE *fp,long *eline); | ||
82 | LHASH *CONF_load_bio(LHASH *conf, BIO *bp,long *eline); | ||
83 | STACK_OF(CONF_VALUE) *CONF_get_section(LHASH *conf,char *section); | ||
84 | char *CONF_get_string(LHASH *conf,char *group,char *name); | ||
85 | long CONF_get_number(LHASH *conf,char *group,char *name); | ||
86 | void CONF_free(LHASH *conf); | ||
87 | void ERR_load_CONF_strings(void ); | ||
88 | |||
89 | |||
90 | /* BEGIN ERROR CODES */ | ||
91 | /* The following lines are auto generated by the script mkerr.pl. Any changes | ||
92 | * made after this point may be overwritten when the script is next run. | ||
93 | */ | ||
94 | |||
95 | /* Error codes for the CONF functions. */ | ||
96 | |||
97 | /* Function codes. */ | ||
98 | #define CONF_F_CONF_LOAD 100 | ||
99 | #define CONF_F_CONF_LOAD_BIO 102 | ||
100 | #define CONF_F_CONF_LOAD_FP 103 | ||
101 | #define CONF_F_STR_COPY 101 | ||
102 | |||
103 | /* Reason codes. */ | ||
104 | #define CONF_R_MISSING_CLOSE_SQUARE_BRACKET 100 | ||
105 | #define CONF_R_MISSING_EQUAL_SIGN 101 | ||
106 | #define CONF_R_NO_CLOSE_BRACE 102 | ||
107 | #define CONF_R_UNABLE_TO_CREATE_NEW_SECTION 103 | ||
108 | #define CONF_R_VARIABLE_HAS_NO_VALUE 104 | ||
109 | |||
110 | #ifdef __cplusplus | ||
111 | } | ||
112 | #endif | ||
113 | #endif | ||
114 | |||
diff --git a/src/lib/libcrypto/conf/conf_err.c b/src/lib/libcrypto/conf/conf_err.c deleted file mode 100644 index eb4b3cfc70..0000000000 --- a/src/lib/libcrypto/conf/conf_err.c +++ /dev/null | |||
@@ -1,100 +0,0 @@ | |||
1 | /* crypto/conf/conf_err.c */ | ||
2 | /* ==================================================================== | ||
3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * 1. Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in | ||
14 | * the documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * 3. All advertising materials mentioning features or use of this | ||
18 | * software must display the following acknowledgment: | ||
19 | * "This product includes software developed by the OpenSSL Project | ||
20 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
21 | * | ||
22 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
23 | * endorse or promote products derived from this software without | ||
24 | * prior written permission. For written permission, please contact | ||
25 | * openssl-core@OpenSSL.org. | ||
26 | * | ||
27 | * 5. Products derived from this software may not be called "OpenSSL" | ||
28 | * nor may "OpenSSL" appear in their names without prior written | ||
29 | * permission of the OpenSSL Project. | ||
30 | * | ||
31 | * 6. Redistributions of any form whatsoever must retain the following | ||
32 | * acknowledgment: | ||
33 | * "This product includes software developed by the OpenSSL Project | ||
34 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
35 | * | ||
36 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
37 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
38 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
39 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
40 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
41 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
42 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
43 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
44 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
45 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
46 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
47 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
48 | * ==================================================================== | ||
49 | * | ||
50 | * This product includes cryptographic software written by Eric Young | ||
51 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
52 | * Hudson (tjh@cryptsoft.com). | ||
53 | * | ||
54 | */ | ||
55 | |||
56 | /* NOTE: this file was auto generated by the mkerr.pl script: any changes | ||
57 | * made to it will be overwritten when the script next updates this file. | ||
58 | */ | ||
59 | |||
60 | #include <stdio.h> | ||
61 | #include <openssl/err.h> | ||
62 | #include <openssl/conf.h> | ||
63 | |||
64 | /* BEGIN ERROR CODES */ | ||
65 | #ifndef NO_ERR | ||
66 | static ERR_STRING_DATA CONF_str_functs[]= | ||
67 | { | ||
68 | {ERR_PACK(0,CONF_F_CONF_LOAD,0), "CONF_load"}, | ||
69 | {ERR_PACK(0,CONF_F_CONF_LOAD_BIO,0), "CONF_load_bio"}, | ||
70 | {ERR_PACK(0,CONF_F_CONF_LOAD_FP,0), "CONF_load_fp"}, | ||
71 | {ERR_PACK(0,CONF_F_STR_COPY,0), "STR_COPY"}, | ||
72 | {0,NULL} | ||
73 | }; | ||
74 | |||
75 | static ERR_STRING_DATA CONF_str_reasons[]= | ||
76 | { | ||
77 | {CONF_R_MISSING_CLOSE_SQUARE_BRACKET ,"missing close square bracket"}, | ||
78 | {CONF_R_MISSING_EQUAL_SIGN ,"missing equal sign"}, | ||
79 | {CONF_R_NO_CLOSE_BRACE ,"no close brace"}, | ||
80 | {CONF_R_UNABLE_TO_CREATE_NEW_SECTION ,"unable to create new section"}, | ||
81 | {CONF_R_VARIABLE_HAS_NO_VALUE ,"variable has no value"}, | ||
82 | {0,NULL} | ||
83 | }; | ||
84 | |||
85 | #endif | ||
86 | |||
87 | void ERR_load_CONF_strings(void) | ||
88 | { | ||
89 | static int init=1; | ||
90 | |||
91 | if (init) | ||
92 | { | ||
93 | init=0; | ||
94 | #ifndef NO_ERR | ||
95 | ERR_load_strings(ERR_LIB_CONF,CONF_str_functs); | ||
96 | ERR_load_strings(ERR_LIB_CONF,CONF_str_reasons); | ||
97 | #endif | ||
98 | |||
99 | } | ||
100 | } | ||
diff --git a/src/lib/libcrypto/conf/keysets.pl b/src/lib/libcrypto/conf/keysets.pl deleted file mode 100644 index 1aed0c80c4..0000000000 --- a/src/lib/libcrypto/conf/keysets.pl +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | #!/usr/local/bin/perl | ||
2 | |||
3 | $NUMBER=0x01; | ||
4 | $UPPER=0x02; | ||
5 | $LOWER=0x04; | ||
6 | $EOF=0x08; | ||
7 | $WS=0x10; | ||
8 | $ESC=0x20; | ||
9 | $QUOTE=0x40; | ||
10 | $COMMENT=0x80; | ||
11 | $UNDER=0x100; | ||
12 | |||
13 | foreach (0 .. 127) | ||
14 | { | ||
15 | $v=0; | ||
16 | $c=sprintf("%c",$_); | ||
17 | $v|=$NUMBER if ($c =~ /[0-9]/); | ||
18 | $v|=$UPPER if ($c =~ /[A-Z]/); | ||
19 | $v|=$LOWER if ($c =~ /[a-z]/); | ||
20 | $v|=$UNDER if ($c =~ /_/); | ||
21 | $v|=$WS if ($c =~ / \t\r\n/); | ||
22 | $v|=$ESC if ($c =~ /\\/); | ||
23 | $v|=$QUOTE if ($c =~ /['`"]/); | ||
24 | $v|=$COMMENT if ($c =~ /\#/); | ||
25 | $v|=$EOF if ($c =~ /\0/); | ||
26 | |||
27 | push(@V,$v); | ||
28 | } | ||
29 | |||
30 | print <<"EOF"; | ||
31 | #define CONF_NUMBER $NUMBER | ||
32 | #define CONF_UPPER $UPPER | ||
33 | #define CONF_LOWER $LOWER | ||
34 | #define CONF_EOF $EOF | ||
35 | #define CONF_WS $WS | ||
36 | #define CONF_ESC $ESC | ||
37 | #define CONF_QUOTE $QUOTE | ||
38 | #define CONF_COMMENT $COMMENT | ||
39 | #define CONF_ALPHA (CONF_UPPER|CONF_LOWER) | ||
40 | #define CONF_ALPHA_NUMERIC (CONF_ALPHA|CONF_NUMBER|CONF_UNDER) | ||
41 | #define CONF_UNDER $UNDER | ||
42 | |||
43 | #define IS_COMMENT(a) (CONF_COMMENT&(CONF_type[(a)&0x7f])) | ||
44 | #define IS_EOF(a) ((a) == '\\0') | ||
45 | #define IS_ESC(a) ((a) == '\\\\') | ||
46 | #define IS_NUMER(a) (CONF_type[(a)&0x7f]&CONF_NUMBER) | ||
47 | #define IS_WS(a) (CONF_type[(a)&0x7f]&CONF_WS) | ||
48 | #define IS_ALPHA_NUMERIC(a) (CONF_type[(a)&0x7f]&CONF_ALPHA_NUMERIC) | ||
49 | #define IS_QUOTE(a) (CONF_type[(a)&0x7f]&CONF_QUOTE) | ||
50 | |||
51 | EOF | ||
52 | |||
53 | print "static unsigned short CONF_type[128]={"; | ||
54 | |||
55 | for ($i=0; $i<128; $i++) | ||
56 | { | ||
57 | print "\n\t" if ($i % 8) == 0; | ||
58 | printf "0x%03X,",$V[$i]; | ||
59 | } | ||
60 | |||
61 | print "\n\t};\n"; | ||
diff --git a/src/lib/libcrypto/conf/ssleay.cnf b/src/lib/libcrypto/conf/ssleay.cnf deleted file mode 100644 index ed33af601e..0000000000 --- a/src/lib/libcrypto/conf/ssleay.cnf +++ /dev/null | |||
@@ -1,78 +0,0 @@ | |||
1 | # | ||
2 | # This is a test configuration file for use in SSLeay etc... | ||
3 | # | ||
4 | |||
5 | init = 5 | ||
6 | in\#it1 =10 | ||
7 | init2='10' | ||
8 | init3='10\'' | ||
9 | init4="10'" | ||
10 | init5='='10\'' again' | ||
11 | |||
12 | SSLeay::version = 0.5.0 | ||
13 | |||
14 | [genrsa] | ||
15 | default_bits = 512 | ||
16 | SSLEAY::version = 0.5.0 | ||
17 | |||
18 | [gendh] | ||
19 | default_bits = 512 | ||
20 | def_generator = 2 | ||
21 | |||
22 | [s_client] | ||
23 | cipher1 = DES_CBC_MD5:DES_CBC_SHA:DES_EDE_SHA:RC4_MD5\ | ||
24 | cipher2 = 'DES_CBC_MD5 DES_CBC_SHA DES_EDE_SHA RC4_MD5' | ||
25 | cipher3 = "DES_CBC_MD5 DES_CBC_SHA DES_EDE_SHA RC4_MD5" | ||
26 | cipher4 = DES_CBC_MD5 DES_CBC_SHA DES_EDE_SHA RC4_MD5 | ||
27 | |||
28 | [ default ] | ||
29 | cert_dir = $ENV::HOME/.ca_certs | ||
30 | |||
31 | HOME = /tmp/eay | ||
32 | |||
33 | tmp_cert_dir = $HOME/.ca_certs | ||
34 | tmp2_cert_dir = thisis$(HOME)stuff | ||
35 | |||
36 | LOGNAME = Eric Young (home=$HOME) | ||
37 | |||
38 | [ special ] | ||
39 | |||
40 | H=$HOME | ||
41 | H=$default::HOME | ||
42 | H=$ENV::HOME | ||
43 | # | ||
44 | # SSLeay example configuration file. | ||
45 | # This is mostly being used for generation of certificate requests. | ||
46 | # | ||
47 | |||
48 | RANDFILE = $HOME/.rand | ||
49 | |||
50 | [ req ] | ||
51 | default_bits = 512 | ||
52 | default_keyfile = privkey.pem | ||
53 | |||
54 | Attribute_type_1 = countryName | ||
55 | Attribute_text_1 = Country Name (2 letter code) | ||
56 | Attribute_default_1 = AU | ||
57 | |||
58 | Attribute_type_2 = stateOrProvinceName | ||
59 | Attribute_text_2 = State or Province Name (full name) | ||
60 | Attribute_default_2 = Queensland | ||
61 | |||
62 | Attribute_type_3 = localityName | ||
63 | Attribute_text_3 = Locality Name (eg, city) | ||
64 | |||
65 | Attribute_type_4 = organizationName | ||
66 | Attribute_text_4 = Organization Name (eg, company) | ||
67 | Attribute_default_4 = Mincom Pty Ltd | ||
68 | |||
69 | Attribute_type_5 = organizationalUnitName | ||
70 | Attribute_text_5 = Organizational Unit Name (eg, section) | ||
71 | Attribute_default_5 = TR | ||
72 | |||
73 | Attribute_type_6 = commonName | ||
74 | Attribute_text_6 = Common Name (eg, YOUR name) | ||
75 | |||
76 | Attribute_type_7 = emailAddress | ||
77 | Attribute_text_7 = Email Address | ||
78 | |||