diff options
author | ryker <> | 1998-10-05 20:13:11 +0000 |
---|---|---|
committer | ryker <> | 1998-10-05 20:13:11 +0000 |
commit | 92aea9da31e1e5746c15202285d820cc2da65f0f (patch) | |
tree | 1a18c88b030b0d24fa65368b9ddcacfa8e1843ea | |
download | openbsd-92aea9da31e1e5746c15202285d820cc2da65f0f.tar.gz openbsd-92aea9da31e1e5746c15202285d820cc2da65f0f.tar.bz2 openbsd-92aea9da31e1e5746c15202285d820cc2da65f0f.zip |
Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD build
functionality for shared libs.
Note that routines such as sslv2_init and friends that use RSA will
not work due to lack of RSA in this library.
Needs documentation and help from ports for easy upgrade to full
functionality where legally possible.
93 files changed, 9105 insertions, 0 deletions
diff --git a/src/lib/libcrypto/Makefile.ssl b/src/lib/libcrypto/Makefile.ssl new file mode 100644 index 0000000000..efdbba38ac --- /dev/null +++ b/src/lib/libcrypto/Makefile.ssl | |||
@@ -0,0 +1,161 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= crypto | ||
6 | TOP= .. | ||
7 | CC= cc | ||
8 | INCLUDE= -I. -I../include | ||
9 | INCLUDES= -I.. -I../../include | ||
10 | CFLAG= -g | ||
11 | INSTALLTOP= /usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | RM= /bin/rm -f | ||
16 | AR= ar r | ||
17 | |||
18 | MAKE= make -f Makefile.ssl | ||
19 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
20 | MAKEFILE= Makefile.ssl | ||
21 | |||
22 | PEX_LIBS= | ||
23 | EX_LIBS= | ||
24 | |||
25 | CFLAGS= $(INCLUDE) $(CFLAG) -DCFLAGS=" \"$(CC) $(CFLAG)\" " | ||
26 | |||
27 | ERR=crypto | ||
28 | ERRC=cpt_err | ||
29 | |||
30 | LIBS= | ||
31 | |||
32 | SDIRS= md2 md5 sha mdc2 hmac ripemd \ | ||
33 | des rc2 rc4 rc5 idea bf cast \ | ||
34 | bn rsa dsa dh \ | ||
35 | buffer bio stack lhash rand err objects \ | ||
36 | evp pem x509 \ | ||
37 | asn1 conf txt_db pkcs7 | ||
38 | |||
39 | GENERAL=Makefile README | ||
40 | |||
41 | LIB= $(TOP)/libcrypto.a | ||
42 | LIBSRC= cryptlib.c mem.c cversion.c ex_data.c $(ERRC).c | ||
43 | LIBOBJ= cryptlib.o mem.o cversion.o ex_data.o $(ERRC).o | ||
44 | |||
45 | SRC= $(LIBSRC) | ||
46 | |||
47 | EXHEADER= crypto.h cryptall.h | ||
48 | HEADER= cryptlib.h date.h $(EXHEADER) | ||
49 | |||
50 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
51 | |||
52 | top: | ||
53 | @(cd ..; $(MAKE) DIRS=$(DIR) all) | ||
54 | |||
55 | all: date.h lib subdirs | ||
56 | |||
57 | date.h: ../Makefile.ssl ../VERSION | ||
58 | echo "#define DATE \"`date`\"" >date.h | ||
59 | |||
60 | subdirs: | ||
61 | @for i in $(SDIRS) ;\ | ||
62 | do \ | ||
63 | (cd $$i; echo "making all in $$i..."; \ | ||
64 | $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_MULW='${BN_MULW}' DES_ENC='${DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' all ); \ | ||
65 | done; | ||
66 | |||
67 | files: | ||
68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
69 | @for i in $(SDIRS) ;\ | ||
70 | do \ | ||
71 | (cd $$i; echo "making 'files' in $$i..."; \ | ||
72 | $(MAKE) files ); \ | ||
73 | done; | ||
74 | |||
75 | links: | ||
76 | /bin/rm -f Makefile | ||
77 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
78 | $(TOP)/util/mklink.sh ../include $(HEADER) ; | ||
79 | $(TOP)/util/mklink.sh ../test $(TEST) ; | ||
80 | $(TOP)/util/mklink.sh ../apps $(APPS) ; | ||
81 | $(TOP)/util/point.sh Makefile.ssl Makefile; | ||
82 | @for i in $(SDIRS) ;\ | ||
83 | do \ | ||
84 | (cd $$i; echo "making links in $$i..."; \ | ||
85 | $(MAKE) links ); \ | ||
86 | done; | ||
87 | |||
88 | lib: $(LIBOBJ) | ||
89 | $(AR) $(LIB) $(LIBOBJ) | ||
90 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
91 | @touch lib | ||
92 | |||
93 | libs: | ||
94 | @for i in $(SDIRS) ;\ | ||
95 | do \ | ||
96 | (cd $$i; echo "making libs in $$i..."; \ | ||
97 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' lib ); \ | ||
98 | done; | ||
99 | |||
100 | tests: | ||
101 | @for i in $(SDIRS) ;\ | ||
102 | do \ | ||
103 | (cd $$i; echo "making tests in $$i..."; \ | ||
104 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' tests ); \ | ||
105 | done; | ||
106 | |||
107 | install: | ||
108 | @for i in $(EXHEADER) ;\ | ||
109 | do \ | ||
110 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
111 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
112 | done; | ||
113 | @for i in $(SDIRS) ;\ | ||
114 | do \ | ||
115 | (cd $$i; echo "making install in $$i..."; \ | ||
116 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' install ); \ | ||
117 | done; | ||
118 | |||
119 | lint: | ||
120 | @for i in $(SDIRS) ;\ | ||
121 | do \ | ||
122 | (cd $$i; echo "making lint in $$i..."; \ | ||
123 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' lint ); \ | ||
124 | done; | ||
125 | |||
126 | depend: | ||
127 | $(MAKEDEPEND) $(INCLUDE) $(PROGS) $(LIBSRC) | ||
128 | @for i in $(SDIRS) ;\ | ||
129 | do \ | ||
130 | (cd $$i; echo "making depend in $$i..."; \ | ||
131 | $(MAKE) MAKEFILE='${MAKEFILE}' INCLUDES='${INCLUDES}' MAKEDEPEND='${MAKEDEPEND}' depend ); \ | ||
132 | done; | ||
133 | |||
134 | clean: | ||
135 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
136 | @for i in $(SDIRS) ;\ | ||
137 | do \ | ||
138 | (cd $$i; echo "making clean in $$i..."; \ | ||
139 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' clean ); \ | ||
140 | done; | ||
141 | |||
142 | dclean: | ||
143 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
144 | mv -f Makefile.new $(MAKEFILE) | ||
145 | @for i in $(SDIRS) ;\ | ||
146 | do \ | ||
147 | (cd $$i; echo "making dclean in $$i..."; \ | ||
148 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' dclean ); \ | ||
149 | done; | ||
150 | |||
151 | errors: | ||
152 | perl ./err/err_code.pl -conf err/ssleay.ec *.c */*.c ../ssl/*.c ../rsaref/*.c | ||
153 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
154 | perl err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
155 | @for i in $(SDIRS) ;\ | ||
156 | do \ | ||
157 | (cd $$i; echo "making errors in $$i..."; \ | ||
158 | $(MAKE) errors ); \ | ||
159 | done; | ||
160 | |||
161 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/asn1/Makefile.ssl b/src/lib/libcrypto/asn1/Makefile.ssl new file mode 100644 index 0000000000..30751bd156 --- /dev/null +++ b/src/lib/libcrypto/asn1/Makefile.ssl | |||
@@ -0,0 +1,120 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/asn1/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= asn1 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=asn1 | ||
19 | ERRC=asn1_err | ||
20 | GENERAL=Makefile README | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= a_object.c a_bitstr.c a_utctm.c a_int.c a_octet.c a_print.c \ | ||
26 | a_type.c a_set.c a_dup.c a_d2i_fp.c a_i2d_fp.c \ | ||
27 | a_sign.c a_digest.c a_verify.c \ | ||
28 | x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.c \ | ||
29 | x_name.c x_cinf.c x_x509.c x_crl.c x_info.c x_spki.c \ | ||
30 | d2i_r_pr.c i2d_r_pr.c d2i_r_pu.c i2d_r_pu.c \ | ||
31 | d2i_s_pr.c i2d_s_pr.c d2i_s_pu.c i2d_s_pu.c \ | ||
32 | d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c\ | ||
33 | t_req.c t_x509.c t_pkey.c \ | ||
34 | p7_i_s.c p7_signi.c p7_signd.c p7_recip.c p7_enc_c.c p7_evp.c \ | ||
35 | p7_dgst.c p7_s_e.c p7_enc.c p7_lib.c \ | ||
36 | f_int.c f_string.c i2d_dhp.c i2d_dsap.c d2i_dhp.c d2i_dsap.c n_pkey.c \ | ||
37 | a_hdr.c x_pkey.c a_bool.c x_exten.c \ | ||
38 | asn1_par.c asn1_lib.c $(ERRC).c a_meth.c a_bytes.c \ | ||
39 | evp_asn1.c | ||
40 | LIBOBJ= a_object.o a_bitstr.o a_utctm.o a_int.o a_octet.o a_print.o \ | ||
41 | a_type.o a_set.o a_dup.o a_d2i_fp.o a_i2d_fp.o \ | ||
42 | a_sign.o a_digest.o a_verify.o \ | ||
43 | x_algor.o x_val.o x_pubkey.o x_sig.o x_req.o x_attrib.o \ | ||
44 | x_name.o x_cinf.o x_x509.o x_crl.o x_info.o x_spki.o \ | ||
45 | d2i_r_pr.o i2d_r_pr.o d2i_r_pu.o i2d_r_pu.o \ | ||
46 | d2i_s_pr.o i2d_s_pr.o d2i_s_pu.o i2d_s_pu.o \ | ||
47 | d2i_pu.o d2i_pr.o i2d_pu.o i2d_pr.o \ | ||
48 | t_req.o t_x509.o t_pkey.o \ | ||
49 | p7_i_s.o p7_signi.o p7_signd.o p7_recip.o p7_enc_c.o p7_evp.o \ | ||
50 | p7_dgst.o p7_s_e.o p7_enc.o p7_lib.o \ | ||
51 | f_int.o f_string.o i2d_dhp.o i2d_dsap.o d2i_dhp.o d2i_dsap.o n_pkey.o \ | ||
52 | a_hdr.o x_pkey.o a_bool.o x_exten.o \ | ||
53 | asn1_par.o asn1_lib.o $(ERRC).o a_meth.o a_bytes.o \ | ||
54 | evp_asn1.o | ||
55 | |||
56 | SRC= $(LIBSRC) | ||
57 | |||
58 | EXHEADER= asn1.h asn1_mac.h | ||
59 | HEADER= $(EXHEADER) | ||
60 | |||
61 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
62 | |||
63 | top: | ||
64 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
65 | |||
66 | test: test.c | ||
67 | cc -g -I../../include -c test.c | ||
68 | cc -g -I../../include -o test test.o -L../.. -lcrypto | ||
69 | |||
70 | pk: pk.c | ||
71 | cc -g -I../../include -c pk.c | ||
72 | cc -g -I../../include -o pk pk.o -L../.. -lcrypto | ||
73 | |||
74 | all: lib | ||
75 | |||
76 | lib: $(LIBOBJ) | ||
77 | $(AR) $(LIB) $(LIBOBJ) | ||
78 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
79 | @touch lib | ||
80 | |||
81 | files: | ||
82 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
83 | |||
84 | links: | ||
85 | /bin/rm -f Makefile | ||
86 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
87 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
88 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
89 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
90 | |||
91 | install: | ||
92 | @for i in $(EXHEADER) ; \ | ||
93 | do \ | ||
94 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
95 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
96 | done; | ||
97 | |||
98 | tags: | ||
99 | ctags $(SRC) | ||
100 | |||
101 | tests: | ||
102 | |||
103 | lint: | ||
104 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
105 | |||
106 | depend: | ||
107 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
108 | |||
109 | dclean: | ||
110 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
111 | mv -f Makefile.new $(MAKEFILE) | ||
112 | |||
113 | clean: | ||
114 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
115 | |||
116 | errors: | ||
117 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
118 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
119 | |||
120 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/asn1/f.c b/src/lib/libcrypto/asn1/f.c new file mode 100644 index 0000000000..2ab3a262ac --- /dev/null +++ b/src/lib/libcrypto/asn1/f.c | |||
@@ -0,0 +1,80 @@ | |||
1 | /* crypto/asn1/f.c */ | ||
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 | #include <stdio.h> | ||
59 | #include "asn1.h" | ||
60 | #include "err.h" | ||
61 | |||
62 | main() | ||
63 | { | ||
64 | ASN1_TYPE *at; | ||
65 | char buf[512]; | ||
66 | int n; | ||
67 | long l; | ||
68 | |||
69 | at=ASN1_TYPE_new(); | ||
70 | |||
71 | n=ASN1_TYPE_set_int_octetstring(at,98736,"01234567",8); | ||
72 | printf("%d\n",n); | ||
73 | n=ASN1_TYPE_get_int_octetstring(at,&l,buf,8); | ||
74 | buf[8]='\0'; | ||
75 | printf("%ld %d %d\n",l,n,buf[8]); | ||
76 | buf[8]='\0'; | ||
77 | printf("%s\n",buf); | ||
78 | ERR_load_crypto_strings(); | ||
79 | ERR_print_errors_fp(stderr); | ||
80 | } | ||
diff --git a/src/lib/libcrypto/asn1/x_cinf.c b/src/lib/libcrypto/asn1/x_cinf.c new file mode 100644 index 0000000000..4fc2cc9f6e --- /dev/null +++ b/src/lib/libcrypto/asn1/x_cinf.c | |||
@@ -0,0 +1,197 @@ | |||
1 | /* crypto/asn1/x_cinf.c */ | ||
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 | #include <stdio.h> | ||
60 | #include "cryptlib.h" | ||
61 | #include "asn1_mac.h" | ||
62 | |||
63 | /* | ||
64 | * ASN1err(ASN1_F_D2I_X509_CINF,ASN1_R_LENGTH_MISMATCH); | ||
65 | * ASN1err(ASN1_F_X509_CINF_NEW,ASN1_R_LENGTH_MISMATCH); | ||
66 | */ | ||
67 | |||
68 | int i2d_X509_CINF(a,pp) | ||
69 | X509_CINF *a; | ||
70 | unsigned char **pp; | ||
71 | { | ||
72 | int v1=0,v2=0; | ||
73 | M_ASN1_I2D_vars(a); | ||
74 | |||
75 | M_ASN1_I2D_len_EXP_opt(a->version,i2d_ASN1_INTEGER,0,v1); | ||
76 | M_ASN1_I2D_len(a->serialNumber, i2d_ASN1_INTEGER); | ||
77 | M_ASN1_I2D_len(a->signature, i2d_X509_ALGOR); | ||
78 | M_ASN1_I2D_len(a->issuer, i2d_X509_NAME); | ||
79 | M_ASN1_I2D_len(a->validity, i2d_X509_VAL); | ||
80 | M_ASN1_I2D_len(a->subject, i2d_X509_NAME); | ||
81 | M_ASN1_I2D_len(a->key, i2d_X509_PUBKEY); | ||
82 | M_ASN1_I2D_len_IMP_opt(a->issuerUID, i2d_ASN1_BIT_STRING); | ||
83 | M_ASN1_I2D_len_IMP_opt(a->subjectUID, i2d_ASN1_BIT_STRING); | ||
84 | M_ASN1_I2D_len_EXP_set_opt(a->extensions,i2d_X509_EXTENSION,3,V_ASN1_SEQUENCE,v2); | ||
85 | |||
86 | M_ASN1_I2D_seq_total(); | ||
87 | |||
88 | M_ASN1_I2D_put_EXP_opt(a->version,i2d_ASN1_INTEGER,0,v1); | ||
89 | M_ASN1_I2D_put(a->serialNumber, i2d_ASN1_INTEGER); | ||
90 | M_ASN1_I2D_put(a->signature, i2d_X509_ALGOR); | ||
91 | M_ASN1_I2D_put(a->issuer, i2d_X509_NAME); | ||
92 | M_ASN1_I2D_put(a->validity, i2d_X509_VAL); | ||
93 | M_ASN1_I2D_put(a->subject, i2d_X509_NAME); | ||
94 | M_ASN1_I2D_put(a->key, i2d_X509_PUBKEY); | ||
95 | M_ASN1_I2D_put_IMP_opt(a->issuerUID, i2d_ASN1_BIT_STRING,1); | ||
96 | M_ASN1_I2D_put_IMP_opt(a->subjectUID, i2d_ASN1_BIT_STRING,2); | ||
97 | M_ASN1_I2D_put_EXP_set_opt(a->extensions,i2d_X509_EXTENSION,3,V_ASN1_SEQUENCE,v2); | ||
98 | |||
99 | M_ASN1_I2D_finish(); | ||
100 | } | ||
101 | |||
102 | X509_CINF *d2i_X509_CINF(a,pp,length) | ||
103 | X509_CINF **a; | ||
104 | unsigned char **pp; | ||
105 | long length; | ||
106 | { | ||
107 | int ver=0; | ||
108 | M_ASN1_D2I_vars(a,X509_CINF *,X509_CINF_new); | ||
109 | |||
110 | M_ASN1_D2I_Init(); | ||
111 | M_ASN1_D2I_start_sequence(); | ||
112 | /* we have the optional version field */ | ||
113 | if (M_ASN1_next == (V_ASN1_CONTEXT_SPECIFIC | V_ASN1_CONSTRUCTED | 0)) | ||
114 | { | ||
115 | M_ASN1_D2I_get_EXP_opt(ret->version,d2i_ASN1_INTEGER,0); | ||
116 | if (ret->version->data != NULL) | ||
117 | ver=ret->version->data[0]; | ||
118 | } | ||
119 | else | ||
120 | { | ||
121 | if (ret->version != NULL) | ||
122 | { | ||
123 | ASN1_INTEGER_free(ret->version); | ||
124 | ret->version=NULL; | ||
125 | } | ||
126 | } | ||
127 | M_ASN1_D2I_get(ret->serialNumber,d2i_ASN1_INTEGER); | ||
128 | M_ASN1_D2I_get(ret->signature,d2i_X509_ALGOR); | ||
129 | M_ASN1_D2I_get(ret->issuer,d2i_X509_NAME); | ||
130 | M_ASN1_D2I_get(ret->validity,d2i_X509_VAL); | ||
131 | M_ASN1_D2I_get(ret->subject,d2i_X509_NAME); | ||
132 | M_ASN1_D2I_get(ret->key,d2i_X509_PUBKEY); | ||
133 | if (ver >= 1) /* version 2 extensions */ | ||
134 | { | ||
135 | if (ret->issuerUID != NULL) | ||
136 | { | ||
137 | ASN1_BIT_STRING_free(ret->issuerUID); | ||
138 | ret->issuerUID=NULL; | ||
139 | } | ||
140 | if (ret->subjectUID != NULL) | ||
141 | { | ||
142 | ASN1_BIT_STRING_free(ret->subjectUID); | ||
143 | ret->issuerUID=NULL; | ||
144 | } | ||
145 | M_ASN1_D2I_get_IMP_opt(ret->issuerUID,d2i_ASN1_BIT_STRING, 1, | ||
146 | V_ASN1_BIT_STRING); | ||
147 | M_ASN1_D2I_get_IMP_opt(ret->subjectUID,d2i_ASN1_BIT_STRING, 2, | ||
148 | V_ASN1_BIT_STRING); | ||
149 | } | ||
150 | if (ver >= 2) /* version 3 extensions */ | ||
151 | { | ||
152 | if (ret->extensions != NULL) | ||
153 | while (sk_num(ret->extensions)) | ||
154 | X509_EXTENSION_free((X509_EXTENSION *) | ||
155 | sk_pop(ret->extensions)); | ||
156 | M_ASN1_D2I_get_EXP_set_opt(ret->extensions,d2i_X509_EXTENSION,3, | ||
157 | V_ASN1_SEQUENCE); | ||
158 | } | ||
159 | M_ASN1_D2I_Finish(a,X509_CINF_free,ASN1_F_D2I_X509_CINF); | ||
160 | } | ||
161 | |||
162 | X509_CINF *X509_CINF_new() | ||
163 | { | ||
164 | X509_CINF *ret=NULL; | ||
165 | |||
166 | M_ASN1_New_Malloc(ret,X509_CINF); | ||
167 | ret->version=NULL; | ||
168 | M_ASN1_New(ret->serialNumber,ASN1_INTEGER_new); | ||
169 | M_ASN1_New(ret->signature,X509_ALGOR_new); | ||
170 | M_ASN1_New(ret->issuer,X509_NAME_new); | ||
171 | M_ASN1_New(ret->validity,X509_VAL_new); | ||
172 | M_ASN1_New(ret->subject,X509_NAME_new); | ||
173 | M_ASN1_New(ret->key,X509_PUBKEY_new); | ||
174 | ret->issuerUID=NULL; | ||
175 | ret->subjectUID=NULL; | ||
176 | ret->extensions=NULL; | ||
177 | return(ret); | ||
178 | M_ASN1_New_Error(ASN1_F_X509_CINF_NEW); | ||
179 | } | ||
180 | |||
181 | void X509_CINF_free(a) | ||
182 | X509_CINF *a; | ||
183 | { | ||
184 | if (a == NULL) return; | ||
185 | ASN1_INTEGER_free(a->version); | ||
186 | ASN1_INTEGER_free(a->serialNumber); | ||
187 | X509_ALGOR_free(a->signature); | ||
188 | X509_NAME_free(a->issuer); | ||
189 | X509_VAL_free(a->validity); | ||
190 | X509_NAME_free(a->subject); | ||
191 | X509_PUBKEY_free(a->key); | ||
192 | ASN1_BIT_STRING_free(a->issuerUID); | ||
193 | ASN1_BIT_STRING_free(a->subjectUID); | ||
194 | sk_pop_free(a->extensions,X509_EXTENSION_free); | ||
195 | Free((char *)a); | ||
196 | } | ||
197 | |||
diff --git a/src/lib/libcrypto/bf/Makefile.ssl b/src/lib/libcrypto/bf/Makefile.ssl new file mode 100644 index 0000000000..236671f238 --- /dev/null +++ b/src/lib/libcrypto/bf/Makefile.ssl | |||
@@ -0,0 +1,107 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/blowfish/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= bf | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | |||
17 | BF_ENC= bf_enc.o | ||
18 | # or use | ||
19 | #DES_ENC= bx86-elf.o | ||
20 | |||
21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
22 | |||
23 | GENERAL=Makefile | ||
24 | TEST=bftest.c | ||
25 | APPS= | ||
26 | |||
27 | LIB=$(TOP)/libcrypto.a | ||
28 | LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c | ||
29 | LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o | ||
30 | |||
31 | SRC= $(LIBSRC) | ||
32 | |||
33 | EXHEADER= blowfish.h | ||
34 | HEADER= bf_pi.h bf_locl.h $(EXHEADER) | ||
35 | |||
36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
37 | |||
38 | top: | ||
39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
40 | |||
41 | all: lib | ||
42 | |||
43 | lib: $(LIBOBJ) | ||
44 | $(AR) $(LIB) $(LIBOBJ) | ||
45 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
46 | @touch lib | ||
47 | |||
48 | # elf | ||
49 | asm/bx86-elf.o: asm/bx86unix.cpp | ||
50 | $(CPP) -DELF asm/bx86unix.cpp | as -o asm/bx86-elf.o | ||
51 | |||
52 | # solaris | ||
53 | asm/bx86-sol.o: asm/bx86unix.cpp | ||
54 | $(CC) -E -DSOL asm/bx86unix.cpp | sed 's/^#.*//' > asm/bx86-sol.s | ||
55 | as -o asm/bx86-sol.o asm/bx86-sol.s | ||
56 | rm -f asm/bx86-sol.s | ||
57 | |||
58 | # a.out | ||
59 | asm/bx86-out.o: asm/bx86unix.cpp | ||
60 | $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o | ||
61 | |||
62 | # bsdi | ||
63 | asm/bx86bsdi.o: asm/bx86unix.cpp | ||
64 | $(CPP) -DBSDI asm/bx86unix.cpp | as -o asm/bx86bsdi.o | ||
65 | |||
66 | asm/bx86unix.cpp: | ||
67 | (cd asm; perl bf-586.pl cpp >bx86unix.cpp) | ||
68 | |||
69 | files: | ||
70 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
71 | |||
72 | links: | ||
73 | /bin/rm -f Makefile | ||
74 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
75 | $(TOP)/util/point.sh ../../doc/blowfish.doc blowfish.doc ; | ||
76 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
77 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
78 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
79 | |||
80 | install: | ||
81 | @for i in $(EXHEADER) ; \ | ||
82 | do \ | ||
83 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
84 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
85 | done; | ||
86 | |||
87 | tags: | ||
88 | ctags $(SRC) | ||
89 | |||
90 | tests: | ||
91 | |||
92 | lint: | ||
93 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
94 | |||
95 | depend: | ||
96 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
97 | |||
98 | dclean: | ||
99 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
100 | mv -f Makefile.new $(MAKEFILE) | ||
101 | |||
102 | clean: | ||
103 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
104 | |||
105 | errors: | ||
106 | |||
107 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/bio/Makefile.ssl b/src/lib/libcrypto/bio/Makefile.ssl new file mode 100644 index 0000000000..42e11e1c94 --- /dev/null +++ b/src/lib/libcrypto/bio/Makefile.ssl | |||
@@ -0,0 +1,92 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/bio/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= bio | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=bio | ||
19 | ERRC=bio_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= bio_lib.c bio_cb.c $(ERRC).c \ | ||
26 | bss_mem.c bss_null.c bss_fd.c \ | ||
27 | bss_file.c bss_sock.c bss_conn.c \ | ||
28 | bf_null.c bf_buff.c b_print.c b_dump.c \ | ||
29 | b_sock.c bss_acpt.c bf_nbio.c | ||
30 | LIBOBJ= bio_lib.o bio_cb.o $(ERRC).o \ | ||
31 | bss_mem.o bss_null.o bss_fd.o \ | ||
32 | bss_file.o bss_sock.o bss_conn.o \ | ||
33 | bf_null.o bf_buff.o b_print.o b_dump.o \ | ||
34 | b_sock.o bss_acpt.o bf_nbio.o | ||
35 | |||
36 | SRC= $(LIBSRC) | ||
37 | |||
38 | EXHEADER= bio.h bss_file.c | ||
39 | HEADER= $(EXHEADER) | ||
40 | |||
41 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
42 | |||
43 | top: | ||
44 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
45 | |||
46 | all: lib | ||
47 | |||
48 | lib: $(LIBOBJ) | ||
49 | $(AR) $(LIB) $(LIBOBJ) | ||
50 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
51 | @touch lib | ||
52 | |||
53 | files: | ||
54 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
55 | |||
56 | links: | ||
57 | /bin/rm -f Makefile | ||
58 | $(TOP)/util/point.sh Makefile.ssl Makefile; | ||
59 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
60 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
61 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
62 | |||
63 | install: | ||
64 | @for i in $(EXHEADER) bss_file.c ; \ | ||
65 | do \ | ||
66 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
67 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
68 | done; | ||
69 | |||
70 | tags: | ||
71 | ctags $(SRC) | ||
72 | |||
73 | tests: | ||
74 | |||
75 | lint: | ||
76 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
77 | |||
78 | depend: | ||
79 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
80 | |||
81 | dclean: | ||
82 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
83 | mv -f Makefile.new $(MAKEFILE) | ||
84 | |||
85 | clean: | ||
86 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
87 | |||
88 | errors: | ||
89 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
90 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
91 | |||
92 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/bn/Makefile.ssl b/src/lib/libcrypto/bn/Makefile.ssl new file mode 100644 index 0000000000..9809d26cbc --- /dev/null +++ b/src/lib/libcrypto/bn/Makefile.ssl | |||
@@ -0,0 +1,133 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/bn/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= bn | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | BN_MULW= bn_mulw.o | ||
17 | # or use | ||
18 | #BN_MULW= bn86-elf.o | ||
19 | |||
20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
21 | |||
22 | ERR=bn | ||
23 | ERRC=bn_err | ||
24 | GENERAL=Makefile | ||
25 | TEST=bntest.c exptest.c | ||
26 | APPS= | ||
27 | |||
28 | LIB=$(TOP)/libcrypto.a | ||
29 | LIBSRC= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_mod.c bn_mul.c \ | ||
30 | bn_print.c bn_rand.c bn_shift.c bn_sub.c bn_word.c bn_blind.c \ | ||
31 | bn_gcd.c bn_prime.c $(ERRC).c bn_sqr.c bn_mulw.c bn_recp.c bn_mont.c \ | ||
32 | bn_mpi.c | ||
33 | |||
34 | LIBOBJ= bn_add.o bn_div.o bn_exp.o bn_lib.o bn_mod.o bn_mul.o \ | ||
35 | bn_print.o bn_rand.o bn_shift.o bn_sub.o bn_word.o bn_blind.o \ | ||
36 | bn_gcd.o bn_prime.o $(ERRC).o bn_sqr.o $(BN_MULW) bn_recp.o bn_mont.o \ | ||
37 | bn_mpi.o | ||
38 | |||
39 | |||
40 | SRC= $(LIBSRC) | ||
41 | |||
42 | EXHEADER= bn.h | ||
43 | HEADER= bn_lcl.h bn_prime.h $(EXHEADER) | ||
44 | |||
45 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
46 | |||
47 | top: | ||
48 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
49 | |||
50 | all: lib | ||
51 | |||
52 | knuth: bn_knuth.c | ||
53 | cc -pg -I.. -I../../include bn_knuth.c -o knuth $(LIB) #../../../libefence.a | ||
54 | |||
55 | knuth.fast: bn_knuth.c | ||
56 | cc -pg -fast -I.. -I../../include bn_knuth.c -o knuth $(LIB) #../../../libefence.a | ||
57 | |||
58 | |||
59 | lib: $(LIBOBJ) | ||
60 | $(AR) $(LIB) $(LIBOBJ) | ||
61 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
62 | @touch lib | ||
63 | |||
64 | # elf | ||
65 | asm/bn86-elf.o: asm/bn86unix.cpp | ||
66 | $(CPP) -DELF asm/bn86unix.cpp | as -o asm/bn86-elf.o | ||
67 | |||
68 | # solaris | ||
69 | asm/bn86-sol.o: asm/bn86unix.cpp | ||
70 | $(CC) -E -DSOL asm/bn86unix.cpp | sed 's/^#.*//' > asm/bn86-sol.s | ||
71 | as -o asm/bn86-sol.o asm/bn86-sol.s | ||
72 | rm -f asm/bn86-sol.s | ||
73 | |||
74 | # a.out | ||
75 | asm/bn86-out.o: asm/bn86unix.cpp | ||
76 | $(CPP) -DOUT asm/bn86unix.cpp | as -o asm/bn86-out.o | ||
77 | |||
78 | # bsdi | ||
79 | asm/bn86bsdi.o: asm/bn86unix.cpp | ||
80 | $(CPP) -DBSDI asm/bn86unix.cpp | as -o asm/bn86bsdi.o | ||
81 | |||
82 | asm/bn86unix.cpp: | ||
83 | (cd asm; perl bn-586.pl cpp >bn86unix.cpp ) | ||
84 | |||
85 | files: | ||
86 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
87 | |||
88 | links: | ||
89 | /bin/rm -f Makefile | ||
90 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
91 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
92 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
93 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
94 | |||
95 | install: | ||
96 | @for i in $(EXHEADER) ; \ | ||
97 | do \ | ||
98 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
99 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
100 | done; | ||
101 | |||
102 | exptest: | ||
103 | /bin/rm -f exptest | ||
104 | gcc -I../../include -g2 -ggdb -o exptest exptest.c ../../libcrypto.a | ||
105 | |||
106 | div: | ||
107 | /bin/rm -f a.out | ||
108 | gcc -I.. -g div.c ../../libcrypto.a | ||
109 | |||
110 | tags: | ||
111 | ctags $(SRC) | ||
112 | |||
113 | tests: | ||
114 | |||
115 | lint: | ||
116 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
117 | |||
118 | depend: | ||
119 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
120 | |||
121 | dclean: | ||
122 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
123 | mv -f Makefile.new $(MAKEFILE) | ||
124 | |||
125 | clean: | ||
126 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff bn_mulw.s | ||
127 | |||
128 | errors: | ||
129 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # special case .org | ||
130 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
131 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
132 | |||
133 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/buffer/Makefile.ssl b/src/lib/libcrypto/buffer/Makefile.ssl new file mode 100644 index 0000000000..a5f150e523 --- /dev/null +++ b/src/lib/libcrypto/buffer/Makefile.ssl | |||
@@ -0,0 +1,84 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/buffer/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= buffer | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=buffer | ||
19 | ERRC=buf_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= buffer.c $(ERRC).c | ||
26 | LIBOBJ= buffer.o $(ERRC).o | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= buffer.h | ||
31 | HEADER= $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | all: lib | ||
39 | |||
40 | lib: $(LIBOBJ) | ||
41 | $(AR) $(LIB) $(LIBOBJ) | ||
42 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
43 | @touch lib | ||
44 | |||
45 | files: | ||
46 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
47 | |||
48 | links: | ||
49 | /bin/rm -f Makefile | ||
50 | $(TOP)/util/point.sh Makefile.ssl Makefile; | ||
51 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
52 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
53 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
54 | |||
55 | install: | ||
56 | @for i in $(EXHEADER) ; \ | ||
57 | do \ | ||
58 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
59 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
60 | done; | ||
61 | |||
62 | tags: | ||
63 | ctags $(SRC) | ||
64 | |||
65 | tests: | ||
66 | |||
67 | lint: | ||
68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
69 | |||
70 | depend: | ||
71 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
72 | |||
73 | dclean: | ||
74 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
75 | mv -f Makefile.new $(MAKEFILE) | ||
76 | |||
77 | clean: | ||
78 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
79 | |||
80 | errors: | ||
81 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
82 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
83 | |||
84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/cast/Makefile.ssl b/src/lib/libcrypto/cast/Makefile.ssl new file mode 100644 index 0000000000..0143827ae5 --- /dev/null +++ b/src/lib/libcrypto/cast/Makefile.ssl | |||
@@ -0,0 +1,109 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/cast/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= cast | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | |||
17 | CAST_ENC=c_enc.o | ||
18 | # or use | ||
19 | #CAST_ENC=asm/cx86-elf.o | ||
20 | #CAST_ENC=asm/cx86-out.o | ||
21 | #CAST_ENC=asm/cx86-sol.o | ||
22 | #CAST_ENC=asm/cx86bdsi.o | ||
23 | |||
24 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
25 | |||
26 | GENERAL=Makefile | ||
27 | TEST=casttest.c | ||
28 | APPS= | ||
29 | |||
30 | LIB=$(TOP)/libcrypto.a | ||
31 | LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c | ||
32 | LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o | ||
33 | |||
34 | SRC= $(LIBSRC) | ||
35 | |||
36 | EXHEADER= cast.h | ||
37 | HEADER= cast_s.h cast_lcl.h $(EXHEADER) | ||
38 | |||
39 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
40 | |||
41 | top: | ||
42 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
43 | |||
44 | all: lib | ||
45 | |||
46 | lib: $(LIBOBJ) | ||
47 | $(AR) $(LIB) $(LIBOBJ) | ||
48 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
49 | @touch lib | ||
50 | |||
51 | # elf | ||
52 | asm/cx86-elf.o: asm/cx86unix.cpp | ||
53 | $(CPP) -DELF asm/cx86unix.cpp | as -o asm/cx86-elf.o | ||
54 | |||
55 | # solaris | ||
56 | asm/cx86-sol.o: asm/cx86unix.cpp | ||
57 | $(CC) -E -DSOL asm/cx86unix.cpp | sed 's/^#.*//' > asm/cx86-sol.s | ||
58 | as -o asm/cx86-sol.o asm/cx86-sol.s | ||
59 | rm -f asm/cx86-sol.s | ||
60 | |||
61 | # a.out | ||
62 | asm/cx86-out.o: asm/cx86unix.cpp | ||
63 | $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o | ||
64 | |||
65 | # bsdi | ||
66 | asm/cx86bsdi.o: asm/cx86unix.cpp | ||
67 | $(CPP) -DBSDI asm/cx86unix.cpp | as -o asm/cx86bsdi.o | ||
68 | |||
69 | asm/cx86unix.cpp: | ||
70 | (cd asm; perl cast-586.pl cpp >cx86unix.cpp) | ||
71 | |||
72 | files: | ||
73 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
74 | |||
75 | links: | ||
76 | /bin/rm -f Makefile | ||
77 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
78 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
79 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
80 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
81 | |||
82 | install: | ||
83 | @for i in $(EXHEADER) ; \ | ||
84 | do \ | ||
85 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
86 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
87 | done; | ||
88 | |||
89 | tags: | ||
90 | ctags $(SRC) | ||
91 | |||
92 | tests: | ||
93 | |||
94 | lint: | ||
95 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
96 | |||
97 | depend: | ||
98 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
99 | |||
100 | dclean: | ||
101 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
102 | mv -f Makefile.new $(MAKEFILE) | ||
103 | |||
104 | clean: | ||
105 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
106 | |||
107 | errors: | ||
108 | |||
109 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/conf/Makefile.ssl b/src/lib/libcrypto/conf/Makefile.ssl new file mode 100644 index 0000000000..00e917aa44 --- /dev/null +++ b/src/lib/libcrypto/conf/Makefile.ssl | |||
@@ -0,0 +1,85 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/conf/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= conf | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=conf | ||
19 | ERRC=conf_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= conf.c $(ERRC).c | ||
26 | |||
27 | LIBOBJ= conf.o $(ERRC).o | ||
28 | |||
29 | SRC= $(LIBSRC) | ||
30 | |||
31 | EXHEADER= conf.h | ||
32 | HEADER= conf_lcl.h $(EXHEADER) | ||
33 | |||
34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
35 | |||
36 | top: | ||
37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
38 | |||
39 | all: lib | ||
40 | |||
41 | lib: $(LIBOBJ) | ||
42 | $(AR) $(LIB) $(LIBOBJ) | ||
43 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
44 | @touch lib | ||
45 | |||
46 | files: | ||
47 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
48 | |||
49 | links: | ||
50 | /bin/rm -f Makefile | ||
51 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
52 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
53 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
54 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
55 | |||
56 | install: | ||
57 | @for i in $(EXHEADER) ; \ | ||
58 | do \ | ||
59 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
60 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
61 | done; | ||
62 | |||
63 | tags: | ||
64 | ctags $(SRC) | ||
65 | |||
66 | tests: | ||
67 | |||
68 | lint: | ||
69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
70 | |||
71 | depend: | ||
72 | $(MAKEDEPEND) $(INCLUDES) $(LIBSRC) | ||
73 | |||
74 | dclean: | ||
75 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
76 | mv -f Makefile.new $(MAKEFILE) | ||
77 | |||
78 | clean: | ||
79 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
80 | |||
81 | errors: | ||
82 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
83 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
84 | |||
85 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/des/FILES b/src/lib/libcrypto/des/FILES new file mode 100644 index 0000000000..4c7ea2de7a --- /dev/null +++ b/src/lib/libcrypto/des/FILES | |||
@@ -0,0 +1,96 @@ | |||
1 | /* General stuff */ | ||
2 | COPYRIGHT - Copyright info. | ||
3 | MODES.DES - A description of the features of the different modes of DES. | ||
4 | FILES - This file. | ||
5 | INSTALL - How to make things compile. | ||
6 | Imakefile - For use with kerberos. | ||
7 | README - What this package is. | ||
8 | VERSION - Which version this is and what was changed. | ||
9 | KERBEROS - Kerberos version 4 notes. | ||
10 | Makefile.PL - An old makefile to build with perl5, not current. | ||
11 | Makefile.ssl - The SSLeay makefile | ||
12 | Makefile.uni - The normal unix makefile. | ||
13 | GNUmakefile - The makefile for use with glibc. | ||
14 | makefile.bc - A Borland C makefile | ||
15 | times - Some outputs from 'speed' on some machines. | ||
16 | vms.com - For use when compiling under VMS | ||
17 | |||
18 | /* My SunOS des(1) replacement */ | ||
19 | des.c - des(1) source code. | ||
20 | des.man - des(1) manual. | ||
21 | |||
22 | /* Testing and timing programs. */ | ||
23 | destest.c - Source for libdes.a test program. | ||
24 | speed.c - Source for libdes.a timing program. | ||
25 | rpw.c - Source for libdes.a testing password reading routines. | ||
26 | |||
27 | /* libdes.a source code */ | ||
28 | des_crypt.man - libdes.a manual page. | ||
29 | des.h - Public libdes.a header file. | ||
30 | ecb_enc.c - des_ecb_encrypt() source, this contains the basic DES code. | ||
31 | ecb3_enc.c - des_ecb3_encrypt() source. | ||
32 | cbc_ckm.c - des_cbc_cksum() source. | ||
33 | cbc_enc.c - des_cbc_encrypt() source. | ||
34 | ncbc_enc.c - des_cbc_encrypt() that is 'normal' in that it copies | ||
35 | the new iv values back in the passed iv vector. | ||
36 | ede_enc.c - des_ede3_cbc_encrypt() cbc mode des using triple DES. | ||
37 | cbc3_enc.c - des_3cbc_encrypt() source, don't use this function. | ||
38 | cfb_enc.c - des_cfb_encrypt() source. | ||
39 | cfb64enc.c - des_cfb64_encrypt() cfb in 64 bit mode but setup to be | ||
40 | used as a stream cipher. | ||
41 | cfb64ede.c - des_ede3_cfb64_encrypt() cfb in 64 bit mode but setup to be | ||
42 | used as a stream cipher and using triple DES. | ||
43 | ofb_enc.c - des_cfb_encrypt() source. | ||
44 | ofb64_enc.c - des_ofb_encrypt() ofb in 64 bit mode but setup to be | ||
45 | used as a stream cipher. | ||
46 | ofb64ede.c - des_ede3_ofb64_encrypt() ofb in 64 bit mode but setup to be | ||
47 | used as a stream cipher and using triple DES. | ||
48 | enc_read.c - des_enc_read() source. | ||
49 | enc_writ.c - des_enc_write() source. | ||
50 | pcbc_enc.c - des_pcbc_encrypt() source. | ||
51 | qud_cksm.c - quad_cksum() source. | ||
52 | rand_key.c - des_random_key() source. | ||
53 | read_pwd.c - Source for des_read_password() plus related functions. | ||
54 | set_key.c - Source for des_set_key(). | ||
55 | str2key.c - Covert a string of any length into a key. | ||
56 | fcrypt.c - A small, fast version of crypt(3). | ||
57 | des_locl.h - Internal libdes.a header file. | ||
58 | podd.h - Odd parity tables - used in des_set_key(). | ||
59 | sk.h - Lookup tables used in des_set_key(). | ||
60 | spr.h - What is left of the S tables - used in ecb_encrypt(). | ||
61 | des_ver.h - header file for the external definition of the | ||
62 | version string. | ||
63 | des.doc - SSLeay documentation for the library. | ||
64 | |||
65 | /* The perl scripts - you can ignore these files they are only | ||
66 | * included for the curious */ | ||
67 | des.pl - des in perl anyone? des_set_key and des_ecb_encrypt | ||
68 | both done in a perl library. | ||
69 | testdes.pl - Testing program for des.pl | ||
70 | doIP - Perl script used to develop IP xor/shift code. | ||
71 | doPC1 - Perl script used to develop PC1 xor/shift code. | ||
72 | doPC2 - Generates sk.h. | ||
73 | PC1 - Output of doPC1 should be the same as output from PC1. | ||
74 | PC2 - used in development of doPC2. | ||
75 | shifts.pl - Perl library used by my perl scripts. | ||
76 | |||
77 | /* I started making a perl5 dynamic library for libdes | ||
78 | * but did not fully finish, these files are part of that effort. */ | ||
79 | DES.pm | ||
80 | DES.pod | ||
81 | DES.xs | ||
82 | t | ||
83 | typemap | ||
84 | |||
85 | /* The following are for use with sun RPC implementaions. */ | ||
86 | rpc_des.h | ||
87 | rpc_enc.c | ||
88 | |||
89 | /* The following are contibuted by Mark Murray <mark@grondar.za>. They | ||
90 | * are not normally built into libdes due to machine specific routines | ||
91 | * contained in them. They are for use in the most recent incarnation of | ||
92 | * export kerberos v 4 (eBones). */ | ||
93 | supp.c | ||
94 | new_rkey.c | ||
95 | |||
96 | |||
diff --git a/src/lib/libcrypto/des/Makefile.ssl b/src/lib/libcrypto/des/Makefile.ssl new file mode 100644 index 0000000000..78b5189ee3 --- /dev/null +++ b/src/lib/libcrypto/des/Makefile.ssl | |||
@@ -0,0 +1,140 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/des/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= des | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | DES_ENC= des_enc.o fcrypt_b.o | ||
17 | # or use | ||
18 | #DES_ENC= dx86-elf.o yx86-elf.o | ||
19 | |||
20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
21 | |||
22 | GENERAL=Makefile des.org des_locl.org | ||
23 | TEST=destest.c | ||
24 | APPS= | ||
25 | |||
26 | LIB=$(TOP)/libcrypto.a | ||
27 | LIBSRC= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \ | ||
28 | ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \ | ||
29 | fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \ | ||
30 | qud_cksm.c rand_key.c read_pwd.c rpc_enc.c set_key.c \ | ||
31 | des_enc.c fcrypt_b.c read2pwd.c \ | ||
32 | fcrypt.c xcbc_enc.c \ | ||
33 | str2key.c cfb64ede.c ofb64ede.c supp.c | ||
34 | |||
35 | LIBOBJ= set_key.o ecb_enc.o cbc_enc.o \ | ||
36 | ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \ | ||
37 | enc_read.o enc_writ.o ofb64enc.o \ | ||
38 | ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \ | ||
39 | ${DES_ENC} read2pwd.o \ | ||
40 | fcrypt.o xcbc_enc.o read_pwd.o rpc_enc.o cbc_cksm.o supp.o | ||
41 | |||
42 | SRC= $(LIBSRC) | ||
43 | |||
44 | EXHEADER= des.h | ||
45 | HEADER= des_locl.h rpc_des.h podd.h sk.h spr.h des_ver.h $(EXHEADER) | ||
46 | |||
47 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
48 | |||
49 | top: | ||
50 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
51 | |||
52 | all: lib | ||
53 | |||
54 | lib: $(LIBOBJ) | ||
55 | $(AR) $(LIB) $(LIBOBJ) | ||
56 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
57 | @touch lib | ||
58 | |||
59 | # elf | ||
60 | asm/dx86-elf.o: asm/dx86unix.cpp | ||
61 | $(CPP) -DELF asm/dx86unix.cpp | as -o asm/dx86-elf.o | ||
62 | |||
63 | asm/yx86-elf.o: asm/yx86unix.cpp | ||
64 | $(CPP) -DELF asm/yx86unix.cpp | as -o asm/yx86-elf.o | ||
65 | |||
66 | # solaris | ||
67 | asm/dx86-sol.o: asm/dx86unix.cpp | ||
68 | $(CC) -E -DSOL asm/dx86unix.cpp | sed 's/^#.*//' > asm/dx86-sol.s | ||
69 | as -o asm/dx86-sol.o asm/dx86-sol.s | ||
70 | rm -f asm/dx86-sol.s | ||
71 | |||
72 | asm/yx86-sol.o: asm/yx86unix.cpp | ||
73 | $(CC) -E -DSOL asm/yx86unix.cpp | sed 's/^#.*//' > asm/yx86-sol.s | ||
74 | as -o asm/yx86-sol.o asm/yx86-sol.s | ||
75 | rm -f asm/yx86-sol.s | ||
76 | |||
77 | # a.out | ||
78 | asm/dx86-out.o: asm/dx86unix.cpp | ||
79 | $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o | ||
80 | |||
81 | asm/yx86-out.o: asm/yx86unix.cpp | ||
82 | $(CPP) -DOUT asm/yx86unix.cpp | as -o asm/yx86-out.o | ||
83 | |||
84 | # bsdi | ||
85 | asm/dx86bsdi.o: asm/dx86unix.cpp | ||
86 | $(CPP) -DBSDI asm/dx86unix.cpp | as -o asm/dx86bsdi.o | ||
87 | |||
88 | asm/yx86bsdi.o: asm/yx86unix.cpp | ||
89 | $(CPP) -DBSDI asm/yx86unix.cpp | as -o asm/yx86bsdi.o | ||
90 | |||
91 | asm/dx86unix.cpp: | ||
92 | (cd asm; perl des-586.pl cpp >dx86unix.cpp) | ||
93 | |||
94 | asm/yx86unix.cpp: | ||
95 | (cd asm; perl crypt586.pl cpp >yx86unix.cpp) | ||
96 | |||
97 | files: | ||
98 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
99 | |||
100 | links: | ||
101 | /bin/rm -f Makefile | ||
102 | $(TOP)/util/point.sh Makefile.ssl Makefile | ||
103 | /bin/rm -f des.doc | ||
104 | /bin/rm -fr asm/perlasm | ||
105 | $(TOP)/util/point.sh ../../perlasm asm/perlasm | ||
106 | $(TOP)/util/point.sh ../../doc/des.doc des.doc | ||
107 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
108 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
109 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
110 | |||
111 | install: installs | ||
112 | |||
113 | installs: | ||
114 | @for i in $(EXHEADER) ; \ | ||
115 | do \ | ||
116 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
117 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
118 | done; | ||
119 | |||
120 | tags: | ||
121 | ctags $(SRC) | ||
122 | |||
123 | tests: | ||
124 | |||
125 | lint: | ||
126 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
127 | |||
128 | depend: | ||
129 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
130 | |||
131 | dclean: | ||
132 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
133 | mv -f Makefile.new $(MAKEFILE) | ||
134 | |||
135 | clean: | ||
136 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
137 | |||
138 | errors: | ||
139 | |||
140 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/dh/Makefile.ssl b/src/lib/libcrypto/dh/Makefile.ssl new file mode 100644 index 0000000000..dfa7e4525d --- /dev/null +++ b/src/lib/libcrypto/dh/Makefile.ssl | |||
@@ -0,0 +1,84 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/dh/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= dh | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=dh | ||
19 | ERRC=dh_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= dhtest.c | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= dh_gen.c dh_key.c dh_lib.c dh_check.c $(ERRC).c | ||
26 | LIBOBJ= dh_gen.o dh_key.o dh_lib.o dh_check.o $(ERRC).o | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= dh.h | ||
31 | HEADER= $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | all: lib | ||
39 | |||
40 | lib: $(LIBOBJ) | ||
41 | $(AR) $(LIB) $(LIBOBJ) | ||
42 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
43 | @touch lib | ||
44 | |||
45 | files: | ||
46 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
47 | |||
48 | links: | ||
49 | /bin/rm -f Makefile | ||
50 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
51 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
52 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
53 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
54 | |||
55 | install: | ||
56 | @for i in $(EXHEADER) ; \ | ||
57 | do \ | ||
58 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
59 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
60 | done; | ||
61 | |||
62 | tags: | ||
63 | ctags $(SRC) | ||
64 | |||
65 | tests: | ||
66 | |||
67 | lint: | ||
68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
69 | |||
70 | depend: | ||
71 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
72 | |||
73 | dclean: | ||
74 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
75 | mv -f Makefile.new $(MAKEFILE) | ||
76 | |||
77 | clean: | ||
78 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
79 | |||
80 | errors: | ||
81 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
82 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
83 | |||
84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/dsa/Makefile.ssl b/src/lib/libcrypto/dsa/Makefile.ssl new file mode 100644 index 0000000000..2cc4ddb39e --- /dev/null +++ b/src/lib/libcrypto/dsa/Makefile.ssl | |||
@@ -0,0 +1,84 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/dsa/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= dsa | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=dsa | ||
19 | ERRC=dsa_err | ||
20 | GENERAL=Makefile | ||
21 | TEST=dsatest.c | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= dsa_gen.c dsa_key.c dsa_lib.c dsa_vrf.c dsa_sign.c $(ERRC).c | ||
26 | LIBOBJ= dsa_gen.o dsa_key.o dsa_lib.o dsa_vrf.o dsa_sign.o $(ERRC).o | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= dsa.h | ||
31 | HEADER= $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | all: lib | ||
39 | |||
40 | lib: $(LIBOBJ) | ||
41 | $(AR) $(LIB) $(LIBOBJ) | ||
42 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
43 | @touch lib | ||
44 | |||
45 | files: | ||
46 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
47 | |||
48 | links: | ||
49 | /bin/rm -f Makefile | ||
50 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
51 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
52 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
53 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
54 | |||
55 | install: | ||
56 | @for i in $(EXHEADER) ; \ | ||
57 | do \ | ||
58 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
59 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
60 | done; | ||
61 | |||
62 | tags: | ||
63 | ctags $(SRC) | ||
64 | |||
65 | tests: | ||
66 | |||
67 | lint: | ||
68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
69 | |||
70 | depend: | ||
71 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
72 | |||
73 | dclean: | ||
74 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
75 | mv -f Makefile.new $(MAKEFILE) | ||
76 | |||
77 | clean: | ||
78 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
79 | |||
80 | errors: | ||
81 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
82 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
83 | |||
84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/err/Makefile.ssl b/src/lib/libcrypto/err/Makefile.ssl new file mode 100644 index 0000000000..57c87eb041 --- /dev/null +++ b/src/lib/libcrypto/err/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/err/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= err | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=err.c err_all.c err_prn.c | ||
24 | LIBOBJ=err.o err_all.o err_prn.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= err.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/evp/Makefile.ssl b/src/lib/libcrypto/evp/Makefile.ssl new file mode 100644 index 0000000000..8bf2516458 --- /dev/null +++ b/src/lib/libcrypto/evp/Makefile.ssl | |||
@@ -0,0 +1,111 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/evp/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= evp | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=evp | ||
19 | ERRC=evp_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= encode.c digest.c evp_enc.c evp_key.c \ | ||
26 | e_ecb_d.c e_cbc_d.c e_cfb_d.c e_ofb_d.c \ | ||
27 | e_ecb_i.c e_cbc_i.c e_cfb_i.c e_ofb_i.c \ | ||
28 | e_ecb_3d.c e_cbc_3d.c e_rc4.c names.c \ | ||
29 | e_cfb_3d.c e_ofb_3d.c e_xcbc_d.c \ | ||
30 | e_ecb_r2.c e_cbc_r2.c e_cfb_r2.c e_ofb_r2.c \ | ||
31 | e_ecb_bf.c e_cbc_bf.c e_cfb_bf.c e_ofb_bf.c \ | ||
32 | e_ecb_c.c e_cbc_c.c e_cfb_c.c e_ofb_c.c \ | ||
33 | e_ecb_r5.c e_cbc_r5.c e_cfb_r5.c e_ofb_r5.c \ | ||
34 | m_null.c m_md2.c m_md5.c m_sha.c m_sha1.c m_dss.c m_dss1.c m_mdc2.c \ | ||
35 | m_ripemd.c \ | ||
36 | p_open.c p_seal.c p_sign.c p_verify.c p_lib.c p_enc.c p_dec.c \ | ||
37 | bio_md.c bio_b64.c bio_enc.c $(ERRC).c e_null.c \ | ||
38 | c_all.c evp_lib.c | ||
39 | |||
40 | LIBOBJ= encode.o digest.o evp_enc.o evp_key.o \ | ||
41 | e_ecb_d.o e_cbc_d.o e_cfb_d.o e_ofb_d.o \ | ||
42 | e_ecb_i.o e_cbc_i.o e_cfb_i.o e_ofb_i.o \ | ||
43 | e_ecb_3d.o e_cbc_3d.o e_rc4.o names.o \ | ||
44 | e_cfb_3d.o e_ofb_3d.o e_xcbc_d.o \ | ||
45 | e_ecb_r2.o e_cbc_r2.o e_cfb_r2.o e_ofb_r2.o \ | ||
46 | e_ecb_bf.o e_cbc_bf.o e_cfb_bf.o e_ofb_bf.o \ | ||
47 | e_ecb_c.o e_cbc_c.o e_cfb_c.o e_ofb_c.o \ | ||
48 | e_ecb_r5.o e_cbc_r5.o e_cfb_r5.o e_ofb_r5.o \ | ||
49 | m_null.o m_md2.o m_md5.o m_sha.o m_sha1.o m_dss.o m_dss1.o m_mdc2.o \ | ||
50 | m_ripemd.o \ | ||
51 | p_open.o p_seal.o p_sign.o p_verify.o p_lib.o p_enc.o p_dec.o \ | ||
52 | bio_md.o bio_b64.o bio_enc.o $(ERRC).o e_null.o \ | ||
53 | c_all.o evp_lib.o | ||
54 | |||
55 | SRC= $(LIBSRC) | ||
56 | |||
57 | EXHEADER= evp.h | ||
58 | HEADER= $(EXHEADER) | ||
59 | |||
60 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
61 | |||
62 | top: | ||
63 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
64 | |||
65 | all: lib | ||
66 | |||
67 | lib: $(LIBOBJ) | ||
68 | $(AR) $(LIB) $(LIBOBJ) | ||
69 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
70 | @touch lib | ||
71 | |||
72 | files: | ||
73 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
74 | |||
75 | links: | ||
76 | /bin/rm -f Makefile | ||
77 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
78 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
79 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
80 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
81 | |||
82 | install: | ||
83 | @for i in $(EXHEADER) ; \ | ||
84 | do \ | ||
85 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
86 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
87 | done; | ||
88 | |||
89 | tags: | ||
90 | ctags $(SRC) | ||
91 | |||
92 | tests: | ||
93 | |||
94 | lint: | ||
95 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
96 | |||
97 | depend: | ||
98 | $(MAKEDEPEND) $(INCLUDES) $(LIBSRC) | ||
99 | |||
100 | dclean: | ||
101 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
102 | mv -f Makefile.new $(MAKEFILE) | ||
103 | |||
104 | clean: | ||
105 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
106 | |||
107 | errors: | ||
108 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
109 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
110 | |||
111 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/hmac/Makefile.ssl b/src/lib/libcrypto/hmac/Makefile.ssl new file mode 100644 index 0000000000..7a042b7261 --- /dev/null +++ b/src/lib/libcrypto/hmac/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/md/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= hmac | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST=hmactest.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=hmac.c | ||
24 | LIBOBJ=hmac.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= hmac.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/idea/Makefile.ssl b/src/lib/libcrypto/idea/Makefile.ssl new file mode 100644 index 0000000000..41b42ce03b --- /dev/null +++ b/src/lib/libcrypto/idea/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/idea/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= idea | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST=ideatest.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c | ||
24 | LIBOBJ=i_cbc.o i_cfb64.o i_ofb64.o i_ecb.o i_skey.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= idea.h | ||
29 | HEADER= idea_lcl.h $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/lhash/Makefile.ssl b/src/lib/libcrypto/lhash/Makefile.ssl new file mode 100644 index 0000000000..cb08547b4f --- /dev/null +++ b/src/lib/libcrypto/lhash/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/lhash/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= lhash | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=lhash.c lh_stats.c | ||
24 | LIBOBJ=lhash.o lh_stats.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= lhash.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/md2/Makefile.ssl b/src/lib/libcrypto/md2/Makefile.ssl new file mode 100644 index 0000000000..d8e7200c83 --- /dev/null +++ b/src/lib/libcrypto/md2/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/md/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= md | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST=md2test.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=md2_dgst.c md5_one.c | ||
24 | LIBOBJ=md2_dgst.o md2_one.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= md2.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/md5/Makefile.ssl b/src/lib/libcrypto/md5/Makefile.ssl new file mode 100644 index 0000000000..47e1ce05ca --- /dev/null +++ b/src/lib/libcrypto/md5/Makefile.ssl | |||
@@ -0,0 +1,104 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/md5/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= md5 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | |||
17 | MD5_ASM_OBJ= | ||
18 | |||
19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
20 | |||
21 | GENERAL=Makefile | ||
22 | TEST=md5test.c | ||
23 | APPS=md5.c | ||
24 | |||
25 | LIB=$(TOP)/libcrypto.a | ||
26 | LIBSRC=md5_dgst.c md5_one.c | ||
27 | LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ) | ||
28 | |||
29 | SRC= $(LIBSRC) | ||
30 | |||
31 | EXHEADER= md5.h | ||
32 | HEADER= md5_locl.h $(EXHEADER) | ||
33 | |||
34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
35 | |||
36 | top: | ||
37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
38 | |||
39 | all: lib | ||
40 | |||
41 | lib: $(LIBOBJ) | ||
42 | $(AR) $(LIB) $(LIBOBJ) | ||
43 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
44 | @touch lib | ||
45 | |||
46 | # elf | ||
47 | asm/mx86-elf.o: asm/mx86unix.cpp | ||
48 | $(CPP) -DELF asm/mx86unix.cpp | as -o asm/mx86-elf.o | ||
49 | |||
50 | # solaris | ||
51 | asm/mx86-sol.o: asm/mx86unix.cpp | ||
52 | $(CC) -E -DSOL asm/mx86unix.cpp | sed 's/^#.*//' > asm/mx86-sol.s | ||
53 | as -o asm/mx86-sol.o asm/mx86-sol.s | ||
54 | rm -f asm/mx86-sol.s | ||
55 | |||
56 | # a.out | ||
57 | asm/mx86-out.o: asm/mx86unix.cpp | ||
58 | $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o | ||
59 | |||
60 | # bsdi | ||
61 | asm/mx86bsdi.o: asm/mx86unix.cpp | ||
62 | $(CPP) -DBSDI asm/mx86unix.cpp | as -o asm/mx86bsdi.o | ||
63 | |||
64 | asm/mx86unix.cpp: | ||
65 | (cd asm; perl md5-586.pl cpp >mx86unix.cpp) | ||
66 | |||
67 | files: | ||
68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
69 | |||
70 | links: | ||
71 | /bin/rm -f Makefile | ||
72 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
73 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
74 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
75 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
76 | |||
77 | install: | ||
78 | @for i in $(EXHEADER) ; \ | ||
79 | do \ | ||
80 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
81 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
82 | done; | ||
83 | |||
84 | tags: | ||
85 | ctags $(SRC) | ||
86 | |||
87 | tests: | ||
88 | |||
89 | lint: | ||
90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
91 | |||
92 | depend: | ||
93 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
94 | |||
95 | dclean: | ||
96 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
97 | mv -f Makefile.new $(MAKEFILE) | ||
98 | |||
99 | clean: | ||
100 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
101 | |||
102 | errors: | ||
103 | |||
104 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/mdc2/Makefile.ssl b/src/lib/libcrypto/mdc2/Makefile.ssl new file mode 100644 index 0000000000..495a2789a0 --- /dev/null +++ b/src/lib/libcrypto/mdc2/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/mdc2/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= mdc2 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= mdc2test.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=mdc2dgst.c mdc2_one.c | ||
24 | LIBOBJ=mdc2dgst.o mdc2_one.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= mdc2.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/objects/Makefile.ssl b/src/lib/libcrypto/objects/Makefile.ssl new file mode 100644 index 0000000000..320523cea1 --- /dev/null +++ b/src/lib/libcrypto/objects/Makefile.ssl | |||
@@ -0,0 +1,87 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/objects/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= objects | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=objects | ||
19 | ERRC=obj_err | ||
20 | GENERAL=Makefile README | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= obj_dat.c obj_lib.c $(ERRC).c | ||
26 | LIBOBJ= obj_dat.o obj_lib.o $(ERRC).o | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= objects.h | ||
31 | HEADER= $(EXHEADER) obj_dat.h | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | all: obj_dat.h lib | ||
39 | |||
40 | obj_dat.h: objects.h obj_dat.pl | ||
41 | perl ./obj_dat.pl < objects.h > obj_dat.h | ||
42 | |||
43 | lib: $(LIBOBJ) | ||
44 | $(AR) $(LIB) $(LIBOBJ) | ||
45 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
46 | @touch lib | ||
47 | |||
48 | files: | ||
49 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
50 | |||
51 | links: | ||
52 | /bin/rm -f Makefile | ||
53 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
54 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
55 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
56 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
57 | |||
58 | install: | ||
59 | @for i in $(EXHEADER) ; \ | ||
60 | do \ | ||
61 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
62 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
63 | done; | ||
64 | |||
65 | tags: | ||
66 | ctags $(SRC) | ||
67 | |||
68 | tests: | ||
69 | |||
70 | lint: | ||
71 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
72 | |||
73 | depend: | ||
74 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
75 | |||
76 | dclean: | ||
77 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
78 | mv -f Makefile.new $(MAKEFILE) | ||
79 | |||
80 | clean: | ||
81 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
82 | |||
83 | errors: | ||
84 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
85 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
86 | |||
87 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/pem/Makefile.ssl b/src/lib/libcrypto/pem/Makefile.ssl new file mode 100644 index 0000000000..fc04a88fd9 --- /dev/null +++ b/src/lib/libcrypto/pem/Makefile.ssl | |||
@@ -0,0 +1,96 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/pem/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= pem | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=pem | ||
19 | ERRC=pem_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | CTX_SIZE= ctx_size | ||
25 | |||
26 | LIB=$(TOP)/libcrypto.a | ||
27 | LIBSRC= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c $(ERRC).c | ||
28 | |||
29 | LIBOBJ= pem_sign.o pem_seal.o pem_info.o pem_lib.o pem_all.o $(ERRC).o | ||
30 | |||
31 | SRC= $(LIBSRC) | ||
32 | |||
33 | EXHEADER= pem.h | ||
34 | HEADER= $(EXHEADER) | ||
35 | |||
36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
37 | |||
38 | top: | ||
39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
40 | |||
41 | all: pem.h lib | ||
42 | |||
43 | pem.h: $(CTX_SIZE) | ||
44 | ./$(CTX_SIZE) <pem.org >pem.new | ||
45 | if [ -f pem.h ]; then mv -f pem.h pem.old; fi | ||
46 | mv -f pem.new pem.h | ||
47 | |||
48 | $(CTX_SIZE): $(CTX_SIZE).o | ||
49 | $(CC) $(CFLAGS) -o $(CTX_SIZE) $(CTX_SIZE).o | ||
50 | |||
51 | lib: $(LIBOBJ) | ||
52 | $(AR) $(LIB) $(LIBOBJ) | ||
53 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
54 | @touch lib | ||
55 | |||
56 | files: | ||
57 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
58 | |||
59 | links: | ||
60 | /bin/rm -f Makefile | ||
61 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
62 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
63 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
64 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
65 | |||
66 | install: | ||
67 | @for i in $(EXHEADER) ; \ | ||
68 | do \ | ||
69 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
70 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
71 | done; | ||
72 | |||
73 | tags: | ||
74 | ctags $(SRC) | ||
75 | |||
76 | tests: | ||
77 | |||
78 | lint: | ||
79 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
80 | |||
81 | depend: | ||
82 | $(MAKEDEPEND) $(INCLUDES) $(CTX_SIZE).c $(LIBSRC) | ||
83 | |||
84 | dclean: | ||
85 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
86 | mv -f Makefile.new $(MAKEFILE) | ||
87 | |||
88 | clean: | ||
89 | /bin/rm -f $(CTX_SIZE) *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
90 | |||
91 | errors: | ||
92 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # SPECIAL CASE .org | ||
93 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
94 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
95 | |||
96 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/pkcs7/Makefile.ssl b/src/lib/libcrypto/pkcs7/Makefile.ssl new file mode 100644 index 0000000000..a88359b320 --- /dev/null +++ b/src/lib/libcrypto/pkcs7/Makefile.ssl | |||
@@ -0,0 +1,86 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/asn1/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= pkcs7 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=pkcs7 | ||
19 | ERRC=pkcs7err | ||
20 | GENERAL=Makefile README | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= pk7_lib.c pkcs7err.c pk7_doit.c | ||
26 | LIBOBJ= pk7_lib.o pkcs7err.o pk7_doit.o | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= pkcs7.h | ||
31 | HEADER= $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | test: | ||
39 | |||
40 | all: lib | ||
41 | |||
42 | lib: $(LIBOBJ) | ||
43 | $(AR) $(LIB) $(LIBOBJ) | ||
44 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
45 | @touch lib | ||
46 | |||
47 | files: | ||
48 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
49 | |||
50 | links: | ||
51 | /bin/rm -f Makefile | ||
52 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
53 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
54 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
55 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
56 | |||
57 | install: | ||
58 | @for i in $(EXHEADER) ; \ | ||
59 | do \ | ||
60 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
61 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
62 | done; | ||
63 | |||
64 | tags: | ||
65 | ctags $(SRC) | ||
66 | |||
67 | tests: | ||
68 | |||
69 | lint: | ||
70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
71 | |||
72 | depend: | ||
73 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
74 | |||
75 | dclean: | ||
76 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
77 | mv -f Makefile.new $(MAKEFILE) | ||
78 | |||
79 | clean: | ||
80 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
81 | |||
82 | errors: | ||
83 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
84 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
85 | |||
86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/rand/Makefile.ssl b/src/lib/libcrypto/rand/Makefile.ssl new file mode 100644 index 0000000000..d04f0a9b43 --- /dev/null +++ b/src/lib/libcrypto/rand/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rand/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rand | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= randtest.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=md_rand.c randfile.c | ||
24 | LIBOBJ=md_rand.o randfile.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= rand.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/rc2/Makefile.ssl b/src/lib/libcrypto/rc2/Makefile.ssl new file mode 100644 index 0000000000..c5138f13e2 --- /dev/null +++ b/src/lib/libcrypto/rc2/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rc2/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rc2 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST=rc2test.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c | ||
24 | LIBOBJ=rc2_ecb.o rc2_skey.o rc2_cbc.o rc2cfb64.o rc2ofb64.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= rc2.h | ||
29 | HEADER= rc2_locl.h $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/rc4/Makefile.ssl b/src/lib/libcrypto/rc4/Makefile.ssl new file mode 100644 index 0000000000..19c1e980f3 --- /dev/null +++ b/src/lib/libcrypto/rc4/Makefile.ssl | |||
@@ -0,0 +1,108 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rc4/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rc4 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | RC4_ENC=rc4_enc.o | ||
17 | # or use | ||
18 | #RC4_ENC=asm/rx86-elf.o | ||
19 | #RC4_ENC=asm/rx86-out.o | ||
20 | #RC4_ENC=asm/rx86-sol.o | ||
21 | #RC4_ENC=asm/rx86bdsi.o | ||
22 | |||
23 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
24 | |||
25 | GENERAL=Makefile | ||
26 | TEST=rc4test.c | ||
27 | APPS= | ||
28 | |||
29 | LIB=$(TOP)/libcrypto.a | ||
30 | LIBSRC=rc4_skey.c rc4_enc.c | ||
31 | LIBOBJ=rc4_skey.o $(RC4_ENC) | ||
32 | |||
33 | SRC= $(LIBSRC) | ||
34 | |||
35 | EXHEADER= rc4.h | ||
36 | HEADER= $(EXHEADER) rc4_locl.h | ||
37 | |||
38 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
39 | |||
40 | top: | ||
41 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
42 | |||
43 | all: lib | ||
44 | |||
45 | lib: $(LIBOBJ) | ||
46 | $(AR) $(LIB) $(LIBOBJ) | ||
47 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
48 | @touch lib | ||
49 | |||
50 | # elf | ||
51 | asm/rx86-elf.o: asm/rx86unix.cpp | ||
52 | $(CPP) -DELF asm/rx86unix.cpp | as -o asm/rx86-elf.o | ||
53 | |||
54 | # solaris | ||
55 | asm/rx86-sol.o: asm/rx86unix.cpp | ||
56 | $(CC) -E -DSOL asm/rx86unix.cpp | sed 's/^#.*//' > asm/rx86-sol.s | ||
57 | as -o asm/rx86-sol.o asm/rx86-sol.s | ||
58 | rm -f asm/rx86-sol.s | ||
59 | |||
60 | # a.out | ||
61 | asm/rx86-out.o: asm/rx86unix.cpp | ||
62 | $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o | ||
63 | |||
64 | # bsdi | ||
65 | asm/rx86bsdi.o: asm/rx86unix.cpp | ||
66 | $(CPP) -DBSDI asm/rx86unix.cpp | as -o asm/rx86bsdi.o | ||
67 | |||
68 | asm/rx86unix.cpp: | ||
69 | (cd asm; perl rc4-586.pl cpp >rx86unix.cpp) | ||
70 | |||
71 | files: | ||
72 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
73 | |||
74 | links: | ||
75 | /bin/rm -f Makefile | ||
76 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
77 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
78 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
79 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
80 | |||
81 | install: | ||
82 | @for i in $(EXHEADER) ; \ | ||
83 | do \ | ||
84 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
85 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
86 | done; | ||
87 | |||
88 | tags: | ||
89 | ctags $(SRC) | ||
90 | |||
91 | tests: | ||
92 | |||
93 | lint: | ||
94 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
95 | |||
96 | depend: | ||
97 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
98 | |||
99 | dclean: | ||
100 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
101 | mv -f Makefile.new $(MAKEFILE) | ||
102 | |||
103 | clean: | ||
104 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
105 | |||
106 | errors: | ||
107 | |||
108 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/rc5/Makefile.ssl b/src/lib/libcrypto/rc5/Makefile.ssl new file mode 100644 index 0000000000..5e98ee2348 --- /dev/null +++ b/src/lib/libcrypto/rc5/Makefile.ssl | |||
@@ -0,0 +1,107 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rc5/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rc5 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | |||
17 | RC5_ENC= rc5_enc.o | ||
18 | # or use | ||
19 | #DES_ENC= r586-elf.o | ||
20 | |||
21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
22 | |||
23 | GENERAL=Makefile | ||
24 | TEST=rc5test.c | ||
25 | APPS= | ||
26 | |||
27 | LIB=$(TOP)/libcrypto.a | ||
28 | LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c | ||
29 | LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o | ||
30 | |||
31 | SRC= $(LIBSRC) | ||
32 | |||
33 | EXHEADER= rc5.h | ||
34 | HEADER= rc5_locl.h $(EXHEADER) | ||
35 | |||
36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
37 | |||
38 | top: | ||
39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
40 | |||
41 | all: lib | ||
42 | |||
43 | lib: $(LIBOBJ) | ||
44 | $(AR) $(LIB) $(LIBOBJ) | ||
45 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
46 | @touch lib | ||
47 | |||
48 | # elf | ||
49 | asm/r586-elf.o: asm/r586unix.cpp | ||
50 | $(CPP) -DELF asm/r586unix.cpp | as -o asm/r586-elf.o | ||
51 | |||
52 | # solaris | ||
53 | asm/r586-sol.o: asm/r586unix.cpp | ||
54 | $(CC) -E -DSOL asm/r586unix.cpp | sed 's/^#.*//' > asm/r586-sol.s | ||
55 | as -o asm/r586-sol.o asm/r586-sol.s | ||
56 | rm -f asm/r586-sol.s | ||
57 | |||
58 | # a.out | ||
59 | asm/r586-out.o: asm/r586unix.cpp | ||
60 | $(CPP) -DOUT asm/r586unix.cpp | as -o asm/r586-out.o | ||
61 | |||
62 | # bsdi | ||
63 | asm/r586bsdi.o: asm/r586unix.cpp | ||
64 | $(CPP) -DBSDI asm/r586unix.cpp | as -o asm/r586bsdi.o | ||
65 | |||
66 | asm/r586unix.cpp: | ||
67 | (cd asm; perl rc5-586.pl cpp >r586unix.cpp) | ||
68 | |||
69 | files: | ||
70 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
71 | |||
72 | links: | ||
73 | /bin/rm -f Makefile | ||
74 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
75 | $(TOP)/util/point.sh ../../doc/rc5.doc rc5.doc ; | ||
76 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
77 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
78 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
79 | |||
80 | install: | ||
81 | @for i in $(EXHEADER) ; \ | ||
82 | do \ | ||
83 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
84 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
85 | done; | ||
86 | |||
87 | tags: | ||
88 | ctags $(SRC) | ||
89 | |||
90 | tests: | ||
91 | |||
92 | lint: | ||
93 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
94 | |||
95 | depend: | ||
96 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
97 | |||
98 | dclean: | ||
99 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
100 | mv -f Makefile.new $(MAKEFILE) | ||
101 | |||
102 | clean: | ||
103 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
104 | |||
105 | errors: | ||
106 | |||
107 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/rc5/asm/rc5-586.pl b/src/lib/libcrypto/rc5/asm/rc5-586.pl new file mode 100644 index 0000000000..172bd9ee1b --- /dev/null +++ b/src/lib/libcrypto/rc5/asm/rc5-586.pl | |||
@@ -0,0 +1,109 @@ | |||
1 | #!/usr/bin/perl | ||
2 | |||
3 | push(@INC,"perlasm","../../perlasm"); | ||
4 | require "x86asm.pl"; | ||
5 | require "cbc.pl"; | ||
6 | |||
7 | &asm_init($ARGV[0],"rc5-586.pl"); | ||
8 | |||
9 | $RC5_MAX_ROUNDS=16; | ||
10 | $RC5_32_OFF=($RC5_MAX_ROUNDS+2)*4; | ||
11 | $A="edi"; | ||
12 | $B="esi"; | ||
13 | $S="ebp"; | ||
14 | $tmp1="eax"; | ||
15 | $r="ebx"; | ||
16 | $tmpc="ecx"; | ||
17 | $tmp4="edx"; | ||
18 | |||
19 | &RC5_32_encrypt("RC5_32_encrypt",1); | ||
20 | &RC5_32_encrypt("RC5_32_decrypt",0); | ||
21 | &cbc("RC5_32_cbc_encrypt","RC5_32_encrypt","RC5_32_decrypt",0,4,5,3,-1,-1); | ||
22 | &asm_finish(); | ||
23 | |||
24 | sub RC5_32_encrypt | ||
25 | { | ||
26 | local($name,$enc)=@_; | ||
27 | |||
28 | &function_begin_B($name,""); | ||
29 | |||
30 | &comment(""); | ||
31 | |||
32 | &push("ebp"); | ||
33 | &push("esi"); | ||
34 | &push("edi"); | ||
35 | &mov($tmp4,&wparam(0)); | ||
36 | &mov($S,&wparam(1)); | ||
37 | |||
38 | &comment("Load the 2 words"); | ||
39 | &mov($A,&DWP(0,$tmp4,"",0)); | ||
40 | &mov($B,&DWP(4,$tmp4,"",0)); | ||
41 | |||
42 | &push($r); | ||
43 | &mov($r, &DWP(0,$S,"",0)); | ||
44 | |||
45 | # encrypting part | ||
46 | |||
47 | if ($enc) | ||
48 | { | ||
49 | &add($A, &DWP(4+0,$S,"",0)); | ||
50 | &add($B, &DWP(4+4,$S,"",0)); | ||
51 | |||
52 | for ($i=0; $i<$RC5_MAX_ROUNDS; $i++) | ||
53 | { | ||
54 | &xor($A, $B); | ||
55 | &mov($tmp1, &DWP(12+$i*8,$S,"",0)); | ||
56 | &mov($tmpc, $B); | ||
57 | &rotl($A, &LB("ecx")); | ||
58 | &add($A, $tmp1); | ||
59 | |||
60 | &xor($B, $A); | ||
61 | &mov($tmp1, &DWP(16+$i*8,$S,"",0)); | ||
62 | &mov($tmpc, $A); | ||
63 | &rotl($B, &LB("ecx")); | ||
64 | &add($B, $tmp1); | ||
65 | if (($i == 7) || ($i == 11)) | ||
66 | { | ||
67 | &cmp($r, $i+1); | ||
68 | &je(&label("rc5_exit")); | ||
69 | } | ||
70 | } | ||
71 | } | ||
72 | else | ||
73 | { | ||
74 | &cmp($r, 12); | ||
75 | &je(&label("rc5_dec_12")); | ||
76 | &cmp($r, 8); | ||
77 | &je(&label("rc5_dec_8")); | ||
78 | for ($i=$RC5_MAX_ROUNDS; $i > 0; $i--) | ||
79 | { | ||
80 | &set_label("rc5_dec_$i") if ($i == 12) || ($i == 8); | ||
81 | &mov($tmp1, &DWP($i*8+8,$S,"",0)); | ||
82 | &sub($B, $tmp1); | ||
83 | &mov($tmpc, $A); | ||
84 | &rotr($B, &LB("ecx")); | ||
85 | &xor($B, $A); | ||
86 | |||
87 | &mov($tmp1, &DWP($i*8+4,$S,"",0)); | ||
88 | &sub($A, $tmp1); | ||
89 | &mov($tmpc, $B); | ||
90 | &rotr($A, &LB("ecx")); | ||
91 | &xor($A, $B); | ||
92 | } | ||
93 | &sub($B, &DWP(4+4,$S,"",0)); | ||
94 | &sub($A, &DWP(4+0,$S,"",0)); | ||
95 | } | ||
96 | |||
97 | &set_label("rc5_exit"); | ||
98 | &mov(&DWP(0,$tmp4,"",0),$A); | ||
99 | &mov(&DWP(4,$tmp4,"",0),$B); | ||
100 | |||
101 | &pop("ebx"); | ||
102 | &pop("edi"); | ||
103 | &pop("esi"); | ||
104 | &pop("ebp"); | ||
105 | &ret(); | ||
106 | &function_end_B($name); | ||
107 | } | ||
108 | |||
109 | |||
diff --git a/src/lib/libcrypto/ripemd/Makefile.ssl b/src/lib/libcrypto/ripemd/Makefile.ssl new file mode 100644 index 0000000000..67d47ceb2c --- /dev/null +++ b/src/lib/libcrypto/ripemd/Makefile.ssl | |||
@@ -0,0 +1,104 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/ripemd/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= ripemd | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | |||
17 | RIP_ASM_OBJ= | ||
18 | |||
19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
20 | |||
21 | GENERAL=Makefile | ||
22 | TEST=rmdtest.c | ||
23 | APPS=rmd160.c | ||
24 | |||
25 | LIB=$(TOP)/libcrypto.a | ||
26 | LIBSRC=rmd_dgst.c rmd_one.c | ||
27 | LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ) | ||
28 | |||
29 | SRC= $(LIBSRC) | ||
30 | |||
31 | EXHEADER= ripemd.h | ||
32 | HEADER= rmd_locl.h rmdconst.h $(EXHEADER) | ||
33 | |||
34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
35 | |||
36 | top: | ||
37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
38 | |||
39 | all: lib | ||
40 | |||
41 | lib: $(LIBOBJ) | ||
42 | $(AR) $(LIB) $(LIBOBJ) | ||
43 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
44 | @touch lib | ||
45 | |||
46 | # elf | ||
47 | asm/rm86-elf.o: asm/rm86unix.cpp | ||
48 | $(CPP) -DELF asm/rm86unix.cpp | as -o asm/rm86-elf.o | ||
49 | |||
50 | # solaris | ||
51 | asm/rm86-sol.o: asm/rm86unix.cpp | ||
52 | $(CC) -E -DSOL asm/rm86unix.cpp | sed 's/^#.*//' > asm/rm86-sol.s | ||
53 | as -o asm/rm86-sol.o asm/rm86-sol.s | ||
54 | rm -f asm/rm86-sol.s | ||
55 | |||
56 | # a.out | ||
57 | asm/rm86-out.o: asm/rm86unix.cpp | ||
58 | $(CPP) -DOUT asm/rm86unix.cpp | as -o asm/rm86-out.o | ||
59 | |||
60 | # bsdi | ||
61 | asm/rm86bsdi.o: asm/rm86unix.cpp | ||
62 | $(CPP) -DBSDI asm/rm86unix.cpp | as -o asm/rm86bsdi.o | ||
63 | |||
64 | asm/rm86unix.cpp: | ||
65 | (cd asm; perl rmd-586.pl cpp >rm86unix.cpp) | ||
66 | |||
67 | files: | ||
68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
69 | |||
70 | links: | ||
71 | /bin/rm -f Makefile | ||
72 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
73 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
74 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
75 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
76 | |||
77 | install: | ||
78 | @for i in $(EXHEADER) ; \ | ||
79 | do \ | ||
80 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
81 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
82 | done; | ||
83 | |||
84 | tags: | ||
85 | ctags $(SRC) | ||
86 | |||
87 | tests: | ||
88 | |||
89 | lint: | ||
90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
91 | |||
92 | depend: | ||
93 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
94 | |||
95 | dclean: | ||
96 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
97 | mv -f Makefile.new $(MAKEFILE) | ||
98 | |||
99 | clean: | ||
100 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
101 | |||
102 | errors: | ||
103 | |||
104 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/rsa/Makefile.ssl b/src/lib/libcrypto/rsa/Makefile.ssl new file mode 100644 index 0000000000..d52f2e609e --- /dev/null +++ b/src/lib/libcrypto/rsa/Makefile.ssl | |||
@@ -0,0 +1,86 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rsa/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rsa | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=rsa | ||
19 | ERRC=rsa_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c $(ERRC).c \ | ||
26 | rsa_pk1.c rsa_ssl.c rsa_none.c | ||
27 | LIBOBJ= rsa_eay.o rsa_gen.o rsa_lib.o rsa_sign.o rsa_saos.o $(ERRC).o \ | ||
28 | rsa_pk1.o rsa_ssl.o rsa_none.o | ||
29 | |||
30 | SRC= $(LIBSRC) | ||
31 | |||
32 | EXHEADER= rsa.h | ||
33 | HEADER= $(EXHEADER) | ||
34 | |||
35 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
36 | |||
37 | top: | ||
38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
39 | |||
40 | all: lib | ||
41 | |||
42 | lib: $(LIBOBJ) | ||
43 | $(AR) $(LIB) $(LIBOBJ) | ||
44 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
45 | @touch lib | ||
46 | |||
47 | files: | ||
48 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
49 | |||
50 | links: | ||
51 | /bin/rm -f Makefile | ||
52 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
53 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
54 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
55 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
56 | |||
57 | install: | ||
58 | @for i in $(EXHEADER) ; \ | ||
59 | do \ | ||
60 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
61 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
62 | done; | ||
63 | |||
64 | tags: | ||
65 | ctags $(SRC) | ||
66 | |||
67 | tests: | ||
68 | |||
69 | lint: | ||
70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
71 | |||
72 | depend: | ||
73 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
74 | |||
75 | dclean: | ||
76 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
77 | mv -f Makefile.new $(MAKEFILE) | ||
78 | |||
79 | clean: | ||
80 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
81 | |||
82 | errors: | ||
83 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
84 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
85 | |||
86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/sha/Makefile.ssl b/src/lib/libcrypto/sha/Makefile.ssl new file mode 100644 index 0000000000..eeb545d140 --- /dev/null +++ b/src/lib/libcrypto/sha/Makefile.ssl | |||
@@ -0,0 +1,103 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/sha/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= sha | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | SHA1_ASM_OBJ= | ||
17 | |||
18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
19 | |||
20 | GENERAL=Makefile | ||
21 | TEST=shatest.c sha1test.c | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c | ||
26 | LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ) | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= sha.h | ||
31 | HEADER= sha_locl.h $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | all: lib | ||
39 | |||
40 | lib: $(LIBOBJ) | ||
41 | $(AR) $(LIB) $(LIBOBJ) | ||
42 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
43 | @touch lib | ||
44 | |||
45 | # elf | ||
46 | asm/sx86-elf.o: asm/sx86unix.cpp | ||
47 | $(CPP) -DELF asm/sx86unix.cpp | as -o asm/sx86-elf.o | ||
48 | |||
49 | # solaris | ||
50 | asm/sx86-sol.o: asm/sx86unix.cpp | ||
51 | $(CC) -E -DSOL asm/sx86unix.cpp | sed 's/^#.*//' > asm/sx86-sol.s | ||
52 | as -o asm/sx86-sol.o asm/sx86-sol.s | ||
53 | rm -f asm/sx86-sol.s | ||
54 | |||
55 | # a.out | ||
56 | asm/sx86-out.o: asm/sx86unix.cpp | ||
57 | $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o | ||
58 | |||
59 | # bsdi | ||
60 | asm/sx86bsdi.o: asm/sx86unix.cpp | ||
61 | $(CPP) -DBSDI asm/sx86unix.cpp | as -o asm/sx86bsdi.o | ||
62 | |||
63 | asm/sx86unix.cpp: | ||
64 | (cd asm; perl sha1-586.pl cpp >sx86unix.cpp) | ||
65 | |||
66 | files: | ||
67 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
68 | |||
69 | links: | ||
70 | /bin/rm -f Makefile | ||
71 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
72 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
73 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
74 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
75 | |||
76 | install: | ||
77 | @for i in $(EXHEADER) ; \ | ||
78 | do \ | ||
79 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
80 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
81 | done; | ||
82 | |||
83 | tags: | ||
84 | ctags $(SRC) | ||
85 | |||
86 | tests: | ||
87 | |||
88 | lint: | ||
89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
90 | |||
91 | depend: | ||
92 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
93 | |||
94 | dclean: | ||
95 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
96 | mv -f Makefile.new $(MAKEFILE) | ||
97 | |||
98 | clean: | ||
99 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
100 | |||
101 | errors: | ||
102 | |||
103 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/stack/Makefile.ssl b/src/lib/libcrypto/stack/Makefile.ssl new file mode 100644 index 0000000000..0d232c08cf --- /dev/null +++ b/src/lib/libcrypto/stack/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/stack/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= stack | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=stack.c | ||
24 | LIBOBJ=stack.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= stack.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/txt_db/Makefile.ssl b/src/lib/libcrypto/txt_db/Makefile.ssl new file mode 100644 index 0000000000..76e511534f --- /dev/null +++ b/src/lib/libcrypto/txt_db/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/txt_db/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= txt_db | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=txt_db.c | ||
24 | LIBOBJ=txt_db.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= txt_db.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/x509/Makefile.ssl b/src/lib/libcrypto/x509/Makefile.ssl new file mode 100644 index 0000000000..1c1ca2ffa0 --- /dev/null +++ b/src/lib/libcrypto/x509/Makefile.ssl | |||
@@ -0,0 +1,96 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/x509/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= x509 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=x509 | ||
19 | ERRC=x509_err | ||
20 | GENERAL=Makefile README | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= x509_def.c x509_d2.c x509_r2x.c x509_cmp.c \ | ||
26 | x509_obj.c x509_req.c x509_vfy.c \ | ||
27 | x509_set.c x509rset.c $(ERRC).c \ | ||
28 | x509name.c x509_v3.c x509_ext.c x509pack.c \ | ||
29 | x509type.c x509_lu.c x_all.c x509_txt.c \ | ||
30 | by_file.c by_dir.c \ | ||
31 | v3_net.c v3_x509.c | ||
32 | LIBOBJ= x509_def.o x509_d2.o x509_r2x.o x509_cmp.o \ | ||
33 | x509_obj.o x509_req.o x509_vfy.o \ | ||
34 | x509_set.o x509rset.o $(ERRC).o \ | ||
35 | x509name.o x509_v3.o x509_ext.o x509pack.o \ | ||
36 | x509type.o x509_lu.o x_all.o x509_txt.o \ | ||
37 | by_file.o by_dir.o \ | ||
38 | v3_net.o v3_x509.o | ||
39 | |||
40 | SRC= $(LIBSRC) | ||
41 | |||
42 | EXHEADER= x509.h x509_vfy.h | ||
43 | HEADER= $(EXHEADER) | ||
44 | |||
45 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
46 | |||
47 | top: | ||
48 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
49 | |||
50 | all: lib | ||
51 | |||
52 | lib: $(LIBOBJ) | ||
53 | $(AR) $(LIB) $(LIBOBJ) | ||
54 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
55 | @touch lib | ||
56 | |||
57 | files: | ||
58 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
59 | |||
60 | links: | ||
61 | /bin/rm -f Makefile | ||
62 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
63 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
64 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
65 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
66 | |||
67 | install: | ||
68 | @for i in $(EXHEADER) ; \ | ||
69 | do \ | ||
70 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
71 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
72 | done; | ||
73 | |||
74 | tags: | ||
75 | ctags $(SRC) | ||
76 | |||
77 | tests: | ||
78 | |||
79 | lint: | ||
80 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
81 | |||
82 | depend: | ||
83 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
84 | |||
85 | dclean: | ||
86 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
87 | mv -f Makefile.new $(MAKEFILE) | ||
88 | |||
89 | clean: | ||
90 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
91 | |||
92 | errors: | ||
93 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
94 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
95 | |||
96 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/Makefile.ssl b/src/lib/libssl/src/Makefile.ssl new file mode 100644 index 0000000000..da7f885985 --- /dev/null +++ b/src/lib/libssl/src/Makefile.ssl | |||
@@ -0,0 +1,331 @@ | |||
1 | # | ||
2 | # Makefile for all the SSL related library routines and utilities | ||
3 | VERSION = 0.9.0a | ||
4 | # | ||
5 | # make install will install: | ||
6 | # libraries into $INSTALLTOP/lib | ||
7 | # headers into $INSTALLTOP/include | ||
8 | # utilities into $INSTALLTOP/bin | ||
9 | # | ||
10 | # By default INSTALLTOP is set to /usr/local/ssl | ||
11 | # If you want things install elsewere, consider running | ||
12 | # perl util/ssldir.pl /new/path | ||
13 | # | ||
14 | # Interesting Mailing Lists: | ||
15 | # ssl-bugs@mincom.oz.au | ||
16 | # ssl-users@mincom.oz.au | ||
17 | # | ||
18 | # To join the Mailing Lists: | ||
19 | # ssl-bugs-request@mincom.oz.au | ||
20 | # ssl-users-request@mincom.oz.au | ||
21 | # | ||
22 | # If you must get hold of people directly (we much prefer the above | ||
23 | # lists to be used if the question is of general interest!): | ||
24 | # Eric Young <eay@cryptsoft.com> | ||
25 | # Tim Hudson <tjh@cryptsoft.com> | ||
26 | # or both <ssleay@cryptsoft.com> | ||
27 | # | ||
28 | # The primary distribution of SSLeay is from | ||
29 | # ftp://ftp.psy.uq.oz.au/pub/Crypto/SSL | ||
30 | # | ||
31 | # NOCONST - Define for C compilers that don't like the const key word. | ||
32 | # NOPROTO - Define in if your compiler does not support prototypes. | ||
33 | # RSAref - Define if we are to link with RSAref. | ||
34 | # NO_IDEA - Define to build without the IDEA algorithm | ||
35 | # NO_RC4 - Define to build without the RC4 algorithm | ||
36 | # NO_RC2 - Define to build without the RC2 algorithm | ||
37 | # THREADS - Define when building with threads, you will probably also need any | ||
38 | # system defines as well, i.e. _REENTERANT for Solaris 2.[34] | ||
39 | # TERMIO - Define the termio terminal subsystem, needed if sgtty is missing. | ||
40 | # TERMIOS - Define the termios terminal subsystem, Silicon Graphics. | ||
41 | # LONGCRYPT - Define to use HPUX 10.x's long password modification to crypt(3). | ||
42 | # DEVRANDOM - Give this the value of the 'random device' if your OS supports | ||
43 | # one. 32 bytes will be read from this when the random | ||
44 | # number generator is initalised. | ||
45 | # SSL_ALLOW_ADH - define if you want the server to be able to use the | ||
46 | # SSLv3 anon-DH ciphers. | ||
47 | # SSL_ALLOW_ENULL - define if you want the server to be able to use the | ||
48 | # NULL encryption ciphers. | ||
49 | # | ||
50 | # LOCK_DEBUG - turns on lots of lock debug output :-) | ||
51 | # REF_CHECK - turn on some xyz_free() assertions. | ||
52 | # REF_PRINT - prints some stuff on structure free. | ||
53 | # CRYPTO_MDEBUG - turns on my 'memory leak' detecting stuff | ||
54 | # MFUNC - Make all Malloc/Free/Realloc calls call | ||
55 | # CRYPTO_malloc/CRYPTO_free/CRYPTO_realloc which can be setup to | ||
56 | # call application defined callbacks via CRYPTO_set_mem_functions() | ||
57 | # MD5_ASM needs to be defined to use the x86 assembler for MD5 | ||
58 | # SHA1_ASM needs to be defined to use the x86 assembler for SHA1 | ||
59 | # RMD160_ASM needs to be defined to use the x86 assembler for RIPEMD160 | ||
60 | |||
61 | |||
62 | CC= gcc | ||
63 | #CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DMD5_ASM -DSHA1_ASM -DRMD160_ASM | ||
64 | CFLAG= -DNO_IDEA -DTERMIOS -DBN_ASM -DL_ENDIAN -D_ANSI_SOURCE -fomit-frame-pointer -O3 -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM | ||
65 | PEX_LIBS= -L. -L.. -L../.. -L../../.. | ||
66 | EX_LIBS= | ||
67 | AR=ar r | ||
68 | |||
69 | # Set BN_MULW to bn_mulw.o if you want to use the C version | ||
70 | BN_MULW= asm/bn86-out.o | ||
71 | #BN_MULW= bn_mulw.o | ||
72 | #BN_MULW= asm/bn86-elf.o # elf, linux-elf | ||
73 | #BN_MULW= asm/bn86-sol.o # solaris | ||
74 | #BN_MULW= asm/bn86-out.o # a.out, FreeBSD | ||
75 | #BN_MULW= asm/bn86bsdi.o # bsdi | ||
76 | #BN_MULW= asm/alpha.o # DEC Alpha | ||
77 | #BN_MULW= asm/pa-risc2.o # HP-UX PA-RISC | ||
78 | #BN_MULW= asm/r3000.o # SGI MIPS cpu | ||
79 | #BN_MULW= asm/sparc.o # Sun solaris/SunOS | ||
80 | #BN_MULW= asm/bn-win32.o # Windows 95/NT | ||
81 | #BN_MULW= asm/x86w16.o # 16 bit code for Windows 3.1/DOS | ||
82 | #BN_MULW= asm/x86w32.o # 32 bit code for Windows 3.1 | ||
83 | |||
84 | # Set DES_ENC to des_enc.o if you want to use the C version | ||
85 | #There are 4 x86 assember options. | ||
86 | DES_ENC= asm/dx86-out.o asm/yx86-out.o | ||
87 | #DES_ENC= des_enc.o fcrypt_b.o # C | ||
88 | #DES_ENC= asm/dx86-elf.o asm/yx86-elf.o # elf | ||
89 | #DES_ENC= asm/dx86-sol.o asm/yx86-sol.o # solaris | ||
90 | #DES_ENC= asm/dx86-out.o asm/yx86-out.o # a.out, FreeBSD | ||
91 | #DES_ENC= asm/dx86bsdi.o asm/yx86bsdi.o # bsdi | ||
92 | |||
93 | # Set BF_ENC to bf_enc.o if you want to use the C version | ||
94 | #There are 4 x86 assember options. | ||
95 | BF_ENC= asm/bx86-out.o | ||
96 | #BF_ENC= bf_enc.o | ||
97 | #BF_ENC= asm/bx86-elf.o # elf | ||
98 | #BF_ENC= asm/bx86-sol.o # solaris | ||
99 | #BF_ENC= asm/bx86-out.o # a.out, FreeBSD | ||
100 | #BF_ENC= asm/bx86bsdi.o # bsdi | ||
101 | |||
102 | # Set CAST_ENC to c_enc.o if you want to use the C version | ||
103 | #There are 4 x86 assember options. | ||
104 | CAST_ENC= asm/cx86-out.o | ||
105 | #CAST_ENC= c_enc.o | ||
106 | #CAST_ENC= asm/cx86-elf.o # elf | ||
107 | #CAST_ENC= asm/cx86-sol.o # solaris | ||
108 | #CAST_ENC= asm/cx86-out.o # a.out, FreeBSD | ||
109 | #CAST_ENC= asm/cx86bsdi.o # bsdi | ||
110 | |||
111 | # Set RC4_ENC to rc4_enc.o if you want to use the C version | ||
112 | #There are 4 x86 assember options. | ||
113 | RC4_ENC= asm/rx86-out.o | ||
114 | #RC4_ENC= rc4_enc.o | ||
115 | #RC4_ENC= asm/rx86-elf.o # elf | ||
116 | #RC4_ENC= asm/rx86-sol.o # solaris | ||
117 | #RC4_ENC= asm/rx86-out.o # a.out, FreeBSD | ||
118 | #RC4_ENC= asm/rx86bsdi.o # bsdi | ||
119 | |||
120 | # Set RC5_ENC to rc5_enc.o if you want to use the C version | ||
121 | #There are 4 x86 assember options. | ||
122 | RC5_ENC= asm/r586-out.o | ||
123 | #RC5_ENC= rc5_enc.o | ||
124 | #RC5_ENC= asm/r586-elf.o # elf | ||
125 | #RC5_ENC= asm/r586-sol.o # solaris | ||
126 | #RC5_ENC= asm/r586-out.o # a.out, FreeBSD | ||
127 | #RC5_ENC= asm/r586bsdi.o # bsdi | ||
128 | |||
129 | # Also need MD5_ASM defined | ||
130 | MD5_ASM_OBJ= asm/mx86-out.o | ||
131 | #MD5_ASM_OBJ= asm/mx86-elf.o # elf | ||
132 | #MD5_ASM_OBJ= asm/mx86-sol.o # solaris | ||
133 | #MD5_ASM_OBJ= asm/mx86-out.o # a.out, FreeBSD | ||
134 | #MD5_ASM_OBJ= asm/mx86bsdi.o # bsdi | ||
135 | |||
136 | # Also need SHA1_ASM defined | ||
137 | SHA1_ASM_OBJ= asm/sx86-out.o | ||
138 | #SHA1_ASM_OBJ= asm/sx86-elf.o # elf | ||
139 | #SHA1_ASM_OBJ= asm/sx86-sol.o # solaris | ||
140 | #SHA1_ASM_OBJ= asm/sx86-out.o # a.out, FreeBSD | ||
141 | #SHA1_ASM_OBJ= asm/sx86bsdi.o # bsdi | ||
142 | |||
143 | # Also need RMD160_ASM defined | ||
144 | RMD160_ASM_OBJ= asm/rm86-out.o | ||
145 | #RMD160_ASM_OBJ= asm/rm86-elf.o # elf | ||
146 | #RMD160_ASM_OBJ= asm/rm86-sol.o # solaris | ||
147 | #RMD160_ASM_OBJ= asm/rm86-out.o # a.out, FreeBSD | ||
148 | #RMD160_ASM_OBJ= asm/rm86bsdi.o # bsdi | ||
149 | |||
150 | DIRS= crypto ssl rsaref apps test tools | ||
151 | # dirs in crypto to build | ||
152 | SDIRS= \ | ||
153 | md2 md5 sha mdc2 hmac ripemd \ | ||
154 | des rc2 rc4 rc5 idea bf cast \ | ||
155 | bn rsa dsa dh \ | ||
156 | buffer bio stack lhash rand err objects \ | ||
157 | evp pem asn1 x509 conf txt_db pkcs7 | ||
158 | |||
159 | # If you change the INSTALLTOP, make sure to also change the values | ||
160 | # in crypto/location.h | ||
161 | INSTALLTOP=/usr/ssl | ||
162 | |||
163 | MAKEFILE= Makefile.ssl | ||
164 | MAKE= make -f Makefile.ssl | ||
165 | |||
166 | MAN1=1 | ||
167 | MAN3=3 | ||
168 | SHELL=/bin/sh | ||
169 | |||
170 | TOP= . | ||
171 | ONEDIRS=out tmp | ||
172 | EDIRS= times doc bugs util include certs ms shlib mt demos perl dep | ||
173 | MISC= COPYRIGHT Configure HISTORY.066 INSTALL Makefile.ssl Makefile \ | ||
174 | README TODO HISTORY README.066 README.080 README.090 \ | ||
175 | VERSION PROBLEMS MINFO makefile.one e_os.h \ | ||
176 | MICROSOFT makevms.com config PATENTS | ||
177 | WDIRS= windows | ||
178 | LIBS= libcrypto.a libssl.a | ||
179 | |||
180 | GENERAL= Makefile | ||
181 | BASENAME= SSLeay | ||
182 | NAME= $(BASENAME)-$(VERSION) | ||
183 | TARFILE= $(NAME).tar | ||
184 | WTARFILE= $(NAME)-win.tar | ||
185 | EXHEADER= e_os.h | ||
186 | HEADER= e_os.h | ||
187 | |||
188 | all: | ||
189 | @for i in $(DIRS) ;\ | ||
190 | do \ | ||
191 | (cd $$i; echo "making $$i..."; \ | ||
192 | $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_MULW='${BN_MULW}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' SDIRS='${SDIRS}' AR='${AR}' all ); \ | ||
193 | done; | ||
194 | |||
195 | sub_all: | ||
196 | @for i in $(DIRS) ;\ | ||
197 | do \ | ||
198 | (cd $$i; echo "making $$i..."; \ | ||
199 | $(MAKE) CC='${CC}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_MULW='${BN_MULW}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' all ); \ | ||
200 | done; | ||
201 | |||
202 | clean: | ||
203 | /bin/rm -f shlib/*.o *.o core a.out fluff *.map | ||
204 | @for i in $(DIRS) ;\ | ||
205 | do \ | ||
206 | (cd $$i; echo "cleaning $$i..."; \ | ||
207 | $(MAKE) SDIRS='${SDIRS}' clean ); \ | ||
208 | /bin/rm -f $(LIBS); \ | ||
209 | done; | ||
210 | /bin/rm -f *.a *.o speed.* *.map *.so .pure core | ||
211 | /bin/rm -f $(TARFILE) | ||
212 | @for i in $(ONEDIRS) ;\ | ||
213 | do \ | ||
214 | /bin/rm -fr $$i/*; \ | ||
215 | done | ||
216 | |||
217 | makefile.one: files | ||
218 | perl util/mk1mf.pl >makefile.one; \ | ||
219 | sh util/do_ms.sh | ||
220 | |||
221 | files: MINFO | ||
222 | perl $(TOP)/util/files.pl Makefile.ssl > $(TOP)/MINFO | ||
223 | @for i in $(DIRS) ;\ | ||
224 | do \ | ||
225 | (cd $$i; echo "making 'files' in $$i..."; \ | ||
226 | $(MAKE) SDIRS='${SDIRS}' files ); \ | ||
227 | done; | ||
228 | |||
229 | links: | ||
230 | /bin/rm -f Makefile; | ||
231 | ./util/point.sh Makefile.ssl Makefile; | ||
232 | $(TOP)/util/mklink.sh include $(EXHEADER) ; | ||
233 | @for i in $(DIRS) ;\ | ||
234 | do \ | ||
235 | (cd $$i; echo "making links in $$i..."; \ | ||
236 | $(MAKE) SDIRS='${SDIRS}' links ); \ | ||
237 | done; | ||
238 | # @(cd apps; sh ./mklinks) | ||
239 | @( SSLEAY="`pwd`/apps/ssleay"; export SSLEAY; sh tools/c_rehash certs ) | ||
240 | |||
241 | dclean: | ||
242 | /bin/rm -f *.bak | ||
243 | @for i in $(DIRS) ;\ | ||
244 | do \ | ||
245 | (cd $$i; echo "undoing makedepend in $$i..."; \ | ||
246 | $(MAKE) SDIRS='${SDIRS}' dclean ); \ | ||
247 | done; | ||
248 | |||
249 | rehash: | ||
250 | @(PATH="`pwd`/apps:${PATH}"; sh tools/c_rehash certs) | ||
251 | |||
252 | test: tests | ||
253 | |||
254 | tests: | ||
255 | (cd test; echo "testing $$i..."; \ | ||
256 | $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_MULW='${BN_MULW}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SDIRS='${SDIRS}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' tests ); | ||
257 | @apps/ssleay version -a | ||
258 | |||
259 | depend: | ||
260 | @for i in $(DIRS) ;\ | ||
261 | do \ | ||
262 | (cd $$i; echo "making dependancies $$i..."; \ | ||
263 | $(MAKE) SDIRS='${SDIRS}' depend ); \ | ||
264 | done; | ||
265 | |||
266 | lint: | ||
267 | @for i in $(DIRS) ;\ | ||
268 | do \ | ||
269 | (cd $$i; echo "making lint $$i..."; \ | ||
270 | $(MAKE) SDIRS='${SDIRS}' lint ); \ | ||
271 | done; | ||
272 | |||
273 | tags: | ||
274 | @for i in $(DIRS) ;\ | ||
275 | do \ | ||
276 | (cd $$i; echo "making tags $$i..."; \ | ||
277 | $(MAKE) SDIRS='${SDIRS}' tags ); \ | ||
278 | done; | ||
279 | |||
280 | errors: | ||
281 | @for i in $(DIRS) ;\ | ||
282 | do \ | ||
283 | (cd $$i; echo "making errors in $$i..."; \ | ||
284 | $(MAKE) SDIRS='${SDIRS}' errors ); \ | ||
285 | done; | ||
286 | |||
287 | tar: | ||
288 | @(cd ..;\ | ||
289 | mv $(BASENAME) $(NAME); \ | ||
290 | export STUFF; \ | ||
291 | for i in $(MISC) $(DIRS) $(EDIRS) $(ONEDIRS) ;\ | ||
292 | do \ | ||
293 | STUFF="$$STUFF $(NAME)/$$i"; \ | ||
294 | done; \ | ||
295 | tar cf $(NAME)/$(TARFILE) $$STUFF; \ | ||
296 | mv $(NAME) $(BASENAME) ) | ||
297 | gzip -f $(TARFILE) | ||
298 | |||
299 | dist: | ||
300 | perl Configure dist | ||
301 | perl util/up_ver.pl ${VERSION} | ||
302 | @$(MAKE) dist_pem_h | ||
303 | @$(MAKE) SDIRS='${SDIRS}' clean | ||
304 | @$(MAKE) SDIRS='${SDIRS}' dclean | ||
305 | @(cd apps; sh ./rmlinks) | ||
306 | @$(MAKE) makefile.one | ||
307 | @$(MAKE) tar | ||
308 | |||
309 | dist_pem_h: | ||
310 | (cd crypto/pem; $(MAKE) SDIRS='${SDIRS}' CFLAG='${CFLAG}' pem.h; $(MAKE) clean) | ||
311 | |||
312 | install: all | ||
313 | @-mkdir -p $(INSTALLTOP)/bin 2>/dev/null | ||
314 | @-mkdir -p $(INSTALLTOP)/lib 2>/dev/null | ||
315 | @-mkdir -p $(INSTALLTOP)/include 2>/dev/null | ||
316 | @-mkdir -p $(INSTALLTOP)/certs 2>/dev/null | ||
317 | @-mkdir -p $(INSTALLTOP)/private 2>/dev/null | ||
318 | @for i in $(DIRS) ;\ | ||
319 | do \ | ||
320 | (cd $$i; echo "installing $$i..."; \ | ||
321 | $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' EX_LIBS='${EX_LIBS}' SDIRS='${SDIRS}' install ); \ | ||
322 | done | ||
323 | @for i in $(LIBS) ;\ | ||
324 | do \ | ||
325 | ( echo installing $$i; \ | ||
326 | cp $$i $(INSTALLTOP)/lib; \ | ||
327 | sh util/ranlib.sh $(INSTALLTOP)/lib/$$i; \ | ||
328 | chmod 644 $(INSTALLTOP)/lib/$$i ); \ | ||
329 | done | ||
330 | |||
331 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/apps/Makefile.ssl b/src/lib/libssl/src/apps/Makefile.ssl new file mode 100644 index 0000000000..1cace40ab7 --- /dev/null +++ b/src/lib/libssl/src/apps/Makefile.ssl | |||
@@ -0,0 +1,144 @@ | |||
1 | # | ||
2 | # SSLeay/apps/Makefile.ssl | ||
3 | # | ||
4 | |||
5 | DIR= apps | ||
6 | TOP= .. | ||
7 | CC= cc | ||
8 | INCLUDES= -I../include | ||
9 | CFLAG= -g -static | ||
10 | INSTALLTOP= /usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | RM= /bin/rm -f | ||
15 | |||
16 | PEX_LIBS= | ||
17 | EX_LIBS= | ||
18 | |||
19 | CFLAGS= -DMONOLITH $(INCLUDES) $(CFLAG) | ||
20 | |||
21 | GENERAL=Makefile | ||
22 | |||
23 | DLIBCRYPTO=../libcrypto.a | ||
24 | DLIBSSL=../libssl.a | ||
25 | LIBCRYPTO=-L.. -lcrypto | ||
26 | LIBSSL=-L.. -lssl | ||
27 | |||
28 | SSLEAY= ssleay | ||
29 | |||
30 | SCRIPTS=CA.sh der_chop | ||
31 | |||
32 | EXE= $(SSLEAY) | ||
33 | |||
34 | E_EXE= verify asn1pars req dgst dh enc gendh errstr ca crl \ | ||
35 | rsa dsa dsaparam \ | ||
36 | x509 genrsa s_server s_client speed \ | ||
37 | s_time version pkcs7 crl2pkcs7 sess_id ciphers | ||
38 | |||
39 | PROGS= $(SSLEAY).c | ||
40 | |||
41 | A_OBJ=apps.o | ||
42 | A_SRC=apps.c | ||
43 | S_OBJ= s_cb.o s_socket.o | ||
44 | S_SRC= s_cb.c s_socket.c | ||
45 | |||
46 | E_OBJ= verify.o asn1pars.o req.o dgst.o dh.o enc.o gendh.o errstr.o ca.o \ | ||
47 | pkcs7.o crl2p7.o crl.o \ | ||
48 | rsa.o dsa.o dsaparam.o \ | ||
49 | x509.o genrsa.o s_server.o s_client.o speed.o \ | ||
50 | s_time.o $(A_OBJ) $(S_OBJ) version.o sess_id.o \ | ||
51 | ciphers.o | ||
52 | |||
53 | # pem_mail.o | ||
54 | |||
55 | E_SRC= verify.c asn1pars.c req.c dgst.c dh.c enc.c gendh.c errstr.c ca.c \ | ||
56 | pkcs7.c crl2p7.c crl.c \ | ||
57 | rsa.c dsa.c dsaparam.c \ | ||
58 | x509.c genrsa.c s_server.c s_client.c speed.c \ | ||
59 | s_time.c $(A_SRC) $(S_SRC) version.c sess_id.c \ | ||
60 | ciphers.c | ||
61 | |||
62 | # pem_mail.c | ||
63 | |||
64 | SRC=$(E_SRC) | ||
65 | |||
66 | EXHEADER= | ||
67 | HEADER= apps.h progs.h s_apps.h \ | ||
68 | testdsa.h testrsa.h \ | ||
69 | $(EXHEADER) | ||
70 | |||
71 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
72 | |||
73 | top: | ||
74 | @(cd ..; $(MAKE) DIRS=$(DIR) all) | ||
75 | |||
76 | all: exe | ||
77 | |||
78 | exe: $(EXE) | ||
79 | |||
80 | req: sreq.o $(A_OBJ) $(DLIBCRYPTO) | ||
81 | $(CC) -o req $(CFLAG) sreq.o $(A_OBJ) $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
82 | |||
83 | sreq.o: req.c | ||
84 | $(CC) -c $(INCLUDES) $(CFLAG) -o sreq.o req.c | ||
85 | |||
86 | files: | ||
87 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
88 | |||
89 | install: mklinks | ||
90 | @for i in $(EXE) $(SCRIPTS) mklinks; \ | ||
91 | do \ | ||
92 | (echo installing $$i; \ | ||
93 | cp $$i $(INSTALLTOP)/bin/$$i; \ | ||
94 | chmod 755 $(INSTALLTOP)/bin/$$i ); \ | ||
95 | done; \ | ||
96 | cp ssleay.cnf $(INSTALLTOP)/lib | ||
97 | chmod 644 $(INSTALLTOP)/lib/ssleay.cnf | ||
98 | cd $(INSTALLTOP)/bin; \ | ||
99 | /bin/sh ./mklinks; \ | ||
100 | /bin/rm -f ./mklinks | ||
101 | |||
102 | tags: | ||
103 | ctags $(SRC) | ||
104 | |||
105 | tests: | ||
106 | |||
107 | links: | ||
108 | /bin/rm -f Makefile | ||
109 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
110 | |||
111 | lint: | ||
112 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
113 | |||
114 | depend: | ||
115 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(SRC) | ||
116 | |||
117 | dclean: | ||
118 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
119 | mv -f Makefile.new $(MAKEFILE) | ||
120 | |||
121 | errors: | ||
122 | |||
123 | clean: | ||
124 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) | ||
125 | /bin/rm -f req | ||
126 | |||
127 | $(DLIBSSL): | ||
128 | (cd ../ssl; $(MAKE)) | ||
129 | |||
130 | $(DLIBCRYPTO): | ||
131 | (cd ../crypto; $(MAKE)) | ||
132 | |||
133 | $(SSLEAY): progs.h $(E_OBJ) $(SSLEAY).o $(DLIBCRYPTO) $(DLIBSSL) | ||
134 | $(RM) $(SSLEAY) | ||
135 | $(CC) -o $(SSLEAY) $(CFLAGS) $(SSLEAY).o $(E_OBJ) $(PEX_LIBS) $(LIBSSL) $(LIBCRYPTO) $(EX_LIBS) | ||
136 | |||
137 | progs.h: | ||
138 | perl ./g_ssleay.pl $(E_EXE) >progs.h | ||
139 | $(RM) $(SSLEAY).o | ||
140 | |||
141 | mklinks: | ||
142 | perl ./g_ssleay.pl $(E_EXE) >progs.h | ||
143 | |||
144 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/apps/der_chop b/src/lib/libssl/src/apps/der_chop new file mode 100644 index 0000000000..4639330c10 --- /dev/null +++ b/src/lib/libssl/src/apps/der_chop | |||
@@ -0,0 +1,305 @@ | |||
1 | #!/usr/local/bin/perl | ||
2 | # | ||
3 | # der_chop ... this is one total hack that Eric is really not proud of | ||
4 | # so don't look at it and don't ask for support | ||
5 | # | ||
6 | # The "documentation" for this (i.e. all the comments) are my fault --tjh | ||
7 | # | ||
8 | # This program takes the "raw" output of derparse/asn1parse and | ||
9 | # converts it into tokens and then runs regular expression matches | ||
10 | # to try to figure out what to grab to get the things that are needed | ||
11 | # and it is possible that this will do the wrong thing as it is a *hack* | ||
12 | # | ||
13 | # SSLeay 0.5.2+ should have direct read support for x509 (via -inform NET) | ||
14 | # [I know ... promises promises :-)] | ||
15 | # | ||
16 | # To convert a Netscape Certificate: | ||
17 | # der_chop < ServerCert.der > cert.pem | ||
18 | # To convert a Netscape Key (and encrypt it again to protect it) | ||
19 | # rsa -inform NET -in ServerKey.der -des > key.pem | ||
20 | # | ||
21 | # 23-Apr-96 eay Added the extra ASN.1 string types, I still think this | ||
22 | # is an evil hack. If nothing else the parsing should | ||
23 | # be relative, not absolute. | ||
24 | # 19-Apr-96 tjh hacked (with eay) into 0.5.x format | ||
25 | # | ||
26 | # Tim Hudson | ||
27 | # tjh@cryptsoft.com | ||
28 | # | ||
29 | |||
30 | |||
31 | require 'getopts.pl'; | ||
32 | |||
33 | $debug=0; | ||
34 | |||
35 | # this was the 0.4.x way of doing things ... | ||
36 | $cmd="derparse"; | ||
37 | $x509_cmd="x509"; | ||
38 | $crl_cmd="crl"; | ||
39 | $rc4_cmd="rc4"; | ||
40 | $md2_cmd="md2"; | ||
41 | $md4_cmd="md4"; | ||
42 | $rsa_cmd="rsa -des -inform der "; | ||
43 | |||
44 | # this was the 0.5.x way of doing things ... | ||
45 | $cmd="ssleay asn1parse"; | ||
46 | $x509_cmd="ssleay x509"; | ||
47 | $crl_cmd="ssleay crl"; | ||
48 | $rc4_cmd="ssleay rc4"; | ||
49 | $md2_cmd="ssleay md2"; | ||
50 | $md4_cmd="ssleay md4"; | ||
51 | $rsa_cmd="ssleay rsa -des -inform der "; | ||
52 | |||
53 | &Getopts('vd:') || die "usage:$0 [-v] [-d num] file"; | ||
54 | $depth=($opt_d =~ /^\d+$/)?$opt_d:0; | ||
55 | |||
56 | &init_der(); | ||
57 | |||
58 | if ($#ARGV != -1) | ||
59 | { | ||
60 | foreach $file (@ARGV) | ||
61 | { | ||
62 | print STDERR "doing $file\n"; | ||
63 | &dofile($file); | ||
64 | } | ||
65 | } | ||
66 | else | ||
67 | { | ||
68 | $file="/tmp/a$$.DER"; | ||
69 | open(OUT,">$file") || die "unable to open $file:$!\n"; | ||
70 | for (;;) | ||
71 | { | ||
72 | $i=sysread(STDIN,$b,1024*10); | ||
73 | last if ($i <= 0); | ||
74 | $i=syswrite(OUT,$b,$i); | ||
75 | } | ||
76 | &dofile($file); | ||
77 | unlink($file); | ||
78 | } | ||
79 | |||
80 | sub dofile | ||
81 | { | ||
82 | local($file)=@_; | ||
83 | local(@p); | ||
84 | |||
85 | $b=&load_file($file); | ||
86 | @p=&load_file_parse($file); | ||
87 | |||
88 | foreach $_ (@p) | ||
89 | { | ||
90 | ($off,$d,$hl,$len)=&parse_line($_); | ||
91 | $d-=$depth; | ||
92 | next if ($d != 0); | ||
93 | next if ($len == 0); | ||
94 | |||
95 | $o=substr($b,$off,$len+$hl); | ||
96 | ($str,@data)=&der_str($o); | ||
97 | print "$str\n" if ($opt_v); | ||
98 | if ($str =~ /^$crl/) | ||
99 | { | ||
100 | open(OUT,"|$crl_cmd -inform d -hash -issuer") || | ||
101 | die "unable to run $crl_cmd:$!\n"; | ||
102 | print OUT $o; | ||
103 | close(OUT); | ||
104 | } | ||
105 | elsif ($str =~ /^$x509/) | ||
106 | { | ||
107 | open(OUT,"|$x509_cmd -inform d -hash -subject -issuer") | ||
108 | || die "unable to run $x509_cmd:$!\n"; | ||
109 | print OUT $o; | ||
110 | close(OUT); | ||
111 | } | ||
112 | elsif ($str =~ /^$rsa/) | ||
113 | { | ||
114 | ($type)=($data[3] =~ /OBJECT_IDENTIFIER :(.*)\s*$/); | ||
115 | next unless ($type eq "rsaEncryption"); | ||
116 | ($off,$d,$hl,$len)=&parse_line($data[5]); | ||
117 | $os=substr($o,$off+$hl,$len); | ||
118 | open(OUT,"|$rsa_cmd") | ||
119 | || die "unable to run $rsa_cmd:$!\n"; | ||
120 | print OUT $os; | ||
121 | close(OUT); | ||
122 | } | ||
123 | elsif ($str =~ /^0G-1D-1G/) | ||
124 | { | ||
125 | ($off,$d,$hl,$len)=&parse_line($data[1]); | ||
126 | $os=substr($o,$off+$hl,$len); | ||
127 | print STDERR "<$os>\n" if $opt_v; | ||
128 | &do_certificate($o,@data) | ||
129 | if (($os eq "certificate") && | ||
130 | ($str =! /^0G-1D-1G-2G-3F-3E-2D/)); | ||
131 | &do_private_key($o,@data) | ||
132 | if (($os eq "private-key") && | ||
133 | ($str =! /^0G-1D-1G-2G-3F-3E-2D/)); | ||
134 | } | ||
135 | } | ||
136 | } | ||
137 | |||
138 | sub der_str | ||
139 | { | ||
140 | local($str)=@_; | ||
141 | local(*OUT,*IN,@a,$t,$d,$ret); | ||
142 | local($file)="/tmp/b$$.DER"; | ||
143 | local(@ret); | ||
144 | |||
145 | open(OUT,">$file"); | ||
146 | print OUT $str; | ||
147 | close(OUT); | ||
148 | open(IN,"$cmd -inform 'd' -in $file |") || | ||
149 | die "unable to run $cmd:$!\n"; | ||
150 | $ret=""; | ||
151 | while (<IN>) | ||
152 | { | ||
153 | chop; | ||
154 | push(@ret,$_); | ||
155 | |||
156 | print STDERR "$_\n" if ($debug); | ||
157 | |||
158 | @a=split(/\s*:\s*/); | ||
159 | ($d)=($a[1] =~ /d=\s*(\d+)/); | ||
160 | $a[2] =~ s/\s+$//; | ||
161 | $t=$DER_s2i{$a[2]}; | ||
162 | $ret.="$d$t-"; | ||
163 | } | ||
164 | close(IN); | ||
165 | unlink($file); | ||
166 | chop $ret; | ||
167 | $ret =~ s/(-3H(-4G-5F-5[IJKMQRS])+)+/-NAME/g; | ||
168 | $ret =~ s/(-3G-4B-4L)+/-RCERT/g; | ||
169 | return($ret,@ret); | ||
170 | } | ||
171 | |||
172 | sub init_der | ||
173 | { | ||
174 | $crl= "0G-1G-2G-3F-3E-2G-NAME-2L-2L-2G-RCERT-1G-2F-2E-1C"; | ||
175 | $x509="0G-1G-2B-2G-3F-3E-2G-NAME-2G-3L-3L-2G-NAME-2G-3G-4F-4E-3C-1G-2F-2E-1C"; | ||
176 | $rsa= "0G-1B-1G-2F-2E-1D"; | ||
177 | |||
178 | %DER_i2s=( | ||
179 | # SSLeay 0.4.x has this list | ||
180 | "A","EOC", | ||
181 | "B","INTEGER", | ||
182 | "C","BIT STRING", | ||
183 | "D","OCTET STRING", | ||
184 | "E","NULL", | ||
185 | "F","OBJECT", | ||
186 | "G","SEQUENCE", | ||
187 | "H","SET", | ||
188 | "I","PRINTABLESTRING", | ||
189 | "J","T61STRING", | ||
190 | "K","IA5STRING", | ||
191 | "L","UTCTIME", | ||
192 | "M","NUMERICSTRING", | ||
193 | "N","VIDEOTEXSTRING", | ||
194 | "O","GENERALIZEDTIME", | ||
195 | "P","GRAPHICSTRING", | ||
196 | "Q","ISO64STRING", | ||
197 | "R","GENERALSTRING", | ||
198 | "S","UNIVERSALSTRING", | ||
199 | |||
200 | # SSLeay 0.5.x changed some things ... and I'm | ||
201 | # leaving in the old stuff but adding in these | ||
202 | # to handle the new as well --tjh | ||
203 | # - Well I've just taken them out and added the extra new | ||
204 | # ones :-) - eay | ||
205 | ); | ||
206 | |||
207 | foreach (keys %DER_i2s) | ||
208 | { $DER_s2i{$DER_i2s{$_}}=$_; } | ||
209 | } | ||
210 | |||
211 | sub parse_line | ||
212 | { | ||
213 | local($_)=@_; | ||
214 | |||
215 | return(/\s*(\d+):d=\s*(\d+)\s+hl=\s*(\d+)\s+l=\s*(\d+|inf)\s/); | ||
216 | } | ||
217 | |||
218 | # 0:d=0 hl=4 l=377 cons: univ: SEQUENCE | ||
219 | # 4:d=1 hl=2 l= 11 prim: univ: OCTET_STRING | ||
220 | # 17:d=1 hl=4 l=360 cons: univ: SEQUENCE | ||
221 | # 21:d=2 hl=2 l= 12 cons: univ: SEQUENCE | ||
222 | # 23:d=3 hl=2 l= 8 prim: univ: OBJECT_IDENTIFIER :rc4 | ||
223 | # 33:d=3 hl=2 l= 0 prim: univ: NULL | ||
224 | # 35:d=2 hl=4 l=342 prim: univ: OCTET_STRING | ||
225 | sub do_private_key | ||
226 | { | ||
227 | local($data,@struct)=@_; | ||
228 | local($file)="/tmp/b$$.DER"; | ||
229 | local($off,$d,$hl,$len,$_,$b,@p,$s); | ||
230 | |||
231 | ($type)=($struct[4] =~ /OBJECT_IDENTIFIER :(.*)\s*$/); | ||
232 | if ($type eq "rc4") | ||
233 | { | ||
234 | ($off,$d,$hl,$len)=&parse_line($struct[6]); | ||
235 | open(OUT,"|$rc4_cmd >$file") || | ||
236 | die "unable to run $rc4_cmd:$!\n"; | ||
237 | print OUT substr($data,$off+$hl,$len); | ||
238 | close(OUT); | ||
239 | |||
240 | $b=&load_file($file); | ||
241 | unlink($file); | ||
242 | |||
243 | ($s,@p)=&der_str($b); | ||
244 | die "unknown rsa key type\n$s\n" | ||
245 | if ($s ne '0G-1B-1G-2F-2E-1D'); | ||
246 | local($off,$d,$hl,$len)=&parse_line($p[5]); | ||
247 | $b=substr($b,$off+$hl,$len); | ||
248 | ($s,@p)=&der_str($b); | ||
249 | open(OUT,"|$rsa_cmd") || die "unable to run $rsa_cmd:$!\n"; | ||
250 | print OUT $b; | ||
251 | close(OUT); | ||
252 | } | ||
253 | else | ||
254 | { | ||
255 | print "'$type' is unknown\n"; | ||
256 | exit(1); | ||
257 | } | ||
258 | } | ||
259 | |||
260 | sub do_certificate | ||
261 | { | ||
262 | local($data,@struct)=@_; | ||
263 | local($file)="/tmp/b$$.DER"; | ||
264 | local($off,$d,$hl,$len,$_,$b,@p,$s); | ||
265 | |||
266 | ($off,$d,$hl,$len)=&parse_line($struct[2]); | ||
267 | $b=substr($data,$off,$len+$hl); | ||
268 | |||
269 | open(OUT,"|$x509_cmd -inform d") || die "unable to run $x509_cmd:$!\n"; | ||
270 | print OUT $b; | ||
271 | close(OUT); | ||
272 | } | ||
273 | |||
274 | sub load_file | ||
275 | { | ||
276 | local($file)=@_; | ||
277 | local(*IN,$r,$b,$i); | ||
278 | |||
279 | $r=""; | ||
280 | open(IN,"<$file") || die "unable to open $file:$!\n"; | ||
281 | for (;;) | ||
282 | { | ||
283 | $i=sysread(IN,$b,10240); | ||
284 | last if ($i <= 0); | ||
285 | $r.=$b; | ||
286 | } | ||
287 | close(IN); | ||
288 | return($r); | ||
289 | } | ||
290 | |||
291 | sub load_file_parse | ||
292 | { | ||
293 | local($file)=@_; | ||
294 | local(*IN,$r,@ret,$_,$i,$n,$b); | ||
295 | |||
296 | open(IN,"$cmd -inform d -in $file|") | ||
297 | || die "unable to run der_parse\n"; | ||
298 | while (<IN>) | ||
299 | { | ||
300 | chop; | ||
301 | push(@ret,$_); | ||
302 | } | ||
303 | return($r,@ret); | ||
304 | } | ||
305 | |||
diff --git a/src/lib/libssl/src/certs/ICE-CA.pem b/src/lib/libssl/src/certs/ICE-CA.pem new file mode 100644 index 0000000000..75652366c2 --- /dev/null +++ b/src/lib/libssl/src/certs/ICE-CA.pem | |||
@@ -0,0 +1,59 @@ | |||
1 | Certificate: | ||
2 | Data: | ||
3 | Version: 3 (0x2) | ||
4 | Serial Number: 1 (0x1) | ||
5 | Signature Algorithm: md5WithRSAEncryption | ||
6 | Issuer: O=European ICE-TEL project, OU=V3-Certification Authority | ||
7 | Validity | ||
8 | Not Before: Apr 2 17:35:53 1997 GMT | ||
9 | Not After : Apr 2 17:35:53 1998 GMT | ||
10 | Subject: O=European ICE-TEL project, OU=V3-Certification Authority, L=Darmstadt | ||
11 | Subject Public Key Info: | ||
12 | Public Key Algorithm: rsa | ||
13 | RSA Public Key: (512 bit) | ||
14 | Modulus (512 bit): | ||
15 | 00:82:75:ba:f6:d1:60:b5:f9:15:b3:6a:dd:29:8f: | ||
16 | 8b:a4:6f:1a:88:e0:50:43:40:0b:79:41:d5:d3:16: | ||
17 | 44:7d:74:65:17:42:06:52:0b:e9:50:c8:10:cd:24: | ||
18 | e2:ae:8d:22:30:73:e6:b4:b7:93:1f:e5:6e:a2:ae: | ||
19 | 49:11:a5:c9:45 | ||
20 | Exponent: 65537 (0x10001) | ||
21 | X509v3 extensions: | ||
22 | X509v3 Authority Key Identifier: | ||
23 | 0.........z.."p......e.. | ||
24 | X509v3 Subject Key Identifier: | ||
25 | ..~r..:..B.44fu......3 | ||
26 | X509v3 Key Usage: critical | ||
27 | .... | ||
28 | X509v3 Certificate Policies: critical | ||
29 | 0.0...*... | ||
30 | X509v3 Subject Alternative Name: | ||
31 | 0!..secude-support@darmstadt.gmd.de | ||
32 | X509v3 Issuer Alternative Name: | ||
33 | 0I..ice-tel-ca@darmstadt.gmd.de.*http://www.darmstadt.gmd.de/ice-tel/euroca | ||
34 | X509v3 Basic Constraints: critical | ||
35 | 0.... | ||
36 | X509v3 CRL Distribution Points: | ||
37 | 0200...,.*http://www.darmstadt.gmd.de/ice-tel/euroca | ||
38 | Signature Algorithm: md5WithRSAEncryption | ||
39 | 17:a2:88:b7:99:5a:05:41:e4:13:34:67:e6:1f:3e:26:ec:4b: | ||
40 | 69:f9:3e:28:22:be:9d:1c:ab:41:6f:0c:00:85:fe:45:74:f6: | ||
41 | 98:f0:ce:9b:65:53:4a:50:42:c7:d4:92:bd:d7:a2:a8:3d:98: | ||
42 | 88:73:cd:60:28:79:a3:fc:48:7a | ||
43 | -----BEGIN CERTIFICATE----- | ||
44 | MIICzDCCAnagAwIBAgIBATANBgkqhkiG9w0BAQQFADBIMSEwHwYDVQQKExhFdXJv | ||
45 | cGVhbiBJQ0UtVEVMIHByb2plY3QxIzAhBgNVBAsTGlYzLUNlcnRpZmljYXRpb24g | ||
46 | QXV0aG9yaXR5MB4XDTk3MDQwMjE3MzU1M1oXDTk4MDQwMjE3MzU1M1owXDEhMB8G | ||
47 | A1UEChMYRXVyb3BlYW4gSUNFLVRFTCBwcm9qZWN0MSMwIQYDVQQLExpWMy1DZXJ0 | ||
48 | aWZpY2F0aW9uIEF1dGhvcml0eTESMBAGA1UEBxMJRGFybXN0YWR0MFkwCgYEVQgB | ||
49 | AQICAgADSwAwSAJBAIJ1uvbRYLX5FbNq3SmPi6RvGojgUENAC3lB1dMWRH10ZRdC | ||
50 | BlIL6VDIEM0k4q6NIjBz5rS3kx/lbqKuSRGlyUUCAwEAAaOCATgwggE0MB8GA1Ud | ||
51 | IwQYMBaAFIr3yNUOx3ro1yJw4AuJ1bbsZbzPMB0GA1UdDgQWBBR+cvL4OoacQog0 | ||
52 | NGZ1w9T80aIRMzAOBgNVHQ8BAf8EBAMCAfYwFAYDVR0gAQH/BAowCDAGBgQqAwQF | ||
53 | MCoGA1UdEQQjMCGBH3NlY3VkZS1zdXBwb3J0QGRhcm1zdGFkdC5nbWQuZGUwUgYD | ||
54 | VR0SBEswSYEbaWNlLXRlbC1jYUBkYXJtc3RhZHQuZ21kLmRlhipodHRwOi8vd3d3 | ||
55 | LmRhcm1zdGFkdC5nbWQuZGUvaWNlLXRlbC9ldXJvY2EwDwYDVR0TAQH/BAUwAwEB | ||
56 | /zA7BgNVHR8ENDAyMDCgLqAshipodHRwOi8vd3d3LmRhcm1zdGFkdC5nbWQuZGUv | ||
57 | aWNlLXRlbC9ldXJvY2EwDQYJKoZIhvcNAQEEBQADQQAXooi3mVoFQeQTNGfmHz4m | ||
58 | 7Etp+T4oIr6dHKtBbwwAhf5FdPaY8M6bZVNKUELH1JK916KoPZiIc81gKHmj/Eh6 | ||
59 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/ICE-root.pem b/src/lib/libssl/src/certs/ICE-root.pem new file mode 100644 index 0000000000..fa991599c9 --- /dev/null +++ b/src/lib/libssl/src/certs/ICE-root.pem | |||
@@ -0,0 +1,48 @@ | |||
1 | Certificate: | ||
2 | Data: | ||
3 | Version: 3 (0x2) | ||
4 | Serial Number: 0 (0x0) | ||
5 | Signature Algorithm: md5WithRSAEncryption | ||
6 | Issuer: O=European ICE-TEL project, OU=V3-Certification Authority | ||
7 | Validity | ||
8 | Not Before: Apr 2 17:33:36 1997 GMT | ||
9 | Not After : Apr 2 17:33:36 1998 GMT | ||
10 | Subject: O=European ICE-TEL project, OU=V3-Certification Authority | ||
11 | Subject Public Key Info: | ||
12 | Public Key Algorithm: rsa | ||
13 | RSA Public Key: (512 bit) | ||
14 | Modulus (512 bit): | ||
15 | 00:80:3e:eb:ae:47:a9:fe:10:54:0b:81:8b:9c:2b: | ||
16 | 82:ab:3a:61:36:65:8b:f3:73:9f:ac:ac:7a:15:a7: | ||
17 | 13:8f:b4:c4:ba:a3:0f:bc:a5:58:8d:cc:b1:93:31: | ||
18 | 9e:81:9e:8c:19:61:86:fa:52:73:54:d1:97:76:22: | ||
19 | e7:c7:9f:41:cd | ||
20 | Exponent: 65537 (0x10001) | ||
21 | X509v3 extensions: | ||
22 | X509v3 Subject Key Identifier: | ||
23 | ........z.."p......e.. | ||
24 | X509v3 Key Usage: critical | ||
25 | .... | ||
26 | X509v3 Subject Alternative Name: | ||
27 | 0I.*http://www.darmstadt.gmd.de/ice-tel/euroca..ice-tel-ca@darmstadt.gmd.de | ||
28 | X509v3 Basic Constraints: critical | ||
29 | 0.... | ||
30 | Signature Algorithm: md5WithRSAEncryption | ||
31 | 76:69:61:db:b7:cf:8b:06:9e:d8:8c:96:53:d2:4d:a8:23:a6: | ||
32 | 03:44:e8:8f:24:a5:c0:84:a8:4b:77:d4:2d:2b:7d:37:91:67: | ||
33 | f2:2c:ce:02:31:4c:6b:cc:ce:f2:68:a6:11:11:ab:7d:88:b8: | ||
34 | 7e:22:9f:25:06:60:bd:79:30:3d | ||
35 | -----BEGIN CERTIFICATE----- | ||
36 | MIICFjCCAcCgAwIBAgIBADANBgkqhkiG9w0BAQQFADBIMSEwHwYDVQQKExhFdXJv | ||
37 | cGVhbiBJQ0UtVEVMIHByb2plY3QxIzAhBgNVBAsTGlYzLUNlcnRpZmljYXRpb24g | ||
38 | QXV0aG9yaXR5MB4XDTk3MDQwMjE3MzMzNloXDTk4MDQwMjE3MzMzNlowSDEhMB8G | ||
39 | A1UEChMYRXVyb3BlYW4gSUNFLVRFTCBwcm9qZWN0MSMwIQYDVQQLExpWMy1DZXJ0 | ||
40 | aWZpY2F0aW9uIEF1dGhvcml0eTBZMAoGBFUIAQECAgIAA0sAMEgCQQCAPuuuR6n+ | ||
41 | EFQLgYucK4KrOmE2ZYvzc5+srHoVpxOPtMS6ow+8pViNzLGTMZ6BnowZYYb6UnNU | ||
42 | 0Zd2IufHn0HNAgMBAAGjgZcwgZQwHQYDVR0OBBYEFIr3yNUOx3ro1yJw4AuJ1bbs | ||
43 | ZbzPMA4GA1UdDwEB/wQEAwIB9jBSBgNVHREESzBJhipodHRwOi8vd3d3LmRhcm1z | ||
44 | dGFkdC5nbWQuZGUvaWNlLXRlbC9ldXJvY2GBG2ljZS10ZWwtY2FAZGFybXN0YWR0 | ||
45 | LmdtZC5kZTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBBAUAA0EAdmlh27fP | ||
46 | iwae2IyWU9JNqCOmA0TojySlwISoS3fULSt9N5Fn8izOAjFMa8zO8mimERGrfYi4 | ||
47 | fiKfJQZgvXkwPQ== | ||
48 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/ICE-user.pem b/src/lib/libssl/src/certs/ICE-user.pem new file mode 100644 index 0000000000..28065fd37d --- /dev/null +++ b/src/lib/libssl/src/certs/ICE-user.pem | |||
@@ -0,0 +1,63 @@ | |||
1 | Certificate: | ||
2 | Data: | ||
3 | Version: 3 (0x2) | ||
4 | Serial Number: 1 (0x1) | ||
5 | Signature Algorithm: md5WithRSAEncryption | ||
6 | Issuer: O=European ICE-TEL project, OU=V3-Certification Authority, L=Darmstadt | ||
7 | Validity | ||
8 | Not Before: Apr 2 17:35:59 1997 GMT | ||
9 | Not After : Apr 2 17:35:59 1998 GMT | ||
10 | Subject: O=European ICE-TEL project, OU=V3-Certification Authority, L=Darmstadt, CN=USER | ||
11 | Subject Public Key Info: | ||
12 | Public Key Algorithm: rsa | ||
13 | RSA Public Key: (512 bit) | ||
14 | Modulus (512 bit): | ||
15 | 00:a8:a8:53:63:49:1b:93:c3:c3:0b:6c:88:11:55: | ||
16 | de:7e:6a:e2:f9:52:a0:dc:69:25:c4:c8:bf:55:e1: | ||
17 | 31:a8:ce:e4:a9:29:85:99:8a:15:9a:de:f6:2f:e1: | ||
18 | b4:50:5f:5e:04:75:a6:f4:76:dc:3c:0e:39:dc:3a: | ||
19 | be:3e:a4:61:8b | ||
20 | Exponent: 65537 (0x10001) | ||
21 | X509v3 extensions: | ||
22 | X509v3 Authority Key Identifier: | ||
23 | 0...~r..:..B.44fu......3 | ||
24 | X509v3 Subject Key Identifier: | ||
25 | ...... .*...1.*....... | ||
26 | X509v3 Key Usage: critical | ||
27 | .... | ||
28 | X509v3 Certificate Policies: critical | ||
29 | 0.0...*...0....... | ||
30 | X509v3 Subject Alternative Name: | ||
31 | 0:..user@darmstadt.gmd.de.!http://www.darmstadt.gmd.de/~user | ||
32 | X509v3 Issuer Alternative Name: | ||
33 | 0....gmdca@gmd.de..http://www.gmd.de..saturn.darmstadt.gmd.de.\1!0...U. | ||
34 | ..European ICE-TEL project1#0!..U....V3-Certification Authority1.0...U....Darmstadt..141.12.62.26 | ||
35 | X509v3 Basic Constraints: critical | ||
36 | 0. | ||
37 | X509v3 CRL Distribution Points: | ||
38 | 0.0.......gmdca@gmd.de | ||
39 | Signature Algorithm: md5WithRSAEncryption | ||
40 | 69:0c:e1:b7:a7:f2:d8:fb:e8:69:c0:13:cd:37:ad:21:06:22: | ||
41 | 4d:e8:c6:db:f1:04:0b:b7:e0:b3:d6:0c:81:03:ce:c3:6a:3e: | ||
42 | c7:e7:24:24:a4:92:64:c2:83:83:06:42:53:0e:6f:09:1e:84: | ||
43 | 9a:f7:6f:63:9b:94:99:83:d6:a4 | ||
44 | -----BEGIN CERTIFICATE----- | ||
45 | MIIDTzCCAvmgAwIBAgIBATANBgkqhkiG9w0BAQQFADBcMSEwHwYDVQQKExhFdXJv | ||
46 | cGVhbiBJQ0UtVEVMIHByb2plY3QxIzAhBgNVBAsTGlYzLUNlcnRpZmljYXRpb24g | ||
47 | QXV0aG9yaXR5MRIwEAYDVQQHEwlEYXJtc3RhZHQwHhcNOTcwNDAyMTczNTU5WhcN | ||
48 | OTgwNDAyMTczNTU5WjBrMSEwHwYDVQQKExhFdXJvcGVhbiBJQ0UtVEVMIHByb2pl | ||
49 | Y3QxIzAhBgNVBAsTGlYzLUNlcnRpZmljYXRpb24gQXV0aG9yaXR5MRIwEAYDVQQH | ||
50 | EwlEYXJtc3RhZHQxDTALBgNVBAMTBFVTRVIwWTAKBgRVCAEBAgICAANLADBIAkEA | ||
51 | qKhTY0kbk8PDC2yIEVXefmri+VKg3GklxMi/VeExqM7kqSmFmYoVmt72L+G0UF9e | ||
52 | BHWm9HbcPA453Dq+PqRhiwIDAQABo4IBmDCCAZQwHwYDVR0jBBgwFoAUfnLy+DqG | ||
53 | nEKINDRmdcPU/NGiETMwHQYDVR0OBBYEFJfc4B8gjSoRmLUx4Sq/ucIYiMrPMA4G | ||
54 | A1UdDwEB/wQEAwIB8DAcBgNVHSABAf8EEjAQMAYGBCoDBAUwBgYECQgHBjBDBgNV | ||
55 | HREEPDA6gRV1c2VyQGRhcm1zdGFkdC5nbWQuZGWGIWh0dHA6Ly93d3cuZGFybXN0 | ||
56 | YWR0LmdtZC5kZS9+dXNlcjCBsQYDVR0SBIGpMIGmgQxnbWRjYUBnbWQuZGWGEWh0 | ||
57 | dHA6Ly93d3cuZ21kLmRlghdzYXR1cm4uZGFybXN0YWR0LmdtZC5kZaRcMSEwHwYD | ||
58 | VQQKExhFdXJvcGVhbiBJQ0UtVEVMIHByb2plY3QxIzAhBgNVBAsTGlYzLUNlcnRp | ||
59 | ZmljYXRpb24gQXV0aG9yaXR5MRIwEAYDVQQHEwlEYXJtc3RhZHSHDDE0MS4xMi42 | ||
60 | Mi4yNjAMBgNVHRMBAf8EAjAAMB0GA1UdHwQWMBQwEqAQoA6BDGdtZGNhQGdtZC5k | ||
61 | ZTANBgkqhkiG9w0BAQQFAANBAGkM4ben8tj76GnAE803rSEGIk3oxtvxBAu34LPW | ||
62 | DIEDzsNqPsfnJCSkkmTCg4MGQlMObwkehJr3b2OblJmD1qQ= | ||
63 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/ICE.crl b/src/lib/libssl/src/certs/ICE.crl new file mode 100644 index 0000000000..21939e8cc4 --- /dev/null +++ b/src/lib/libssl/src/certs/ICE.crl | |||
@@ -0,0 +1,9 @@ | |||
1 | -----BEGIN X509 CRL----- | ||
2 | MIIBNDCBnjANBgkqhkiG9w0BAQIFADBFMSEwHwYDVQQKExhFdXJvcGVhbiBJQ0Ut | ||
3 | VEVMIFByb2plY3QxIDAeBgNVBAsTF0NlcnRpZmljYXRpb24gQXV0aG9yaXR5Fw05 | ||
4 | NzA2MDkxNDQyNDNaFw05NzA3MDkxNDQyNDNaMCgwEgIBChcNOTcwMzAzMTQ0MjU0 | ||
5 | WjASAgEJFw05NjEwMDIxMjI5MjdaMA0GCSqGSIb3DQEBAgUAA4GBAH4vgWo2Tej/ | ||
6 | i7kbiw4Imd30If91iosjClNpBFwvwUDBclPEeMuYimHbLOk4H8Nofc0fw11+U/IO | ||
7 | KSNouUDcqG7B64oY7c4SXKn+i1MWOb5OJiWeodX3TehHjBlyWzoNMWCnYA8XqFP1 | ||
8 | mOKp8Jla1BibEZf14+/HqCi2hnZUiEXh | ||
9 | -----END X509 CRL----- | ||
diff --git a/src/lib/libssl/src/certs/ca-cert.pem b/src/lib/libssl/src/certs/ca-cert.pem new file mode 100644 index 0000000000..6dd974d70d --- /dev/null +++ b/src/lib/libssl/src/certs/ca-cert.pem | |||
@@ -0,0 +1,31 @@ | |||
1 | issuer= /C=AU/ST=Queensland/O=CryptSoft Pty Ltd/CN=Test PCA (1024 bit) | ||
2 | subject=/C=AU/ST=Queensland/O=CryptSoft Pty Ltd/CN=Test CA (1024 bit) | ||
3 | -----BEGIN CERTIFICATE----- | ||
4 | MIICJjCCAY8CAQAwDQYJKoZIhvcNAQEEBQAwXDELMAkGA1UEBhMCQVUxEzARBgNV | ||
5 | BAgTClF1ZWVuc2xhbmQxGjAYBgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMRwwGgYD | ||
6 | VQQDExNUZXN0IFBDQSAoMTAyNCBiaXQpMB4XDTk3MDYwOTEzNTc0M1oXDTAxMDYw | ||
7 | OTEzNTc0M1owWzELMAkGA1UEBhMCQVUxEzARBgNVBAgTClF1ZWVuc2xhbmQxGjAY | ||
8 | BgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMRswGQYDVQQDExJUZXN0IENBICgxMDI0 | ||
9 | IGJpdCkwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAKO7o8t116VP6cgybTsZ | ||
10 | DCZhr95nYlZuya3aCi1IKoztqwWnjbmDFIriOqGFPrZQ+moMETC9D59iRW/dFXSv | ||
11 | 1F65ka/XY2hLh9exCCo7XuUcDs53Qp3bI3AmMqHjgzE8oO3ajyJAzJkTTOUecQU2 | ||
12 | mw/gI4tMM0LqWMQS7luTy4+xAgMBAAEwDQYJKoZIhvcNAQEEBQADgYEAM7achv3v | ||
13 | hLQJcv/65eGEpBXM40ZDVoFQFFJWaY5p883HTqLB1x4FdzsXHH0QKBTcKpWwqyu4 | ||
14 | YDm3fb8oDugw72bCzfyZK/zVZPR/hVlqI/fvU109Qoc+7oPvIXWky71HfcK6ZBCA | ||
15 | q30KIqGM/uoM60INq97qjDmCJapagcNBGQs= | ||
16 | -----END CERTIFICATE----- | ||
17 | -----BEGIN RSA PRIVATE KEY----- | ||
18 | MIICXQIBAAKBgQCju6PLddelT+nIMm07GQwmYa/eZ2JWbsmt2gotSCqM7asFp425 | ||
19 | gxSK4jqhhT62UPpqDBEwvQ+fYkVv3RV0r9ReuZGv12NoS4fXsQgqO17lHA7Od0Kd | ||
20 | 2yNwJjKh44MxPKDt2o8iQMyZE0zlHnEFNpsP4COLTDNC6ljEEu5bk8uPsQIDAQAB | ||
21 | AoGAVZmpFZsDZfr0l2S9tLLwpjRWNOlKATQkno6q2WesT0eGLQufTciY+c8ypfU6 | ||
22 | hyio8r5iUl/VhhdjhAtKx1mRpiotftHo/eYf8rtsrnprOnWG0bWjLjtIoMbcxGn2 | ||
23 | J3bN6LJmbJMjDs0eJ3KnTu646F3nDUw2oGAwmpzKXA1KAP0CQQDRvQhxk2D3Pehs | ||
24 | HvG665u2pB5ipYQngEFlZO7RHJZzJOZEWSLuuMqaF/7pTfA5jiBvWqCgJeCRRInL | ||
25 | 21ru4dlPAkEAx9jj7BgKn5TYnMoBSSe0afjsV9oApVpN1Nacb1YDtCwy+scp3++s | ||
26 | nFxlv98wxIlSdpwMUn+AUWfjiWR7Tu/G/wJBAJ/KjwZIrFVxewP0x2ILYsTRYLzz | ||
27 | MS4PDsO7FB+I0i7DbBOifXS2oNSpd3I0CNMwrxFnUHzynpbOStVfN3ZL5w0CQQCa | ||
28 | pwFahxBRhkJKsxhjoFJBX9yl75JoY4Wvm5Tbo9ih6UJaRx3kqfkN14L2BKYcsZgb | ||
29 | KY9vmDOYy6iNfjDeWTfJAkBkfPUb8oTJ/nSP5zN6sqGxSY4krc4xLxpRmxoJ8HL2 | ||
30 | XfhqXkTzbU13RX9JJ/NZ8vQN9Vm2NhxRGJocQkmcdVtJ | ||
31 | -----END RSA PRIVATE KEY----- | ||
diff --git a/src/lib/libssl/src/certs/dsa-ca.pem b/src/lib/libssl/src/certs/dsa-ca.pem new file mode 100644 index 0000000000..9eb08f3ddd --- /dev/null +++ b/src/lib/libssl/src/certs/dsa-ca.pem | |||
@@ -0,0 +1,43 @@ | |||
1 | -----BEGIN DSA PRIVATE KEY----- | ||
2 | Proc-Type: 4,ENCRYPTED | ||
3 | DEK-Info: DES-EDE3-CBC,C5B6C7CC9E1FE2C0 | ||
4 | |||
5 | svCXBcBRhMuU22UXOfiKZA+thmz6KYXpt1Yg5Rd+TYQcQ1MdvNy0B0tkP1SxzDq0 | ||
6 | Xh1eMeTML9/9/0rKakgNXXXbpi5RB8t6BmwRSyej89F7nn1mtR3qzoyPRpp15SDl | ||
7 | Tn67C+2v+HDF3MFk88hiNCYkNbcmi7TWvChsl8N1r7wdZwtIox56yXdgxw6ZIpa/ | ||
8 | par0oUCzN7fiavPgCWz1kfPNSaBQSdxwH7TZi5tMHAr0J3C7a7QRnZfE09R59Uqr | ||
9 | zslrq+ndIw1BZAxoY0SlBu+iFOVaBVlwToC4AsHkv7j7l8ITtr7f42YbBa44D9TO | ||
10 | uOhONmkk/v3Fso4RaOEzdKZC+hnmmzvHs6TiTWm6yzJgSFwyOUK0eGmKEeVxpcH5 | ||
11 | rUOlHOwzen+FFtocZDZAfdFnb7QY7L/boQvyA5A+ZbRG4DUpmBQeQsSaICHM5Rxx | ||
12 | 1QaLF413VNPXTLPbW0ilSc2H8x2iZTIVKfd33oSO6NhXPtSYQgfecEF4BvNHY5c4 | ||
13 | HovjT4mckbK95bcBzoCHu43vuSQkmZzdYo/ydSZt6zoPavbBLueTpgSbdXiDi827 | ||
14 | MVqOsYxGCb+kez0FoDSTgw== | ||
15 | -----END DSA PRIVATE KEY----- | ||
16 | -----BEGIN CERTIFICATE REQUEST----- | ||
17 | MIICUjCCAhECAQAwUjELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUx | ||
18 | ITAfBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDELMAkGA1UEAxMCQ0Ew | ||
19 | ggG0MIIBKQYFKw4DAgwwggEeAoGBAKc/boW/QWopffCfRxkwkJoJHdpqMx7FPYaW | ||
20 | sxXgUy6P4FmCc5A+dTGZR3pS+4Xk2aZ7OJtoioSbh8YetX6GS1NbWc9xZRmIbs5m | ||
21 | rmuINvvsKNzC16W75Sw5JkvamnAYlTeVEFYj9hXtugRe3jlP/bdDH7WkZW/NgBHk | ||
22 | cJVbUM1JAhUA9wcx7fpsBgPVhYocrJxl51BmZW8CgYBN30wDppGK9RlvUEYlmeVo | ||
23 | bzDjaeHls12YuyiGSPzemQQ/X4gMnHMkDSBduSqaPxiWJ+Rih8F7dGJT/GEnqHqR | ||
24 | CZ228U2cVA9YBu5JdAfOVX4jzhb2ytxaYQF+yXG1TfbcNCmHaPZeIJOz2/XkCWxB | ||
25 | F5WS6wG1c6Vqftgy7Q4CuAOBhAACgYAapll6iqz9XrZFlk2GCVcB+KihxWnH7IuH | ||
26 | vSLw9YUrJahcBHmbpvt494lF4gC5w3WPM+vXJofbusk4GoQEEsQNMDaah4m49uUq | ||
27 | AylOVFJJJXuirVJ+o+0TtOFDITEAl+YZZariXOD7tdOSOl9RLMPC6+daHKS9e68u | ||
28 | 3enxhqnDGaAAMAkGBSsOAwIbBQADMAAwLQIVAJGVuFsG/0DBuSZ0jF7ypdU0/G0v | ||
29 | AhQfeF5BoMMDbX/kidUVpQ6gadPlZA== | ||
30 | -----END CERTIFICATE REQUEST----- | ||
31 | -----BEGIN CERTIFICATE----- | ||
32 | MIIBrjCCAWwCAQswCQYFKw4DAhsFADBTMQswCQYDVQQGEwJBVTETMBEGA1UECBMK | ||
33 | U29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMQww | ||
34 | CgYDVQQDEwNQQ0EwHhcNOTcwNjE1MDIxNDI5WhcNOTcwNzE1MDIxNDI5WjBSMQsw | ||
35 | CQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJu | ||
36 | ZXQgV2lkZ2l0cyBQdHkgTHRkMQswCQYDVQQDEwJDQTCBkjAJBgUrDgMCDAUAA4GE | ||
37 | AAKBgBqmWXqKrP1etkWWTYYJVwH4qKHFacfsi4e9IvD1hSslqFwEeZum+3j3iUXi | ||
38 | ALnDdY8z69cmh9u6yTgahAQSxA0wNpqHibj25SoDKU5UUkkle6KtUn6j7RO04UMh | ||
39 | MQCX5hllquJc4Pu105I6X1Esw8Lr51ocpL17ry7d6fGGqcMZMAkGBSsOAwIbBQAD | ||
40 | MQAwLgIVAJ4wtQsANPxHo7Q4IQZYsL12SKdbAhUAjJ9n38zxT+iai2164xS+LIfa | ||
41 | C1Q= | ||
42 | -----END CERTIFICATE----- | ||
43 | |||
diff --git a/src/lib/libssl/src/certs/dsa-pca.pem b/src/lib/libssl/src/certs/dsa-pca.pem new file mode 100644 index 0000000000..e3641ad47e --- /dev/null +++ b/src/lib/libssl/src/certs/dsa-pca.pem | |||
@@ -0,0 +1,49 @@ | |||
1 | -----BEGIN DSA PRIVATE KEY----- | ||
2 | Proc-Type: 4,ENCRYPTED | ||
3 | DEK-Info: DES-EDE3-CBC,F80EEEBEEA7386C4 | ||
4 | |||
5 | GZ9zgFcHOlnhPoiSbVi/yXc9mGoj44A6IveD4UlpSEUt6Xbse3Fr0KHIUyQ3oGnS | ||
6 | mClKoAp/eOTb5Frhto85SzdsxYtac+X1v5XwdzAMy2KowHVk1N8A5jmE2OlkNPNt | ||
7 | of132MNlo2cyIRYaa35PPYBGNCmUm7YcYS8O90YtkrQZZTf4+2C4kllhMcdkQwkr | ||
8 | FWSWC8YOQ7w0LHb4cX1FejHHom9Nd/0PN3vn3UyySvfOqoR7nbXkrpHXmPIr0hxX | ||
9 | RcF0aXcV/CzZ1/nfXWQf4o3+oD0T22SDoVcZY60IzI0oIc3pNCbDV3uKNmgekrFd | ||
10 | qOUJ+QW8oWp7oefRx62iBfIeC8DZunohMXaWAQCU0sLQOR4yEdeUCnzCSywe0bG1 | ||
11 | diD0KYaEe+Yub1BQH4aLsBgDjardgpJRTQLq0DUvw0/QGO1irKTJzegEDNVBKrVn | ||
12 | V4AHOKT1CUKqvGNRP1UnccUDTF6miOAtaj/qpzra7sSk7dkGBvIEeFoAg84kfh9h | ||
13 | hVvF1YyzC9bwZepruoqoUwke/WdNIR5ymOVZ/4Liw0JdIOcq+atbdRX08niqIRkf | ||
14 | dsZrUj4leo3zdefYUQ7w4N2Ns37yDFq7 | ||
15 | -----END DSA PRIVATE KEY----- | ||
16 | -----BEGIN CERTIFICATE REQUEST----- | ||
17 | MIICVTCCAhMCAQAwUzELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUx | ||
18 | ITAfBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEMMAoGA1UEAxMDUENB | ||
19 | MIIBtTCCASkGBSsOAwIMMIIBHgKBgQCnP26Fv0FqKX3wn0cZMJCaCR3aajMexT2G | ||
20 | lrMV4FMuj+BZgnOQPnUxmUd6UvuF5NmmezibaIqEm4fGHrV+hktTW1nPcWUZiG7O | ||
21 | Zq5riDb77Cjcwtelu+UsOSZL2ppwGJU3lRBWI/YV7boEXt45T/23Qx+1pGVvzYAR | ||
22 | 5HCVW1DNSQIVAPcHMe36bAYD1YWKHKycZedQZmVvAoGATd9MA6aRivUZb1BGJZnl | ||
23 | aG8w42nh5bNdmLsohkj83pkEP1+IDJxzJA0gXbkqmj8YlifkYofBe3RiU/xhJ6h6 | ||
24 | kQmdtvFNnFQPWAbuSXQHzlV+I84W9srcWmEBfslxtU323DQph2j2XiCTs9v15Als | ||
25 | QReVkusBtXOlan7YMu0OArgDgYUAAoGBAKbtuR5AdW+ICjCFe2ixjUiJJzM2IKwe | ||
26 | 6NZEMXg39+HQ1UTPTmfLZLps+rZfolHDXuRKMXbGFdSF0nXYzotPCzi7GauwEJTZ | ||
27 | yr27ZZjA1C6apGSQ9GzuwNvZ4rCXystVEagAS8OQ4H3D4dWS17Zg31ICb5o4E5r0 | ||
28 | z09o/Uz46u0VoAAwCQYFKw4DAhsFAAMxADAuAhUArRubTxsbIXy3AhtjQ943AbNB | ||
29 | nSICFQCu+g1iW3jwF+gOcbroD4S/ZcvB3w== | ||
30 | -----END CERTIFICATE REQUEST----- | ||
31 | -----BEGIN CERTIFICATE----- | ||
32 | MIIC0zCCApECAQAwCQYFKw4DAhsFADBTMQswCQYDVQQGEwJBVTETMBEGA1UECBMK | ||
33 | U29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMQww | ||
34 | CgYDVQQDEwNQQ0EwHhcNOTcwNjE0MjI1NDQ1WhcNOTcwNzE0MjI1NDQ1WjBTMQsw | ||
35 | CQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJu | ||
36 | ZXQgV2lkZ2l0cyBQdHkgTHRkMQwwCgYDVQQDEwNQQ0EwggG1MIIBKQYFKw4DAgww | ||
37 | ggEeAoGBAKc/boW/QWopffCfRxkwkJoJHdpqMx7FPYaWsxXgUy6P4FmCc5A+dTGZ | ||
38 | R3pS+4Xk2aZ7OJtoioSbh8YetX6GS1NbWc9xZRmIbs5mrmuINvvsKNzC16W75Sw5 | ||
39 | JkvamnAYlTeVEFYj9hXtugRe3jlP/bdDH7WkZW/NgBHkcJVbUM1JAhUA9wcx7fps | ||
40 | BgPVhYocrJxl51BmZW8CgYBN30wDppGK9RlvUEYlmeVobzDjaeHls12YuyiGSPze | ||
41 | mQQ/X4gMnHMkDSBduSqaPxiWJ+Rih8F7dGJT/GEnqHqRCZ228U2cVA9YBu5JdAfO | ||
42 | VX4jzhb2ytxaYQF+yXG1TfbcNCmHaPZeIJOz2/XkCWxBF5WS6wG1c6Vqftgy7Q4C | ||
43 | uAOBhQACgYEApu25HkB1b4gKMIV7aLGNSIknMzYgrB7o1kQxeDf34dDVRM9OZ8tk | ||
44 | umz6tl+iUcNe5EoxdsYV1IXSddjOi08LOLsZq7AQlNnKvbtlmMDULpqkZJD0bO7A | ||
45 | 29nisJfKy1URqABLw5DgfcPh1ZLXtmDfUgJvmjgTmvTPT2j9TPjq7RUwCQYFKw4D | ||
46 | AhsFAAMxADAuAhUAvtv6AkMolix1Jvy3UnVEIUqdCUICFQC+jq8P49mwrY9oJ24n | ||
47 | 5rKUjNBhSg== | ||
48 | -----END CERTIFICATE----- | ||
49 | |||
diff --git a/src/lib/libssl/src/certs/factory.pem b/src/lib/libssl/src/certs/factory.pem new file mode 100644 index 0000000000..8e28b391b2 --- /dev/null +++ b/src/lib/libssl/src/certs/factory.pem | |||
@@ -0,0 +1,15 @@ | |||
1 | -----BEGIN CERTIFICATE----- | ||
2 | MIICTTCCAbagAwIBAgIBADANBgkqhkiG9w0BAQQFADBMMQswCQYDVQQGEwJHQjEM | ||
3 | MAoGA1UEChMDVUNMMRgwFgYDVQQLEw9JQ0UtVEVMIFByb2plY3QxFTATBgNVBAMT | ||
4 | DFRydXN0RmFjdG9yeTAeFw05NzA0MjIxNDM5MTRaFw05ODA0MjIxNDM5MTRaMEwx | ||
5 | CzAJBgNVBAYTAkdCMQwwCgYDVQQKEwNVQ0wxGDAWBgNVBAsTD0lDRS1URUwgUHJv | ||
6 | amVjdDEVMBMGA1UEAxMMVHJ1c3RGYWN0b3J5MIGcMAoGBFUIAQECAgQAA4GNADCB | ||
7 | iQKBgQCEieR8NcXkUW1f0G6aC6u0i8q/98JqS6RxK5YmHIGKCkuTWAUjzLfUa4dt | ||
8 | U9igGCjTuxaDqlzEim+t/02pmiBZT9HaX++35MjQPUWmsChcYU5WyzGErXi+rQaw | ||
9 | zlwS73zM8qiPj/97lXYycWhgL0VaiDSPxRXEUdWoaGruom4mNQIDAQABo0IwQDAd | ||
10 | BgNVHQ4EFgQUHal1LZr7oVg5z6lYzrhTgZRCmcUwDgYDVR0PAQH/BAQDAgH2MA8G | ||
11 | A1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEAfaggfl6FZoioecjv0dq8 | ||
12 | /DXo/u11iMZvXn08gjX/zl2b4wtPbShOSY5FhkSm8GeySasz+/Nwb/uzfnIhokWi | ||
13 | lfPZHtlCWtXbIy/TN51eJyq04ceDCQDWvLC2enVg9KB+GJ34b5c5VaPRzq8MBxsA | ||
14 | S7ELuYGtmYgYm9NZOIr7yU0= | ||
15 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/nortelCA.pem b/src/lib/libssl/src/certs/nortelCA.pem new file mode 100644 index 0000000000..207f34ab3a --- /dev/null +++ b/src/lib/libssl/src/certs/nortelCA.pem | |||
@@ -0,0 +1,16 @@ | |||
1 | -----BEGIN CERTIFICATE----- | ||
2 | MIICajCCAdMCBDGA0QUwDQYJKoZIhvcNAQEEBQAwfTELMAkGA1UEBhMCQ2ExDzAN | ||
3 | BgNVBAcTBk5lcGVhbjEeMBwGA1UECxMVTm8gTGlhYmlsaXR5IEFjY2VwdGVkMR8w | ||
4 | HQYDVQQKExZGb3IgRGVtbyBQdXJwb3NlcyBPbmx5MRwwGgYDVQQDExNFbnRydXN0 | ||
5 | IERlbW8gV2ViIENBMB4XDTk2MDQyNjEzMzUwMVoXDTA2MDQyNjEzMzUwMVowfTEL | ||
6 | MAkGA1UEBhMCQ2ExDzANBgNVBAcTBk5lcGVhbjEeMBwGA1UECxMVTm8gTGlhYmls | ||
7 | aXR5IEFjY2VwdGVkMR8wHQYDVQQKExZGb3IgRGVtbyBQdXJwb3NlcyBPbmx5MRww | ||
8 | GgYDVQQDExNFbnRydXN0IERlbW8gV2ViIENBMIGdMA0GCSqGSIb3DQEBAQUAA4GL | ||
9 | ADCBhwKBgQCaroS7O1DA0hm4IefNYU1cx/nqOmzEnk291d1XqznDeF4wEgakbkCc | ||
10 | zTKxK791yNpXG5RmngqH7cygDRTHZJ6mfCRn0wGC+AI00F2vYTGqPGRQL1N3lZT0 | ||
11 | YDKFC0SQeMMjFIZ1aeQigroFQnHo0VB3zWIMpNkka8PY9lxHZAmWwQIBAzANBgkq | ||
12 | hkiG9w0BAQQFAAOBgQBAx0UMVA1s54lMQyXjMX5kj99FJN5itb8bK1Rk+cegPQPF | ||
13 | cWO9SEWyEjjBjIkjjzAwBkaEszFsNGxemxtXvwjIm1xEUMTVlPEWTs2qnDvAUA9W | ||
14 | YqhWbhH0toGT36236QAsqCZ76rbTRVSSX2BHyJwJMG2tCRv7kRJ//NIgxj3H4w== | ||
15 | -----END CERTIFICATE----- | ||
16 | |||
diff --git a/src/lib/libssl/src/certs/pca-cert.pem b/src/lib/libssl/src/certs/pca-cert.pem new file mode 100644 index 0000000000..140e9a6b43 --- /dev/null +++ b/src/lib/libssl/src/certs/pca-cert.pem | |||
@@ -0,0 +1,31 @@ | |||
1 | issuer= /C=AU/ST=Queensland/O=CryptSoft Pty Ltd/CN=Test PCA (1024 bit) | ||
2 | subject=/C=AU/ST=Queensland/O=CryptSoft Pty Ltd/CN=Test PCA (1024 bit) | ||
3 | -----BEGIN CERTIFICATE----- | ||
4 | MIICJzCCAZACAQAwDQYJKoZIhvcNAQEEBQAwXDELMAkGA1UEBhMCQVUxEzARBgNV | ||
5 | BAgTClF1ZWVuc2xhbmQxGjAYBgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMRwwGgYD | ||
6 | VQQDExNUZXN0IFBDQSAoMTAyNCBiaXQpMB4XDTk3MDYwOTEzNTczN1oXDTAxMDYw | ||
7 | OTEzNTczN1owXDELMAkGA1UEBhMCQVUxEzARBgNVBAgTClF1ZWVuc2xhbmQxGjAY | ||
8 | BgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMRwwGgYDVQQDExNUZXN0IFBDQSAoMTAy | ||
9 | NCBiaXQpMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCdoWk/3+WcMlfjIrkg | ||
10 | 40ketmnQaEogQe1LLcuOJV6rKfUSAsPgwgsabJ/wn8TxA1yy3eKJbFl3OiUXMRsp | ||
11 | 22Jp85PmemiDzyUIStwk72qhp1imbANZvlmlCFKiQrjUyuDfu4TABmn+kkt3vR1Y | ||
12 | BEOGt+IFye1UBVSATVdRJ2UVhwIDAQABMA0GCSqGSIb3DQEBBAUAA4GBABNA1u/S | ||
13 | Cg/LJZWb7GliiKJsvuhxlE4E5JxQF2zMub/CSNbF97//tYSyj96sxeFQxZXbcjm9 | ||
14 | xt6mr/xNLA4szNQMJ4P+L7b5e/jC5DSqlwS+CUYJgaFs/SP+qJoCSu1bR3IM9XWO | ||
15 | cRBpDmcBbYLkSyB92WURvsZ1LtjEcn+cdQVI | ||
16 | -----END CERTIFICATE----- | ||
17 | -----BEGIN RSA PRIVATE KEY----- | ||
18 | MIICXAIBAAKBgQCdoWk/3+WcMlfjIrkg40ketmnQaEogQe1LLcuOJV6rKfUSAsPg | ||
19 | wgsabJ/wn8TxA1yy3eKJbFl3OiUXMRsp22Jp85PmemiDzyUIStwk72qhp1imbANZ | ||
20 | vlmlCFKiQrjUyuDfu4TABmn+kkt3vR1YBEOGt+IFye1UBVSATVdRJ2UVhwIDAQAB | ||
21 | AoGAba4fTtuap5l7/8ZsbE7Z1O32KJY4ZcOZukLOLUUhXxXduT+FTgGWujc0/rgc | ||
22 | z9qYCLlNZHOouMYTgtSfYvuMuLZ11VIt0GYH+nRioLShE59Yy+zCRyC+gPigS1kz | ||
23 | xvo14AsOIPYV14Tk/SsHyq6E0eTk7VzaIE197giiINUERPECQQDSKmtPTh/lRKw7 | ||
24 | HSZSM0I1mFWn/1zqrAbontRQY5w98QWIOe5qmzYyFbPXYT3d9BzlsMyhgiRNoBbD | ||
25 | yvohSHXJAkEAwAHx6ezAZeWWzD5yXD36nyjpkVCw7Tk7TSmOceLJMWt1QcrCfqlS | ||
26 | xA5jjpQ6Z8suU5DdtWAryM2sAir1WisYzwJAd6Zcx56jvAQ3xcPXsE6scBTVFzrj | ||
27 | 7FqZ6E+cclPzfLQ+QQsyOBE7bpI6e/FJppY26XGZXo3YGzV8IGXrt40oOQJALETG | ||
28 | h86EFXo3qGOFbmsDy4pdP5nBERCu8X1xUCSfintiD4c2DInxgS5oGclnJeMcjTvL | ||
29 | QjQoJCX3UJCi/OUO1QJBAKgcDHWjMvt+l1pjJBsSEZ0HX9AAIIVx0RQmbFGS+F2Q | ||
30 | hhu5l77WnnZOQ9vvhV5u7NPCUF9nhU3jh60qWWO8mkc= | ||
31 | -----END RSA PRIVATE KEY----- | ||
diff --git a/src/lib/libssl/src/certs/rsa-cca.pem b/src/lib/libssl/src/certs/rsa-cca.pem new file mode 100644 index 0000000000..69f5c1c84c --- /dev/null +++ b/src/lib/libssl/src/certs/rsa-cca.pem | |||
@@ -0,0 +1,19 @@ | |||
1 | subject=/C=US/O=RSA Data Security, Inc./OU=Commercial Certification Authority | ||
2 | issuer= /C=US/O=RSA Data Security, Inc./OU=Commercial Certification Authority | ||
3 | notBefore=941104185834Z | ||
4 | notAfter =991103185834Z | ||
5 | -----BEGIN X509 CERTIFICATE----- | ||
6 | |||
7 | MIICIzCCAZACBQJBAAAWMA0GCSqGSIb3DQEBAgUAMFwxCzAJBgNVBAYTAlVTMSAw | ||
8 | HgYDVQQKExdSU0EgRGF0YSBTZWN1cml0eSwgSW5jLjErMCkGA1UECxMiQ29tbWVy | ||
9 | Y2lhbCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw05NDExMDQxODU4MzRaFw05 | ||
10 | OTExMDMxODU4MzRaMFwxCzAJBgNVBAYTAlVTMSAwHgYDVQQKExdSU0EgRGF0YSBT | ||
11 | ZWN1cml0eSwgSW5jLjErMCkGA1UECxMiQ29tbWVyY2lhbCBDZXJ0aWZpY2F0aW9u | ||
12 | IEF1dGhvcml0eTCBmzANBgkqhkiG9w0BAQEFAAOBiQAwgYUCfgCk+4Fie84QJ93o | ||
13 | 975sbsZwmdu41QUDaSiCnHJ/lj+O7Kwpkj+KFPhCdr69XQO5kNTQvAayUTNfxMK/ | ||
14 | touPmbZiImDd298ggrTKoi8tUO2UMt7gVY3UaOLgTNLNBRYulWZcYVI4HlGogqHE | ||
15 | 7yXpCuaLK44xZtn42f29O2nZ6wIDAQABMA0GCSqGSIb3DQEBAgUAA34AdrW2EP4j | ||
16 | 9/dZYkuwX5zBaLxJu7NJbyFHXSudVMQAKD+YufKKg5tgf+tQx6sFEC097TgCwaVI | ||
17 | 0v5loMC86qYjFmZsGySp8+x5NRhPJsjjr1BKx6cxa9B8GJ1Qv6km+iYrRpwUqbtb | ||
18 | MJhCKLVLU7tDCZJAuqiqWqTGtotXTcU= | ||
19 | -----END X509 CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/timCA.pem b/src/lib/libssl/src/certs/timCA.pem new file mode 100644 index 0000000000..9c8d5bf9c6 --- /dev/null +++ b/src/lib/libssl/src/certs/timCA.pem | |||
@@ -0,0 +1,16 @@ | |||
1 | Tims test GCI CA | ||
2 | |||
3 | -----BEGIN CERTIFICATE----- | ||
4 | MIIB8DCCAZoCAQAwDQYJKoZIhvcNAQEEBQAwgYIxCzAJBgNVBAYTAkFVMRMwEQYD | ||
5 | VQQIEwpRdWVlbnNsYW5kMREwDwYDVQQHEwhCcmlzYmFuZTEaMBgGA1UEChMRQ3J5 | ||
6 | cHRTb2Z0IFB0eSBMdGQxFDASBgNVBAsTC2RldmVsb3BtZW50MRkwFwYDVQQDExBD | ||
7 | cnlwdFNvZnQgRGV2IENBMB4XDTk3MDMyMjEzMzQwNFoXDTk4MDMyMjEzMzQwNFow | ||
8 | gYIxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpRdWVlbnNsYW5kMREwDwYDVQQHEwhC | ||
9 | cmlzYmFuZTEaMBgGA1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxFDASBgNVBAsTC2Rl | ||
10 | dmVsb3BtZW50MRkwFwYDVQQDExBDcnlwdFNvZnQgRGV2IENBMFwwDQYJKoZIhvcN | ||
11 | AQEBBQADSwAwSAJBAOAOAqogG5QwAmLhzyO4CoRnx/wVy4NZP4dxJy83O1EnL0rw | ||
12 | OdsamJKvPOLHgSXo3gDu9uVyvCf/QJmZAmC5ml8CAwEAATANBgkqhkiG9w0BAQQF | ||
13 | AANBADRRS/GVdd7rAqRW6SdmgLJduOU2yq3avBu99kRqbp9A/dLu6r6jU+eP4oOA | ||
14 | TfdbFZtAAD2Hx9jUtY3tfdrJOb8= | ||
15 | -----END CERTIFICATE----- | ||
16 | |||
diff --git a/src/lib/libssl/src/certs/tjhCA.pem b/src/lib/libssl/src/certs/tjhCA.pem new file mode 100644 index 0000000000..67bee1b200 --- /dev/null +++ b/src/lib/libssl/src/certs/tjhCA.pem | |||
@@ -0,0 +1,15 @@ | |||
1 | -----BEGIN CERTIFICATE----- | ||
2 | MIICVjCCAgACAQAwDQYJKoZIhvcNAQEEBQAwgbUxCzAJBgNVBAYTAkFVMRMwEQYD | ||
3 | VQQIEwpRdWVlbnNsYW5kMREwDwYDVQQHEwhCcmlzYmFuZTEaMBgGA1UEChMRQ3J5 | ||
4 | cHRTb2Z0IFB0eSBMdGQxLDAqBgNVBAsTI1dPUlRITEVTUyBDRVJUSUZJQ0FUSU9O | ||
5 | IEFVVEhPUklUSUVTMTQwMgYDVQQDEytaRVJPIFZBTFVFIENBIC0gREVNT05TVFJB | ||
6 | VElPTiBQVVJQT1NFUyBPTkxZMB4XDTk3MDQwMzEzMjI1NFoXDTk4MDQwMzEzMjI1 | ||
7 | NFowgbUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpRdWVlbnNsYW5kMREwDwYDVQQH | ||
8 | EwhCcmlzYmFuZTEaMBgGA1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxLDAqBgNVBAsT | ||
9 | I1dPUlRITEVTUyBDRVJUSUZJQ0FUSU9OIEFVVEhPUklUSUVTMTQwMgYDVQQDEyta | ||
10 | RVJPIFZBTFVFIENBIC0gREVNT05TVFJBVElPTiBQVVJQT1NFUyBPTkxZMFwwDQYJ | ||
11 | KoZIhvcNAQEBBQADSwAwSAJBAOZ7T7yqP/tyspcko3yPY1y0Cm2EmwNvzW4QgVXR | ||
12 | Fjs3HmJ4xtSpXdo6mwcGezL3Abt/aQXaxv9PU8xt+Jr0OFUCAwEAATANBgkqhkiG | ||
13 | 9w0BAQQFAANBAOQpYmGgyCqCy1OljgJhCqQOu627oVlHzK1L+t9vBaMfn40AVUR4 | ||
14 | WzQVWO31KTgi5vTK1U+3h46fgUWqQ0h+6rU= | ||
15 | -----END CERTIFICATE----- | ||
diff --git a/src/lib/libssl/src/certs/vsign2.pem b/src/lib/libssl/src/certs/vsign2.pem new file mode 100644 index 0000000000..2386e149d0 --- /dev/null +++ b/src/lib/libssl/src/certs/vsign2.pem | |||
@@ -0,0 +1,31 @@ | |||
1 | subject=/L=Internet/O=VeriSign, Inc./OU=VeriSign Class 2 CA - Individual Subscriber | ||
2 | issuer= /L=Internet/O=VeriSign, Inc./OU=VeriSign Class 2 CA - Individual Subscriber | ||
3 | |||
4 | -----BEGIN CERTIFICATE----- | ||
5 | MIIEkzCCA/ygAwIBAgIRANDTUpSRL3nTFeMrMayFSPAwDQYJKoZIhvcNAQECBQAw | ||
6 | YjERMA8GA1UEBxMISW50ZXJuZXQxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTQw | ||
7 | MgYDVQQLEytWZXJpU2lnbiBDbGFzcyAyIENBIC0gSW5kaXZpZHVhbCBTdWJzY3Jp | ||
8 | YmVyMB4XDTk2MDYwNDAwMDAwMFoXDTk4MDYwNDIzNTk1OVowYjERMA8GA1UEBxMI | ||
9 | SW50ZXJuZXQxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTQwMgYDVQQLEytWZXJp | ||
10 | U2lnbiBDbGFzcyAyIENBIC0gSW5kaXZpZHVhbCBTdWJzY3JpYmVyMIGfMA0GCSqG | ||
11 | SIb3DQEBAQUAA4GNADCBiQKBgQC6A+2czKGRcYMfm8gdnk+0de99TDDzsqo0v5nb | ||
12 | RsbUmMcdRQ7nsMbRWe0SAb/9QoLTZ/cJ0iOBqdrkz7UpqqKarVoTSdlSMVM92tWp | ||
13 | 3bJncZHQD1t4xd6lQVdI1/T6R+5J0T1ukOdsI9Jmf+F28S6g3R3L1SFwiHKeZKZv | ||
14 | z+793wIDAQABo4ICRzCCAkMwggIpBgNVHQMBAf8EggIdMIICGTCCAhUwggIRBgtg | ||
15 | hkgBhvhFAQcBATCCAgAWggGrVGhpcyBjZXJ0aWZpY2F0ZSBpbmNvcnBvcmF0ZXMg | ||
16 | YnkgcmVmZXJlbmNlLCBhbmQgaXRzIHVzZSBpcyBzdHJpY3RseSBzdWJqZWN0IHRv | ||
17 | LCB0aGUgVmVyaVNpZ24gQ2VydGlmaWNhdGlvbiBQcmFjdGljZSBTdGF0ZW1lbnQg | ||
18 | KENQUyksIGF2YWlsYWJsZSBhdDogaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL0NQ | ||
19 | Uy0xLjA7IGJ5IEUtbWFpbCBhdCBDUFMtcmVxdWVzdHNAdmVyaXNpZ24uY29tOyBv | ||
20 | ciBieSBtYWlsIGF0IFZlcmlTaWduLCBJbmMuLCAyNTkzIENvYXN0IEF2ZS4sIE1v | ||
21 | dW50YWluIFZpZXcsIENBIDk0MDQzIFVTQSBUZWwuICsxICg0MTUpIDk2MS04ODMw | ||
22 | IENvcHlyaWdodCAoYykgMTk5NiBWZXJpU2lnbiwgSW5jLiAgQWxsIFJpZ2h0cyBS | ||
23 | ZXNlcnZlZC4gQ0VSVEFJTiBXQVJSQU5USUVTIERJU0NMQUlNRUQgYW5kIExJQUJJ | ||
24 | TElUWSBMSU1JVEVELqAOBgxghkgBhvhFAQcBAQGhDgYMYIZIAYb4RQEHAQECMC8w | ||
25 | LRYraHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JlcG9zaXRvcnkvQ1BTLTEuMDAU | ||
26 | BglghkgBhvhCAQEBAf8EBAMCAgQwDQYJKoZIhvcNAQECBQADgYEApRJRkNBqLLgs | ||
27 | 53IR/d18ODdLOWMTZ+QOOxBrq460iBEdUwgF8vmPRX1ku7UiDeNzaLlurE6eFqHq | ||
28 | 2zPyK5j60zfTLVJMWKcQWwTJLjHtXrW8pxhNtFc6Fdvy5ZkHnC/9NIl7/t4U6WqB | ||
29 | p4y+p7SdMIkEwIZfds0VbnQyX5MRUJY= | ||
30 | -----END CERTIFICATE----- | ||
31 | |||
diff --git a/src/lib/libssl/src/crypto/Makefile.ssl b/src/lib/libssl/src/crypto/Makefile.ssl new file mode 100644 index 0000000000..efdbba38ac --- /dev/null +++ b/src/lib/libssl/src/crypto/Makefile.ssl | |||
@@ -0,0 +1,161 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= crypto | ||
6 | TOP= .. | ||
7 | CC= cc | ||
8 | INCLUDE= -I. -I../include | ||
9 | INCLUDES= -I.. -I../../include | ||
10 | CFLAG= -g | ||
11 | INSTALLTOP= /usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | RM= /bin/rm -f | ||
16 | AR= ar r | ||
17 | |||
18 | MAKE= make -f Makefile.ssl | ||
19 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
20 | MAKEFILE= Makefile.ssl | ||
21 | |||
22 | PEX_LIBS= | ||
23 | EX_LIBS= | ||
24 | |||
25 | CFLAGS= $(INCLUDE) $(CFLAG) -DCFLAGS=" \"$(CC) $(CFLAG)\" " | ||
26 | |||
27 | ERR=crypto | ||
28 | ERRC=cpt_err | ||
29 | |||
30 | LIBS= | ||
31 | |||
32 | SDIRS= md2 md5 sha mdc2 hmac ripemd \ | ||
33 | des rc2 rc4 rc5 idea bf cast \ | ||
34 | bn rsa dsa dh \ | ||
35 | buffer bio stack lhash rand err objects \ | ||
36 | evp pem x509 \ | ||
37 | asn1 conf txt_db pkcs7 | ||
38 | |||
39 | GENERAL=Makefile README | ||
40 | |||
41 | LIB= $(TOP)/libcrypto.a | ||
42 | LIBSRC= cryptlib.c mem.c cversion.c ex_data.c $(ERRC).c | ||
43 | LIBOBJ= cryptlib.o mem.o cversion.o ex_data.o $(ERRC).o | ||
44 | |||
45 | SRC= $(LIBSRC) | ||
46 | |||
47 | EXHEADER= crypto.h cryptall.h | ||
48 | HEADER= cryptlib.h date.h $(EXHEADER) | ||
49 | |||
50 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
51 | |||
52 | top: | ||
53 | @(cd ..; $(MAKE) DIRS=$(DIR) all) | ||
54 | |||
55 | all: date.h lib subdirs | ||
56 | |||
57 | date.h: ../Makefile.ssl ../VERSION | ||
58 | echo "#define DATE \"`date`\"" >date.h | ||
59 | |||
60 | subdirs: | ||
61 | @for i in $(SDIRS) ;\ | ||
62 | do \ | ||
63 | (cd $$i; echo "making all in $$i..."; \ | ||
64 | $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_MULW='${BN_MULW}' DES_ENC='${DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' all ); \ | ||
65 | done; | ||
66 | |||
67 | files: | ||
68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
69 | @for i in $(SDIRS) ;\ | ||
70 | do \ | ||
71 | (cd $$i; echo "making 'files' in $$i..."; \ | ||
72 | $(MAKE) files ); \ | ||
73 | done; | ||
74 | |||
75 | links: | ||
76 | /bin/rm -f Makefile | ||
77 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
78 | $(TOP)/util/mklink.sh ../include $(HEADER) ; | ||
79 | $(TOP)/util/mklink.sh ../test $(TEST) ; | ||
80 | $(TOP)/util/mklink.sh ../apps $(APPS) ; | ||
81 | $(TOP)/util/point.sh Makefile.ssl Makefile; | ||
82 | @for i in $(SDIRS) ;\ | ||
83 | do \ | ||
84 | (cd $$i; echo "making links in $$i..."; \ | ||
85 | $(MAKE) links ); \ | ||
86 | done; | ||
87 | |||
88 | lib: $(LIBOBJ) | ||
89 | $(AR) $(LIB) $(LIBOBJ) | ||
90 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
91 | @touch lib | ||
92 | |||
93 | libs: | ||
94 | @for i in $(SDIRS) ;\ | ||
95 | do \ | ||
96 | (cd $$i; echo "making libs in $$i..."; \ | ||
97 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' lib ); \ | ||
98 | done; | ||
99 | |||
100 | tests: | ||
101 | @for i in $(SDIRS) ;\ | ||
102 | do \ | ||
103 | (cd $$i; echo "making tests in $$i..."; \ | ||
104 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' tests ); \ | ||
105 | done; | ||
106 | |||
107 | install: | ||
108 | @for i in $(EXHEADER) ;\ | ||
109 | do \ | ||
110 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
111 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
112 | done; | ||
113 | @for i in $(SDIRS) ;\ | ||
114 | do \ | ||
115 | (cd $$i; echo "making install in $$i..."; \ | ||
116 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' install ); \ | ||
117 | done; | ||
118 | |||
119 | lint: | ||
120 | @for i in $(SDIRS) ;\ | ||
121 | do \ | ||
122 | (cd $$i; echo "making lint in $$i..."; \ | ||
123 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' lint ); \ | ||
124 | done; | ||
125 | |||
126 | depend: | ||
127 | $(MAKEDEPEND) $(INCLUDE) $(PROGS) $(LIBSRC) | ||
128 | @for i in $(SDIRS) ;\ | ||
129 | do \ | ||
130 | (cd $$i; echo "making depend in $$i..."; \ | ||
131 | $(MAKE) MAKEFILE='${MAKEFILE}' INCLUDES='${INCLUDES}' MAKEDEPEND='${MAKEDEPEND}' depend ); \ | ||
132 | done; | ||
133 | |||
134 | clean: | ||
135 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
136 | @for i in $(SDIRS) ;\ | ||
137 | do \ | ||
138 | (cd $$i; echo "making clean in $$i..."; \ | ||
139 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' clean ); \ | ||
140 | done; | ||
141 | |||
142 | dclean: | ||
143 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
144 | mv -f Makefile.new $(MAKEFILE) | ||
145 | @for i in $(SDIRS) ;\ | ||
146 | do \ | ||
147 | (cd $$i; echo "making dclean in $$i..."; \ | ||
148 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' dclean ); \ | ||
149 | done; | ||
150 | |||
151 | errors: | ||
152 | perl ./err/err_code.pl -conf err/ssleay.ec *.c */*.c ../ssl/*.c ../rsaref/*.c | ||
153 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
154 | perl err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
155 | @for i in $(SDIRS) ;\ | ||
156 | do \ | ||
157 | (cd $$i; echo "making errors in $$i..."; \ | ||
158 | $(MAKE) errors ); \ | ||
159 | done; | ||
160 | |||
161 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/asn1/Makefile.ssl b/src/lib/libssl/src/crypto/asn1/Makefile.ssl new file mode 100644 index 0000000000..30751bd156 --- /dev/null +++ b/src/lib/libssl/src/crypto/asn1/Makefile.ssl | |||
@@ -0,0 +1,120 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/asn1/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= asn1 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=asn1 | ||
19 | ERRC=asn1_err | ||
20 | GENERAL=Makefile README | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= a_object.c a_bitstr.c a_utctm.c a_int.c a_octet.c a_print.c \ | ||
26 | a_type.c a_set.c a_dup.c a_d2i_fp.c a_i2d_fp.c \ | ||
27 | a_sign.c a_digest.c a_verify.c \ | ||
28 | x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.c \ | ||
29 | x_name.c x_cinf.c x_x509.c x_crl.c x_info.c x_spki.c \ | ||
30 | d2i_r_pr.c i2d_r_pr.c d2i_r_pu.c i2d_r_pu.c \ | ||
31 | d2i_s_pr.c i2d_s_pr.c d2i_s_pu.c i2d_s_pu.c \ | ||
32 | d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c\ | ||
33 | t_req.c t_x509.c t_pkey.c \ | ||
34 | p7_i_s.c p7_signi.c p7_signd.c p7_recip.c p7_enc_c.c p7_evp.c \ | ||
35 | p7_dgst.c p7_s_e.c p7_enc.c p7_lib.c \ | ||
36 | f_int.c f_string.c i2d_dhp.c i2d_dsap.c d2i_dhp.c d2i_dsap.c n_pkey.c \ | ||
37 | a_hdr.c x_pkey.c a_bool.c x_exten.c \ | ||
38 | asn1_par.c asn1_lib.c $(ERRC).c a_meth.c a_bytes.c \ | ||
39 | evp_asn1.c | ||
40 | LIBOBJ= a_object.o a_bitstr.o a_utctm.o a_int.o a_octet.o a_print.o \ | ||
41 | a_type.o a_set.o a_dup.o a_d2i_fp.o a_i2d_fp.o \ | ||
42 | a_sign.o a_digest.o a_verify.o \ | ||
43 | x_algor.o x_val.o x_pubkey.o x_sig.o x_req.o x_attrib.o \ | ||
44 | x_name.o x_cinf.o x_x509.o x_crl.o x_info.o x_spki.o \ | ||
45 | d2i_r_pr.o i2d_r_pr.o d2i_r_pu.o i2d_r_pu.o \ | ||
46 | d2i_s_pr.o i2d_s_pr.o d2i_s_pu.o i2d_s_pu.o \ | ||
47 | d2i_pu.o d2i_pr.o i2d_pu.o i2d_pr.o \ | ||
48 | t_req.o t_x509.o t_pkey.o \ | ||
49 | p7_i_s.o p7_signi.o p7_signd.o p7_recip.o p7_enc_c.o p7_evp.o \ | ||
50 | p7_dgst.o p7_s_e.o p7_enc.o p7_lib.o \ | ||
51 | f_int.o f_string.o i2d_dhp.o i2d_dsap.o d2i_dhp.o d2i_dsap.o n_pkey.o \ | ||
52 | a_hdr.o x_pkey.o a_bool.o x_exten.o \ | ||
53 | asn1_par.o asn1_lib.o $(ERRC).o a_meth.o a_bytes.o \ | ||
54 | evp_asn1.o | ||
55 | |||
56 | SRC= $(LIBSRC) | ||
57 | |||
58 | EXHEADER= asn1.h asn1_mac.h | ||
59 | HEADER= $(EXHEADER) | ||
60 | |||
61 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
62 | |||
63 | top: | ||
64 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
65 | |||
66 | test: test.c | ||
67 | cc -g -I../../include -c test.c | ||
68 | cc -g -I../../include -o test test.o -L../.. -lcrypto | ||
69 | |||
70 | pk: pk.c | ||
71 | cc -g -I../../include -c pk.c | ||
72 | cc -g -I../../include -o pk pk.o -L../.. -lcrypto | ||
73 | |||
74 | all: lib | ||
75 | |||
76 | lib: $(LIBOBJ) | ||
77 | $(AR) $(LIB) $(LIBOBJ) | ||
78 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
79 | @touch lib | ||
80 | |||
81 | files: | ||
82 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
83 | |||
84 | links: | ||
85 | /bin/rm -f Makefile | ||
86 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
87 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
88 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
89 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
90 | |||
91 | install: | ||
92 | @for i in $(EXHEADER) ; \ | ||
93 | do \ | ||
94 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
95 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
96 | done; | ||
97 | |||
98 | tags: | ||
99 | ctags $(SRC) | ||
100 | |||
101 | tests: | ||
102 | |||
103 | lint: | ||
104 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
105 | |||
106 | depend: | ||
107 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
108 | |||
109 | dclean: | ||
110 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
111 | mv -f Makefile.new $(MAKEFILE) | ||
112 | |||
113 | clean: | ||
114 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
115 | |||
116 | errors: | ||
117 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
118 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
119 | |||
120 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/asn1/f.c b/src/lib/libssl/src/crypto/asn1/f.c new file mode 100644 index 0000000000..2ab3a262ac --- /dev/null +++ b/src/lib/libssl/src/crypto/asn1/f.c | |||
@@ -0,0 +1,80 @@ | |||
1 | /* crypto/asn1/f.c */ | ||
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 | #include <stdio.h> | ||
59 | #include "asn1.h" | ||
60 | #include "err.h" | ||
61 | |||
62 | main() | ||
63 | { | ||
64 | ASN1_TYPE *at; | ||
65 | char buf[512]; | ||
66 | int n; | ||
67 | long l; | ||
68 | |||
69 | at=ASN1_TYPE_new(); | ||
70 | |||
71 | n=ASN1_TYPE_set_int_octetstring(at,98736,"01234567",8); | ||
72 | printf("%d\n",n); | ||
73 | n=ASN1_TYPE_get_int_octetstring(at,&l,buf,8); | ||
74 | buf[8]='\0'; | ||
75 | printf("%ld %d %d\n",l,n,buf[8]); | ||
76 | buf[8]='\0'; | ||
77 | printf("%s\n",buf); | ||
78 | ERR_load_crypto_strings(); | ||
79 | ERR_print_errors_fp(stderr); | ||
80 | } | ||
diff --git a/src/lib/libssl/src/crypto/asn1/x_cinf.c b/src/lib/libssl/src/crypto/asn1/x_cinf.c new file mode 100644 index 0000000000..4fc2cc9f6e --- /dev/null +++ b/src/lib/libssl/src/crypto/asn1/x_cinf.c | |||
@@ -0,0 +1,197 @@ | |||
1 | /* crypto/asn1/x_cinf.c */ | ||
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 | #include <stdio.h> | ||
60 | #include "cryptlib.h" | ||
61 | #include "asn1_mac.h" | ||
62 | |||
63 | /* | ||
64 | * ASN1err(ASN1_F_D2I_X509_CINF,ASN1_R_LENGTH_MISMATCH); | ||
65 | * ASN1err(ASN1_F_X509_CINF_NEW,ASN1_R_LENGTH_MISMATCH); | ||
66 | */ | ||
67 | |||
68 | int i2d_X509_CINF(a,pp) | ||
69 | X509_CINF *a; | ||
70 | unsigned char **pp; | ||
71 | { | ||
72 | int v1=0,v2=0; | ||
73 | M_ASN1_I2D_vars(a); | ||
74 | |||
75 | M_ASN1_I2D_len_EXP_opt(a->version,i2d_ASN1_INTEGER,0,v1); | ||
76 | M_ASN1_I2D_len(a->serialNumber, i2d_ASN1_INTEGER); | ||
77 | M_ASN1_I2D_len(a->signature, i2d_X509_ALGOR); | ||
78 | M_ASN1_I2D_len(a->issuer, i2d_X509_NAME); | ||
79 | M_ASN1_I2D_len(a->validity, i2d_X509_VAL); | ||
80 | M_ASN1_I2D_len(a->subject, i2d_X509_NAME); | ||
81 | M_ASN1_I2D_len(a->key, i2d_X509_PUBKEY); | ||
82 | M_ASN1_I2D_len_IMP_opt(a->issuerUID, i2d_ASN1_BIT_STRING); | ||
83 | M_ASN1_I2D_len_IMP_opt(a->subjectUID, i2d_ASN1_BIT_STRING); | ||
84 | M_ASN1_I2D_len_EXP_set_opt(a->extensions,i2d_X509_EXTENSION,3,V_ASN1_SEQUENCE,v2); | ||
85 | |||
86 | M_ASN1_I2D_seq_total(); | ||
87 | |||
88 | M_ASN1_I2D_put_EXP_opt(a->version,i2d_ASN1_INTEGER,0,v1); | ||
89 | M_ASN1_I2D_put(a->serialNumber, i2d_ASN1_INTEGER); | ||
90 | M_ASN1_I2D_put(a->signature, i2d_X509_ALGOR); | ||
91 | M_ASN1_I2D_put(a->issuer, i2d_X509_NAME); | ||
92 | M_ASN1_I2D_put(a->validity, i2d_X509_VAL); | ||
93 | M_ASN1_I2D_put(a->subject, i2d_X509_NAME); | ||
94 | M_ASN1_I2D_put(a->key, i2d_X509_PUBKEY); | ||
95 | M_ASN1_I2D_put_IMP_opt(a->issuerUID, i2d_ASN1_BIT_STRING,1); | ||
96 | M_ASN1_I2D_put_IMP_opt(a->subjectUID, i2d_ASN1_BIT_STRING,2); | ||
97 | M_ASN1_I2D_put_EXP_set_opt(a->extensions,i2d_X509_EXTENSION,3,V_ASN1_SEQUENCE,v2); | ||
98 | |||
99 | M_ASN1_I2D_finish(); | ||
100 | } | ||
101 | |||
102 | X509_CINF *d2i_X509_CINF(a,pp,length) | ||
103 | X509_CINF **a; | ||
104 | unsigned char **pp; | ||
105 | long length; | ||
106 | { | ||
107 | int ver=0; | ||
108 | M_ASN1_D2I_vars(a,X509_CINF *,X509_CINF_new); | ||
109 | |||
110 | M_ASN1_D2I_Init(); | ||
111 | M_ASN1_D2I_start_sequence(); | ||
112 | /* we have the optional version field */ | ||
113 | if (M_ASN1_next == (V_ASN1_CONTEXT_SPECIFIC | V_ASN1_CONSTRUCTED | 0)) | ||
114 | { | ||
115 | M_ASN1_D2I_get_EXP_opt(ret->version,d2i_ASN1_INTEGER,0); | ||
116 | if (ret->version->data != NULL) | ||
117 | ver=ret->version->data[0]; | ||
118 | } | ||
119 | else | ||
120 | { | ||
121 | if (ret->version != NULL) | ||
122 | { | ||
123 | ASN1_INTEGER_free(ret->version); | ||
124 | ret->version=NULL; | ||
125 | } | ||
126 | } | ||
127 | M_ASN1_D2I_get(ret->serialNumber,d2i_ASN1_INTEGER); | ||
128 | M_ASN1_D2I_get(ret->signature,d2i_X509_ALGOR); | ||
129 | M_ASN1_D2I_get(ret->issuer,d2i_X509_NAME); | ||
130 | M_ASN1_D2I_get(ret->validity,d2i_X509_VAL); | ||
131 | M_ASN1_D2I_get(ret->subject,d2i_X509_NAME); | ||
132 | M_ASN1_D2I_get(ret->key,d2i_X509_PUBKEY); | ||
133 | if (ver >= 1) /* version 2 extensions */ | ||
134 | { | ||
135 | if (ret->issuerUID != NULL) | ||
136 | { | ||
137 | ASN1_BIT_STRING_free(ret->issuerUID); | ||
138 | ret->issuerUID=NULL; | ||
139 | } | ||
140 | if (ret->subjectUID != NULL) | ||
141 | { | ||
142 | ASN1_BIT_STRING_free(ret->subjectUID); | ||
143 | ret->issuerUID=NULL; | ||
144 | } | ||
145 | M_ASN1_D2I_get_IMP_opt(ret->issuerUID,d2i_ASN1_BIT_STRING, 1, | ||
146 | V_ASN1_BIT_STRING); | ||
147 | M_ASN1_D2I_get_IMP_opt(ret->subjectUID,d2i_ASN1_BIT_STRING, 2, | ||
148 | V_ASN1_BIT_STRING); | ||
149 | } | ||
150 | if (ver >= 2) /* version 3 extensions */ | ||
151 | { | ||
152 | if (ret->extensions != NULL) | ||
153 | while (sk_num(ret->extensions)) | ||
154 | X509_EXTENSION_free((X509_EXTENSION *) | ||
155 | sk_pop(ret->extensions)); | ||
156 | M_ASN1_D2I_get_EXP_set_opt(ret->extensions,d2i_X509_EXTENSION,3, | ||
157 | V_ASN1_SEQUENCE); | ||
158 | } | ||
159 | M_ASN1_D2I_Finish(a,X509_CINF_free,ASN1_F_D2I_X509_CINF); | ||
160 | } | ||
161 | |||
162 | X509_CINF *X509_CINF_new() | ||
163 | { | ||
164 | X509_CINF *ret=NULL; | ||
165 | |||
166 | M_ASN1_New_Malloc(ret,X509_CINF); | ||
167 | ret->version=NULL; | ||
168 | M_ASN1_New(ret->serialNumber,ASN1_INTEGER_new); | ||
169 | M_ASN1_New(ret->signature,X509_ALGOR_new); | ||
170 | M_ASN1_New(ret->issuer,X509_NAME_new); | ||
171 | M_ASN1_New(ret->validity,X509_VAL_new); | ||
172 | M_ASN1_New(ret->subject,X509_NAME_new); | ||
173 | M_ASN1_New(ret->key,X509_PUBKEY_new); | ||
174 | ret->issuerUID=NULL; | ||
175 | ret->subjectUID=NULL; | ||
176 | ret->extensions=NULL; | ||
177 | return(ret); | ||
178 | M_ASN1_New_Error(ASN1_F_X509_CINF_NEW); | ||
179 | } | ||
180 | |||
181 | void X509_CINF_free(a) | ||
182 | X509_CINF *a; | ||
183 | { | ||
184 | if (a == NULL) return; | ||
185 | ASN1_INTEGER_free(a->version); | ||
186 | ASN1_INTEGER_free(a->serialNumber); | ||
187 | X509_ALGOR_free(a->signature); | ||
188 | X509_NAME_free(a->issuer); | ||
189 | X509_VAL_free(a->validity); | ||
190 | X509_NAME_free(a->subject); | ||
191 | X509_PUBKEY_free(a->key); | ||
192 | ASN1_BIT_STRING_free(a->issuerUID); | ||
193 | ASN1_BIT_STRING_free(a->subjectUID); | ||
194 | sk_pop_free(a->extensions,X509_EXTENSION_free); | ||
195 | Free((char *)a); | ||
196 | } | ||
197 | |||
diff --git a/src/lib/libssl/src/crypto/bf/Makefile.ssl b/src/lib/libssl/src/crypto/bf/Makefile.ssl new file mode 100644 index 0000000000..236671f238 --- /dev/null +++ b/src/lib/libssl/src/crypto/bf/Makefile.ssl | |||
@@ -0,0 +1,107 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/blowfish/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= bf | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | |||
17 | BF_ENC= bf_enc.o | ||
18 | # or use | ||
19 | #DES_ENC= bx86-elf.o | ||
20 | |||
21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
22 | |||
23 | GENERAL=Makefile | ||
24 | TEST=bftest.c | ||
25 | APPS= | ||
26 | |||
27 | LIB=$(TOP)/libcrypto.a | ||
28 | LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c | ||
29 | LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o | ||
30 | |||
31 | SRC= $(LIBSRC) | ||
32 | |||
33 | EXHEADER= blowfish.h | ||
34 | HEADER= bf_pi.h bf_locl.h $(EXHEADER) | ||
35 | |||
36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
37 | |||
38 | top: | ||
39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
40 | |||
41 | all: lib | ||
42 | |||
43 | lib: $(LIBOBJ) | ||
44 | $(AR) $(LIB) $(LIBOBJ) | ||
45 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
46 | @touch lib | ||
47 | |||
48 | # elf | ||
49 | asm/bx86-elf.o: asm/bx86unix.cpp | ||
50 | $(CPP) -DELF asm/bx86unix.cpp | as -o asm/bx86-elf.o | ||
51 | |||
52 | # solaris | ||
53 | asm/bx86-sol.o: asm/bx86unix.cpp | ||
54 | $(CC) -E -DSOL asm/bx86unix.cpp | sed 's/^#.*//' > asm/bx86-sol.s | ||
55 | as -o asm/bx86-sol.o asm/bx86-sol.s | ||
56 | rm -f asm/bx86-sol.s | ||
57 | |||
58 | # a.out | ||
59 | asm/bx86-out.o: asm/bx86unix.cpp | ||
60 | $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o | ||
61 | |||
62 | # bsdi | ||
63 | asm/bx86bsdi.o: asm/bx86unix.cpp | ||
64 | $(CPP) -DBSDI asm/bx86unix.cpp | as -o asm/bx86bsdi.o | ||
65 | |||
66 | asm/bx86unix.cpp: | ||
67 | (cd asm; perl bf-586.pl cpp >bx86unix.cpp) | ||
68 | |||
69 | files: | ||
70 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
71 | |||
72 | links: | ||
73 | /bin/rm -f Makefile | ||
74 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
75 | $(TOP)/util/point.sh ../../doc/blowfish.doc blowfish.doc ; | ||
76 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
77 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
78 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
79 | |||
80 | install: | ||
81 | @for i in $(EXHEADER) ; \ | ||
82 | do \ | ||
83 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
84 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
85 | done; | ||
86 | |||
87 | tags: | ||
88 | ctags $(SRC) | ||
89 | |||
90 | tests: | ||
91 | |||
92 | lint: | ||
93 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
94 | |||
95 | depend: | ||
96 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
97 | |||
98 | dclean: | ||
99 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
100 | mv -f Makefile.new $(MAKEFILE) | ||
101 | |||
102 | clean: | ||
103 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
104 | |||
105 | errors: | ||
106 | |||
107 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/bio/Makefile.ssl b/src/lib/libssl/src/crypto/bio/Makefile.ssl new file mode 100644 index 0000000000..42e11e1c94 --- /dev/null +++ b/src/lib/libssl/src/crypto/bio/Makefile.ssl | |||
@@ -0,0 +1,92 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/bio/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= bio | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=bio | ||
19 | ERRC=bio_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= bio_lib.c bio_cb.c $(ERRC).c \ | ||
26 | bss_mem.c bss_null.c bss_fd.c \ | ||
27 | bss_file.c bss_sock.c bss_conn.c \ | ||
28 | bf_null.c bf_buff.c b_print.c b_dump.c \ | ||
29 | b_sock.c bss_acpt.c bf_nbio.c | ||
30 | LIBOBJ= bio_lib.o bio_cb.o $(ERRC).o \ | ||
31 | bss_mem.o bss_null.o bss_fd.o \ | ||
32 | bss_file.o bss_sock.o bss_conn.o \ | ||
33 | bf_null.o bf_buff.o b_print.o b_dump.o \ | ||
34 | b_sock.o bss_acpt.o bf_nbio.o | ||
35 | |||
36 | SRC= $(LIBSRC) | ||
37 | |||
38 | EXHEADER= bio.h bss_file.c | ||
39 | HEADER= $(EXHEADER) | ||
40 | |||
41 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
42 | |||
43 | top: | ||
44 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
45 | |||
46 | all: lib | ||
47 | |||
48 | lib: $(LIBOBJ) | ||
49 | $(AR) $(LIB) $(LIBOBJ) | ||
50 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
51 | @touch lib | ||
52 | |||
53 | files: | ||
54 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
55 | |||
56 | links: | ||
57 | /bin/rm -f Makefile | ||
58 | $(TOP)/util/point.sh Makefile.ssl Makefile; | ||
59 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
60 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
61 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
62 | |||
63 | install: | ||
64 | @for i in $(EXHEADER) bss_file.c ; \ | ||
65 | do \ | ||
66 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
67 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
68 | done; | ||
69 | |||
70 | tags: | ||
71 | ctags $(SRC) | ||
72 | |||
73 | tests: | ||
74 | |||
75 | lint: | ||
76 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
77 | |||
78 | depend: | ||
79 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
80 | |||
81 | dclean: | ||
82 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
83 | mv -f Makefile.new $(MAKEFILE) | ||
84 | |||
85 | clean: | ||
86 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
87 | |||
88 | errors: | ||
89 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
90 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
91 | |||
92 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/bn/Makefile.ssl b/src/lib/libssl/src/crypto/bn/Makefile.ssl new file mode 100644 index 0000000000..9809d26cbc --- /dev/null +++ b/src/lib/libssl/src/crypto/bn/Makefile.ssl | |||
@@ -0,0 +1,133 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/bn/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= bn | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | BN_MULW= bn_mulw.o | ||
17 | # or use | ||
18 | #BN_MULW= bn86-elf.o | ||
19 | |||
20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
21 | |||
22 | ERR=bn | ||
23 | ERRC=bn_err | ||
24 | GENERAL=Makefile | ||
25 | TEST=bntest.c exptest.c | ||
26 | APPS= | ||
27 | |||
28 | LIB=$(TOP)/libcrypto.a | ||
29 | LIBSRC= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_mod.c bn_mul.c \ | ||
30 | bn_print.c bn_rand.c bn_shift.c bn_sub.c bn_word.c bn_blind.c \ | ||
31 | bn_gcd.c bn_prime.c $(ERRC).c bn_sqr.c bn_mulw.c bn_recp.c bn_mont.c \ | ||
32 | bn_mpi.c | ||
33 | |||
34 | LIBOBJ= bn_add.o bn_div.o bn_exp.o bn_lib.o bn_mod.o bn_mul.o \ | ||
35 | bn_print.o bn_rand.o bn_shift.o bn_sub.o bn_word.o bn_blind.o \ | ||
36 | bn_gcd.o bn_prime.o $(ERRC).o bn_sqr.o $(BN_MULW) bn_recp.o bn_mont.o \ | ||
37 | bn_mpi.o | ||
38 | |||
39 | |||
40 | SRC= $(LIBSRC) | ||
41 | |||
42 | EXHEADER= bn.h | ||
43 | HEADER= bn_lcl.h bn_prime.h $(EXHEADER) | ||
44 | |||
45 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
46 | |||
47 | top: | ||
48 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
49 | |||
50 | all: lib | ||
51 | |||
52 | knuth: bn_knuth.c | ||
53 | cc -pg -I.. -I../../include bn_knuth.c -o knuth $(LIB) #../../../libefence.a | ||
54 | |||
55 | knuth.fast: bn_knuth.c | ||
56 | cc -pg -fast -I.. -I../../include bn_knuth.c -o knuth $(LIB) #../../../libefence.a | ||
57 | |||
58 | |||
59 | lib: $(LIBOBJ) | ||
60 | $(AR) $(LIB) $(LIBOBJ) | ||
61 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
62 | @touch lib | ||
63 | |||
64 | # elf | ||
65 | asm/bn86-elf.o: asm/bn86unix.cpp | ||
66 | $(CPP) -DELF asm/bn86unix.cpp | as -o asm/bn86-elf.o | ||
67 | |||
68 | # solaris | ||
69 | asm/bn86-sol.o: asm/bn86unix.cpp | ||
70 | $(CC) -E -DSOL asm/bn86unix.cpp | sed 's/^#.*//' > asm/bn86-sol.s | ||
71 | as -o asm/bn86-sol.o asm/bn86-sol.s | ||
72 | rm -f asm/bn86-sol.s | ||
73 | |||
74 | # a.out | ||
75 | asm/bn86-out.o: asm/bn86unix.cpp | ||
76 | $(CPP) -DOUT asm/bn86unix.cpp | as -o asm/bn86-out.o | ||
77 | |||
78 | # bsdi | ||
79 | asm/bn86bsdi.o: asm/bn86unix.cpp | ||
80 | $(CPP) -DBSDI asm/bn86unix.cpp | as -o asm/bn86bsdi.o | ||
81 | |||
82 | asm/bn86unix.cpp: | ||
83 | (cd asm; perl bn-586.pl cpp >bn86unix.cpp ) | ||
84 | |||
85 | files: | ||
86 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
87 | |||
88 | links: | ||
89 | /bin/rm -f Makefile | ||
90 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
91 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
92 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
93 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
94 | |||
95 | install: | ||
96 | @for i in $(EXHEADER) ; \ | ||
97 | do \ | ||
98 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
99 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
100 | done; | ||
101 | |||
102 | exptest: | ||
103 | /bin/rm -f exptest | ||
104 | gcc -I../../include -g2 -ggdb -o exptest exptest.c ../../libcrypto.a | ||
105 | |||
106 | div: | ||
107 | /bin/rm -f a.out | ||
108 | gcc -I.. -g div.c ../../libcrypto.a | ||
109 | |||
110 | tags: | ||
111 | ctags $(SRC) | ||
112 | |||
113 | tests: | ||
114 | |||
115 | lint: | ||
116 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
117 | |||
118 | depend: | ||
119 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
120 | |||
121 | dclean: | ||
122 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
123 | mv -f Makefile.new $(MAKEFILE) | ||
124 | |||
125 | clean: | ||
126 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff bn_mulw.s | ||
127 | |||
128 | errors: | ||
129 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # special case .org | ||
130 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
131 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
132 | |||
133 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/buffer/Makefile.ssl b/src/lib/libssl/src/crypto/buffer/Makefile.ssl new file mode 100644 index 0000000000..a5f150e523 --- /dev/null +++ b/src/lib/libssl/src/crypto/buffer/Makefile.ssl | |||
@@ -0,0 +1,84 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/buffer/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= buffer | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=buffer | ||
19 | ERRC=buf_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= buffer.c $(ERRC).c | ||
26 | LIBOBJ= buffer.o $(ERRC).o | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= buffer.h | ||
31 | HEADER= $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | all: lib | ||
39 | |||
40 | lib: $(LIBOBJ) | ||
41 | $(AR) $(LIB) $(LIBOBJ) | ||
42 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
43 | @touch lib | ||
44 | |||
45 | files: | ||
46 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
47 | |||
48 | links: | ||
49 | /bin/rm -f Makefile | ||
50 | $(TOP)/util/point.sh Makefile.ssl Makefile; | ||
51 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
52 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
53 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
54 | |||
55 | install: | ||
56 | @for i in $(EXHEADER) ; \ | ||
57 | do \ | ||
58 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
59 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
60 | done; | ||
61 | |||
62 | tags: | ||
63 | ctags $(SRC) | ||
64 | |||
65 | tests: | ||
66 | |||
67 | lint: | ||
68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
69 | |||
70 | depend: | ||
71 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
72 | |||
73 | dclean: | ||
74 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
75 | mv -f Makefile.new $(MAKEFILE) | ||
76 | |||
77 | clean: | ||
78 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
79 | |||
80 | errors: | ||
81 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
82 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
83 | |||
84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/cast/Makefile.ssl b/src/lib/libssl/src/crypto/cast/Makefile.ssl new file mode 100644 index 0000000000..0143827ae5 --- /dev/null +++ b/src/lib/libssl/src/crypto/cast/Makefile.ssl | |||
@@ -0,0 +1,109 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/cast/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= cast | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | |||
17 | CAST_ENC=c_enc.o | ||
18 | # or use | ||
19 | #CAST_ENC=asm/cx86-elf.o | ||
20 | #CAST_ENC=asm/cx86-out.o | ||
21 | #CAST_ENC=asm/cx86-sol.o | ||
22 | #CAST_ENC=asm/cx86bdsi.o | ||
23 | |||
24 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
25 | |||
26 | GENERAL=Makefile | ||
27 | TEST=casttest.c | ||
28 | APPS= | ||
29 | |||
30 | LIB=$(TOP)/libcrypto.a | ||
31 | LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c | ||
32 | LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o | ||
33 | |||
34 | SRC= $(LIBSRC) | ||
35 | |||
36 | EXHEADER= cast.h | ||
37 | HEADER= cast_s.h cast_lcl.h $(EXHEADER) | ||
38 | |||
39 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
40 | |||
41 | top: | ||
42 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
43 | |||
44 | all: lib | ||
45 | |||
46 | lib: $(LIBOBJ) | ||
47 | $(AR) $(LIB) $(LIBOBJ) | ||
48 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
49 | @touch lib | ||
50 | |||
51 | # elf | ||
52 | asm/cx86-elf.o: asm/cx86unix.cpp | ||
53 | $(CPP) -DELF asm/cx86unix.cpp | as -o asm/cx86-elf.o | ||
54 | |||
55 | # solaris | ||
56 | asm/cx86-sol.o: asm/cx86unix.cpp | ||
57 | $(CC) -E -DSOL asm/cx86unix.cpp | sed 's/^#.*//' > asm/cx86-sol.s | ||
58 | as -o asm/cx86-sol.o asm/cx86-sol.s | ||
59 | rm -f asm/cx86-sol.s | ||
60 | |||
61 | # a.out | ||
62 | asm/cx86-out.o: asm/cx86unix.cpp | ||
63 | $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o | ||
64 | |||
65 | # bsdi | ||
66 | asm/cx86bsdi.o: asm/cx86unix.cpp | ||
67 | $(CPP) -DBSDI asm/cx86unix.cpp | as -o asm/cx86bsdi.o | ||
68 | |||
69 | asm/cx86unix.cpp: | ||
70 | (cd asm; perl cast-586.pl cpp >cx86unix.cpp) | ||
71 | |||
72 | files: | ||
73 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
74 | |||
75 | links: | ||
76 | /bin/rm -f Makefile | ||
77 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
78 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
79 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
80 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
81 | |||
82 | install: | ||
83 | @for i in $(EXHEADER) ; \ | ||
84 | do \ | ||
85 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
86 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
87 | done; | ||
88 | |||
89 | tags: | ||
90 | ctags $(SRC) | ||
91 | |||
92 | tests: | ||
93 | |||
94 | lint: | ||
95 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
96 | |||
97 | depend: | ||
98 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
99 | |||
100 | dclean: | ||
101 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
102 | mv -f Makefile.new $(MAKEFILE) | ||
103 | |||
104 | clean: | ||
105 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
106 | |||
107 | errors: | ||
108 | |||
109 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/conf/Makefile.ssl b/src/lib/libssl/src/crypto/conf/Makefile.ssl new file mode 100644 index 0000000000..00e917aa44 --- /dev/null +++ b/src/lib/libssl/src/crypto/conf/Makefile.ssl | |||
@@ -0,0 +1,85 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/conf/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= conf | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=conf | ||
19 | ERRC=conf_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= conf.c $(ERRC).c | ||
26 | |||
27 | LIBOBJ= conf.o $(ERRC).o | ||
28 | |||
29 | SRC= $(LIBSRC) | ||
30 | |||
31 | EXHEADER= conf.h | ||
32 | HEADER= conf_lcl.h $(EXHEADER) | ||
33 | |||
34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
35 | |||
36 | top: | ||
37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
38 | |||
39 | all: lib | ||
40 | |||
41 | lib: $(LIBOBJ) | ||
42 | $(AR) $(LIB) $(LIBOBJ) | ||
43 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
44 | @touch lib | ||
45 | |||
46 | files: | ||
47 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
48 | |||
49 | links: | ||
50 | /bin/rm -f Makefile | ||
51 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
52 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
53 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
54 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
55 | |||
56 | install: | ||
57 | @for i in $(EXHEADER) ; \ | ||
58 | do \ | ||
59 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
60 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
61 | done; | ||
62 | |||
63 | tags: | ||
64 | ctags $(SRC) | ||
65 | |||
66 | tests: | ||
67 | |||
68 | lint: | ||
69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
70 | |||
71 | depend: | ||
72 | $(MAKEDEPEND) $(INCLUDES) $(LIBSRC) | ||
73 | |||
74 | dclean: | ||
75 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
76 | mv -f Makefile.new $(MAKEFILE) | ||
77 | |||
78 | clean: | ||
79 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
80 | |||
81 | errors: | ||
82 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
83 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
84 | |||
85 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/des/FILES b/src/lib/libssl/src/crypto/des/FILES new file mode 100644 index 0000000000..4c7ea2de7a --- /dev/null +++ b/src/lib/libssl/src/crypto/des/FILES | |||
@@ -0,0 +1,96 @@ | |||
1 | /* General stuff */ | ||
2 | COPYRIGHT - Copyright info. | ||
3 | MODES.DES - A description of the features of the different modes of DES. | ||
4 | FILES - This file. | ||
5 | INSTALL - How to make things compile. | ||
6 | Imakefile - For use with kerberos. | ||
7 | README - What this package is. | ||
8 | VERSION - Which version this is and what was changed. | ||
9 | KERBEROS - Kerberos version 4 notes. | ||
10 | Makefile.PL - An old makefile to build with perl5, not current. | ||
11 | Makefile.ssl - The SSLeay makefile | ||
12 | Makefile.uni - The normal unix makefile. | ||
13 | GNUmakefile - The makefile for use with glibc. | ||
14 | makefile.bc - A Borland C makefile | ||
15 | times - Some outputs from 'speed' on some machines. | ||
16 | vms.com - For use when compiling under VMS | ||
17 | |||
18 | /* My SunOS des(1) replacement */ | ||
19 | des.c - des(1) source code. | ||
20 | des.man - des(1) manual. | ||
21 | |||
22 | /* Testing and timing programs. */ | ||
23 | destest.c - Source for libdes.a test program. | ||
24 | speed.c - Source for libdes.a timing program. | ||
25 | rpw.c - Source for libdes.a testing password reading routines. | ||
26 | |||
27 | /* libdes.a source code */ | ||
28 | des_crypt.man - libdes.a manual page. | ||
29 | des.h - Public libdes.a header file. | ||
30 | ecb_enc.c - des_ecb_encrypt() source, this contains the basic DES code. | ||
31 | ecb3_enc.c - des_ecb3_encrypt() source. | ||
32 | cbc_ckm.c - des_cbc_cksum() source. | ||
33 | cbc_enc.c - des_cbc_encrypt() source. | ||
34 | ncbc_enc.c - des_cbc_encrypt() that is 'normal' in that it copies | ||
35 | the new iv values back in the passed iv vector. | ||
36 | ede_enc.c - des_ede3_cbc_encrypt() cbc mode des using triple DES. | ||
37 | cbc3_enc.c - des_3cbc_encrypt() source, don't use this function. | ||
38 | cfb_enc.c - des_cfb_encrypt() source. | ||
39 | cfb64enc.c - des_cfb64_encrypt() cfb in 64 bit mode but setup to be | ||
40 | used as a stream cipher. | ||
41 | cfb64ede.c - des_ede3_cfb64_encrypt() cfb in 64 bit mode but setup to be | ||
42 | used as a stream cipher and using triple DES. | ||
43 | ofb_enc.c - des_cfb_encrypt() source. | ||
44 | ofb64_enc.c - des_ofb_encrypt() ofb in 64 bit mode but setup to be | ||
45 | used as a stream cipher. | ||
46 | ofb64ede.c - des_ede3_ofb64_encrypt() ofb in 64 bit mode but setup to be | ||
47 | used as a stream cipher and using triple DES. | ||
48 | enc_read.c - des_enc_read() source. | ||
49 | enc_writ.c - des_enc_write() source. | ||
50 | pcbc_enc.c - des_pcbc_encrypt() source. | ||
51 | qud_cksm.c - quad_cksum() source. | ||
52 | rand_key.c - des_random_key() source. | ||
53 | read_pwd.c - Source for des_read_password() plus related functions. | ||
54 | set_key.c - Source for des_set_key(). | ||
55 | str2key.c - Covert a string of any length into a key. | ||
56 | fcrypt.c - A small, fast version of crypt(3). | ||
57 | des_locl.h - Internal libdes.a header file. | ||
58 | podd.h - Odd parity tables - used in des_set_key(). | ||
59 | sk.h - Lookup tables used in des_set_key(). | ||
60 | spr.h - What is left of the S tables - used in ecb_encrypt(). | ||
61 | des_ver.h - header file for the external definition of the | ||
62 | version string. | ||
63 | des.doc - SSLeay documentation for the library. | ||
64 | |||
65 | /* The perl scripts - you can ignore these files they are only | ||
66 | * included for the curious */ | ||
67 | des.pl - des in perl anyone? des_set_key and des_ecb_encrypt | ||
68 | both done in a perl library. | ||
69 | testdes.pl - Testing program for des.pl | ||
70 | doIP - Perl script used to develop IP xor/shift code. | ||
71 | doPC1 - Perl script used to develop PC1 xor/shift code. | ||
72 | doPC2 - Generates sk.h. | ||
73 | PC1 - Output of doPC1 should be the same as output from PC1. | ||
74 | PC2 - used in development of doPC2. | ||
75 | shifts.pl - Perl library used by my perl scripts. | ||
76 | |||
77 | /* I started making a perl5 dynamic library for libdes | ||
78 | * but did not fully finish, these files are part of that effort. */ | ||
79 | DES.pm | ||
80 | DES.pod | ||
81 | DES.xs | ||
82 | t | ||
83 | typemap | ||
84 | |||
85 | /* The following are for use with sun RPC implementaions. */ | ||
86 | rpc_des.h | ||
87 | rpc_enc.c | ||
88 | |||
89 | /* The following are contibuted by Mark Murray <mark@grondar.za>. They | ||
90 | * are not normally built into libdes due to machine specific routines | ||
91 | * contained in them. They are for use in the most recent incarnation of | ||
92 | * export kerberos v 4 (eBones). */ | ||
93 | supp.c | ||
94 | new_rkey.c | ||
95 | |||
96 | |||
diff --git a/src/lib/libssl/src/crypto/des/Makefile.ssl b/src/lib/libssl/src/crypto/des/Makefile.ssl new file mode 100644 index 0000000000..78b5189ee3 --- /dev/null +++ b/src/lib/libssl/src/crypto/des/Makefile.ssl | |||
@@ -0,0 +1,140 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/des/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= des | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | DES_ENC= des_enc.o fcrypt_b.o | ||
17 | # or use | ||
18 | #DES_ENC= dx86-elf.o yx86-elf.o | ||
19 | |||
20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
21 | |||
22 | GENERAL=Makefile des.org des_locl.org | ||
23 | TEST=destest.c | ||
24 | APPS= | ||
25 | |||
26 | LIB=$(TOP)/libcrypto.a | ||
27 | LIBSRC= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \ | ||
28 | ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \ | ||
29 | fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \ | ||
30 | qud_cksm.c rand_key.c read_pwd.c rpc_enc.c set_key.c \ | ||
31 | des_enc.c fcrypt_b.c read2pwd.c \ | ||
32 | fcrypt.c xcbc_enc.c \ | ||
33 | str2key.c cfb64ede.c ofb64ede.c supp.c | ||
34 | |||
35 | LIBOBJ= set_key.o ecb_enc.o cbc_enc.o \ | ||
36 | ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \ | ||
37 | enc_read.o enc_writ.o ofb64enc.o \ | ||
38 | ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \ | ||
39 | ${DES_ENC} read2pwd.o \ | ||
40 | fcrypt.o xcbc_enc.o read_pwd.o rpc_enc.o cbc_cksm.o supp.o | ||
41 | |||
42 | SRC= $(LIBSRC) | ||
43 | |||
44 | EXHEADER= des.h | ||
45 | HEADER= des_locl.h rpc_des.h podd.h sk.h spr.h des_ver.h $(EXHEADER) | ||
46 | |||
47 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
48 | |||
49 | top: | ||
50 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
51 | |||
52 | all: lib | ||
53 | |||
54 | lib: $(LIBOBJ) | ||
55 | $(AR) $(LIB) $(LIBOBJ) | ||
56 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
57 | @touch lib | ||
58 | |||
59 | # elf | ||
60 | asm/dx86-elf.o: asm/dx86unix.cpp | ||
61 | $(CPP) -DELF asm/dx86unix.cpp | as -o asm/dx86-elf.o | ||
62 | |||
63 | asm/yx86-elf.o: asm/yx86unix.cpp | ||
64 | $(CPP) -DELF asm/yx86unix.cpp | as -o asm/yx86-elf.o | ||
65 | |||
66 | # solaris | ||
67 | asm/dx86-sol.o: asm/dx86unix.cpp | ||
68 | $(CC) -E -DSOL asm/dx86unix.cpp | sed 's/^#.*//' > asm/dx86-sol.s | ||
69 | as -o asm/dx86-sol.o asm/dx86-sol.s | ||
70 | rm -f asm/dx86-sol.s | ||
71 | |||
72 | asm/yx86-sol.o: asm/yx86unix.cpp | ||
73 | $(CC) -E -DSOL asm/yx86unix.cpp | sed 's/^#.*//' > asm/yx86-sol.s | ||
74 | as -o asm/yx86-sol.o asm/yx86-sol.s | ||
75 | rm -f asm/yx86-sol.s | ||
76 | |||
77 | # a.out | ||
78 | asm/dx86-out.o: asm/dx86unix.cpp | ||
79 | $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o | ||
80 | |||
81 | asm/yx86-out.o: asm/yx86unix.cpp | ||
82 | $(CPP) -DOUT asm/yx86unix.cpp | as -o asm/yx86-out.o | ||
83 | |||
84 | # bsdi | ||
85 | asm/dx86bsdi.o: asm/dx86unix.cpp | ||
86 | $(CPP) -DBSDI asm/dx86unix.cpp | as -o asm/dx86bsdi.o | ||
87 | |||
88 | asm/yx86bsdi.o: asm/yx86unix.cpp | ||
89 | $(CPP) -DBSDI asm/yx86unix.cpp | as -o asm/yx86bsdi.o | ||
90 | |||
91 | asm/dx86unix.cpp: | ||
92 | (cd asm; perl des-586.pl cpp >dx86unix.cpp) | ||
93 | |||
94 | asm/yx86unix.cpp: | ||
95 | (cd asm; perl crypt586.pl cpp >yx86unix.cpp) | ||
96 | |||
97 | files: | ||
98 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
99 | |||
100 | links: | ||
101 | /bin/rm -f Makefile | ||
102 | $(TOP)/util/point.sh Makefile.ssl Makefile | ||
103 | /bin/rm -f des.doc | ||
104 | /bin/rm -fr asm/perlasm | ||
105 | $(TOP)/util/point.sh ../../perlasm asm/perlasm | ||
106 | $(TOP)/util/point.sh ../../doc/des.doc des.doc | ||
107 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
108 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
109 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
110 | |||
111 | install: installs | ||
112 | |||
113 | installs: | ||
114 | @for i in $(EXHEADER) ; \ | ||
115 | do \ | ||
116 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
117 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
118 | done; | ||
119 | |||
120 | tags: | ||
121 | ctags $(SRC) | ||
122 | |||
123 | tests: | ||
124 | |||
125 | lint: | ||
126 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
127 | |||
128 | depend: | ||
129 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
130 | |||
131 | dclean: | ||
132 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
133 | mv -f Makefile.new $(MAKEFILE) | ||
134 | |||
135 | clean: | ||
136 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
137 | |||
138 | errors: | ||
139 | |||
140 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/dh/Makefile.ssl b/src/lib/libssl/src/crypto/dh/Makefile.ssl new file mode 100644 index 0000000000..dfa7e4525d --- /dev/null +++ b/src/lib/libssl/src/crypto/dh/Makefile.ssl | |||
@@ -0,0 +1,84 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/dh/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= dh | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=dh | ||
19 | ERRC=dh_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= dhtest.c | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= dh_gen.c dh_key.c dh_lib.c dh_check.c $(ERRC).c | ||
26 | LIBOBJ= dh_gen.o dh_key.o dh_lib.o dh_check.o $(ERRC).o | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= dh.h | ||
31 | HEADER= $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | all: lib | ||
39 | |||
40 | lib: $(LIBOBJ) | ||
41 | $(AR) $(LIB) $(LIBOBJ) | ||
42 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
43 | @touch lib | ||
44 | |||
45 | files: | ||
46 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
47 | |||
48 | links: | ||
49 | /bin/rm -f Makefile | ||
50 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
51 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
52 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
53 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
54 | |||
55 | install: | ||
56 | @for i in $(EXHEADER) ; \ | ||
57 | do \ | ||
58 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
59 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
60 | done; | ||
61 | |||
62 | tags: | ||
63 | ctags $(SRC) | ||
64 | |||
65 | tests: | ||
66 | |||
67 | lint: | ||
68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
69 | |||
70 | depend: | ||
71 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
72 | |||
73 | dclean: | ||
74 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
75 | mv -f Makefile.new $(MAKEFILE) | ||
76 | |||
77 | clean: | ||
78 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
79 | |||
80 | errors: | ||
81 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
82 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
83 | |||
84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/dsa/Makefile.ssl b/src/lib/libssl/src/crypto/dsa/Makefile.ssl new file mode 100644 index 0000000000..2cc4ddb39e --- /dev/null +++ b/src/lib/libssl/src/crypto/dsa/Makefile.ssl | |||
@@ -0,0 +1,84 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/dsa/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= dsa | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=dsa | ||
19 | ERRC=dsa_err | ||
20 | GENERAL=Makefile | ||
21 | TEST=dsatest.c | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= dsa_gen.c dsa_key.c dsa_lib.c dsa_vrf.c dsa_sign.c $(ERRC).c | ||
26 | LIBOBJ= dsa_gen.o dsa_key.o dsa_lib.o dsa_vrf.o dsa_sign.o $(ERRC).o | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= dsa.h | ||
31 | HEADER= $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | all: lib | ||
39 | |||
40 | lib: $(LIBOBJ) | ||
41 | $(AR) $(LIB) $(LIBOBJ) | ||
42 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
43 | @touch lib | ||
44 | |||
45 | files: | ||
46 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
47 | |||
48 | links: | ||
49 | /bin/rm -f Makefile | ||
50 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
51 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
52 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
53 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
54 | |||
55 | install: | ||
56 | @for i in $(EXHEADER) ; \ | ||
57 | do \ | ||
58 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
59 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
60 | done; | ||
61 | |||
62 | tags: | ||
63 | ctags $(SRC) | ||
64 | |||
65 | tests: | ||
66 | |||
67 | lint: | ||
68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
69 | |||
70 | depend: | ||
71 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
72 | |||
73 | dclean: | ||
74 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
75 | mv -f Makefile.new $(MAKEFILE) | ||
76 | |||
77 | clean: | ||
78 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
79 | |||
80 | errors: | ||
81 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
82 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
83 | |||
84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/err/Makefile.ssl b/src/lib/libssl/src/crypto/err/Makefile.ssl new file mode 100644 index 0000000000..57c87eb041 --- /dev/null +++ b/src/lib/libssl/src/crypto/err/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/err/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= err | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=err.c err_all.c err_prn.c | ||
24 | LIBOBJ=err.o err_all.o err_prn.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= err.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/evp/Makefile.ssl b/src/lib/libssl/src/crypto/evp/Makefile.ssl new file mode 100644 index 0000000000..8bf2516458 --- /dev/null +++ b/src/lib/libssl/src/crypto/evp/Makefile.ssl | |||
@@ -0,0 +1,111 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/evp/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= evp | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=evp | ||
19 | ERRC=evp_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= encode.c digest.c evp_enc.c evp_key.c \ | ||
26 | e_ecb_d.c e_cbc_d.c e_cfb_d.c e_ofb_d.c \ | ||
27 | e_ecb_i.c e_cbc_i.c e_cfb_i.c e_ofb_i.c \ | ||
28 | e_ecb_3d.c e_cbc_3d.c e_rc4.c names.c \ | ||
29 | e_cfb_3d.c e_ofb_3d.c e_xcbc_d.c \ | ||
30 | e_ecb_r2.c e_cbc_r2.c e_cfb_r2.c e_ofb_r2.c \ | ||
31 | e_ecb_bf.c e_cbc_bf.c e_cfb_bf.c e_ofb_bf.c \ | ||
32 | e_ecb_c.c e_cbc_c.c e_cfb_c.c e_ofb_c.c \ | ||
33 | e_ecb_r5.c e_cbc_r5.c e_cfb_r5.c e_ofb_r5.c \ | ||
34 | m_null.c m_md2.c m_md5.c m_sha.c m_sha1.c m_dss.c m_dss1.c m_mdc2.c \ | ||
35 | m_ripemd.c \ | ||
36 | p_open.c p_seal.c p_sign.c p_verify.c p_lib.c p_enc.c p_dec.c \ | ||
37 | bio_md.c bio_b64.c bio_enc.c $(ERRC).c e_null.c \ | ||
38 | c_all.c evp_lib.c | ||
39 | |||
40 | LIBOBJ= encode.o digest.o evp_enc.o evp_key.o \ | ||
41 | e_ecb_d.o e_cbc_d.o e_cfb_d.o e_ofb_d.o \ | ||
42 | e_ecb_i.o e_cbc_i.o e_cfb_i.o e_ofb_i.o \ | ||
43 | e_ecb_3d.o e_cbc_3d.o e_rc4.o names.o \ | ||
44 | e_cfb_3d.o e_ofb_3d.o e_xcbc_d.o \ | ||
45 | e_ecb_r2.o e_cbc_r2.o e_cfb_r2.o e_ofb_r2.o \ | ||
46 | e_ecb_bf.o e_cbc_bf.o e_cfb_bf.o e_ofb_bf.o \ | ||
47 | e_ecb_c.o e_cbc_c.o e_cfb_c.o e_ofb_c.o \ | ||
48 | e_ecb_r5.o e_cbc_r5.o e_cfb_r5.o e_ofb_r5.o \ | ||
49 | m_null.o m_md2.o m_md5.o m_sha.o m_sha1.o m_dss.o m_dss1.o m_mdc2.o \ | ||
50 | m_ripemd.o \ | ||
51 | p_open.o p_seal.o p_sign.o p_verify.o p_lib.o p_enc.o p_dec.o \ | ||
52 | bio_md.o bio_b64.o bio_enc.o $(ERRC).o e_null.o \ | ||
53 | c_all.o evp_lib.o | ||
54 | |||
55 | SRC= $(LIBSRC) | ||
56 | |||
57 | EXHEADER= evp.h | ||
58 | HEADER= $(EXHEADER) | ||
59 | |||
60 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
61 | |||
62 | top: | ||
63 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
64 | |||
65 | all: lib | ||
66 | |||
67 | lib: $(LIBOBJ) | ||
68 | $(AR) $(LIB) $(LIBOBJ) | ||
69 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
70 | @touch lib | ||
71 | |||
72 | files: | ||
73 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
74 | |||
75 | links: | ||
76 | /bin/rm -f Makefile | ||
77 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
78 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
79 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
80 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
81 | |||
82 | install: | ||
83 | @for i in $(EXHEADER) ; \ | ||
84 | do \ | ||
85 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
86 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
87 | done; | ||
88 | |||
89 | tags: | ||
90 | ctags $(SRC) | ||
91 | |||
92 | tests: | ||
93 | |||
94 | lint: | ||
95 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
96 | |||
97 | depend: | ||
98 | $(MAKEDEPEND) $(INCLUDES) $(LIBSRC) | ||
99 | |||
100 | dclean: | ||
101 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
102 | mv -f Makefile.new $(MAKEFILE) | ||
103 | |||
104 | clean: | ||
105 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
106 | |||
107 | errors: | ||
108 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
109 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
110 | |||
111 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/hmac/Makefile.ssl b/src/lib/libssl/src/crypto/hmac/Makefile.ssl new file mode 100644 index 0000000000..7a042b7261 --- /dev/null +++ b/src/lib/libssl/src/crypto/hmac/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/md/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= hmac | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST=hmactest.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=hmac.c | ||
24 | LIBOBJ=hmac.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= hmac.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/idea/Makefile.ssl b/src/lib/libssl/src/crypto/idea/Makefile.ssl new file mode 100644 index 0000000000..41b42ce03b --- /dev/null +++ b/src/lib/libssl/src/crypto/idea/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/idea/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= idea | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST=ideatest.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c | ||
24 | LIBOBJ=i_cbc.o i_cfb64.o i_ofb64.o i_ecb.o i_skey.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= idea.h | ||
29 | HEADER= idea_lcl.h $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/lhash/Makefile.ssl b/src/lib/libssl/src/crypto/lhash/Makefile.ssl new file mode 100644 index 0000000000..cb08547b4f --- /dev/null +++ b/src/lib/libssl/src/crypto/lhash/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/lhash/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= lhash | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=lhash.c lh_stats.c | ||
24 | LIBOBJ=lhash.o lh_stats.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= lhash.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/md2/Makefile.ssl b/src/lib/libssl/src/crypto/md2/Makefile.ssl new file mode 100644 index 0000000000..d8e7200c83 --- /dev/null +++ b/src/lib/libssl/src/crypto/md2/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/md/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= md | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST=md2test.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=md2_dgst.c md5_one.c | ||
24 | LIBOBJ=md2_dgst.o md2_one.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= md2.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/md5/Makefile.ssl b/src/lib/libssl/src/crypto/md5/Makefile.ssl new file mode 100644 index 0000000000..47e1ce05ca --- /dev/null +++ b/src/lib/libssl/src/crypto/md5/Makefile.ssl | |||
@@ -0,0 +1,104 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/md5/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= md5 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | |||
17 | MD5_ASM_OBJ= | ||
18 | |||
19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
20 | |||
21 | GENERAL=Makefile | ||
22 | TEST=md5test.c | ||
23 | APPS=md5.c | ||
24 | |||
25 | LIB=$(TOP)/libcrypto.a | ||
26 | LIBSRC=md5_dgst.c md5_one.c | ||
27 | LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ) | ||
28 | |||
29 | SRC= $(LIBSRC) | ||
30 | |||
31 | EXHEADER= md5.h | ||
32 | HEADER= md5_locl.h $(EXHEADER) | ||
33 | |||
34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
35 | |||
36 | top: | ||
37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
38 | |||
39 | all: lib | ||
40 | |||
41 | lib: $(LIBOBJ) | ||
42 | $(AR) $(LIB) $(LIBOBJ) | ||
43 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
44 | @touch lib | ||
45 | |||
46 | # elf | ||
47 | asm/mx86-elf.o: asm/mx86unix.cpp | ||
48 | $(CPP) -DELF asm/mx86unix.cpp | as -o asm/mx86-elf.o | ||
49 | |||
50 | # solaris | ||
51 | asm/mx86-sol.o: asm/mx86unix.cpp | ||
52 | $(CC) -E -DSOL asm/mx86unix.cpp | sed 's/^#.*//' > asm/mx86-sol.s | ||
53 | as -o asm/mx86-sol.o asm/mx86-sol.s | ||
54 | rm -f asm/mx86-sol.s | ||
55 | |||
56 | # a.out | ||
57 | asm/mx86-out.o: asm/mx86unix.cpp | ||
58 | $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o | ||
59 | |||
60 | # bsdi | ||
61 | asm/mx86bsdi.o: asm/mx86unix.cpp | ||
62 | $(CPP) -DBSDI asm/mx86unix.cpp | as -o asm/mx86bsdi.o | ||
63 | |||
64 | asm/mx86unix.cpp: | ||
65 | (cd asm; perl md5-586.pl cpp >mx86unix.cpp) | ||
66 | |||
67 | files: | ||
68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
69 | |||
70 | links: | ||
71 | /bin/rm -f Makefile | ||
72 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
73 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
74 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
75 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
76 | |||
77 | install: | ||
78 | @for i in $(EXHEADER) ; \ | ||
79 | do \ | ||
80 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
81 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
82 | done; | ||
83 | |||
84 | tags: | ||
85 | ctags $(SRC) | ||
86 | |||
87 | tests: | ||
88 | |||
89 | lint: | ||
90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
91 | |||
92 | depend: | ||
93 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
94 | |||
95 | dclean: | ||
96 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
97 | mv -f Makefile.new $(MAKEFILE) | ||
98 | |||
99 | clean: | ||
100 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
101 | |||
102 | errors: | ||
103 | |||
104 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/mdc2/Makefile.ssl b/src/lib/libssl/src/crypto/mdc2/Makefile.ssl new file mode 100644 index 0000000000..495a2789a0 --- /dev/null +++ b/src/lib/libssl/src/crypto/mdc2/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/mdc2/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= mdc2 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= mdc2test.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=mdc2dgst.c mdc2_one.c | ||
24 | LIBOBJ=mdc2dgst.o mdc2_one.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= mdc2.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/objects/Makefile.ssl b/src/lib/libssl/src/crypto/objects/Makefile.ssl new file mode 100644 index 0000000000..320523cea1 --- /dev/null +++ b/src/lib/libssl/src/crypto/objects/Makefile.ssl | |||
@@ -0,0 +1,87 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/objects/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= objects | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=objects | ||
19 | ERRC=obj_err | ||
20 | GENERAL=Makefile README | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= obj_dat.c obj_lib.c $(ERRC).c | ||
26 | LIBOBJ= obj_dat.o obj_lib.o $(ERRC).o | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= objects.h | ||
31 | HEADER= $(EXHEADER) obj_dat.h | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | all: obj_dat.h lib | ||
39 | |||
40 | obj_dat.h: objects.h obj_dat.pl | ||
41 | perl ./obj_dat.pl < objects.h > obj_dat.h | ||
42 | |||
43 | lib: $(LIBOBJ) | ||
44 | $(AR) $(LIB) $(LIBOBJ) | ||
45 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
46 | @touch lib | ||
47 | |||
48 | files: | ||
49 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
50 | |||
51 | links: | ||
52 | /bin/rm -f Makefile | ||
53 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
54 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
55 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
56 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
57 | |||
58 | install: | ||
59 | @for i in $(EXHEADER) ; \ | ||
60 | do \ | ||
61 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
62 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
63 | done; | ||
64 | |||
65 | tags: | ||
66 | ctags $(SRC) | ||
67 | |||
68 | tests: | ||
69 | |||
70 | lint: | ||
71 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
72 | |||
73 | depend: | ||
74 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
75 | |||
76 | dclean: | ||
77 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
78 | mv -f Makefile.new $(MAKEFILE) | ||
79 | |||
80 | clean: | ||
81 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
82 | |||
83 | errors: | ||
84 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
85 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
86 | |||
87 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/pem/Makefile.ssl b/src/lib/libssl/src/crypto/pem/Makefile.ssl new file mode 100644 index 0000000000..fc04a88fd9 --- /dev/null +++ b/src/lib/libssl/src/crypto/pem/Makefile.ssl | |||
@@ -0,0 +1,96 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/pem/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= pem | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=pem | ||
19 | ERRC=pem_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | CTX_SIZE= ctx_size | ||
25 | |||
26 | LIB=$(TOP)/libcrypto.a | ||
27 | LIBSRC= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c $(ERRC).c | ||
28 | |||
29 | LIBOBJ= pem_sign.o pem_seal.o pem_info.o pem_lib.o pem_all.o $(ERRC).o | ||
30 | |||
31 | SRC= $(LIBSRC) | ||
32 | |||
33 | EXHEADER= pem.h | ||
34 | HEADER= $(EXHEADER) | ||
35 | |||
36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
37 | |||
38 | top: | ||
39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
40 | |||
41 | all: pem.h lib | ||
42 | |||
43 | pem.h: $(CTX_SIZE) | ||
44 | ./$(CTX_SIZE) <pem.org >pem.new | ||
45 | if [ -f pem.h ]; then mv -f pem.h pem.old; fi | ||
46 | mv -f pem.new pem.h | ||
47 | |||
48 | $(CTX_SIZE): $(CTX_SIZE).o | ||
49 | $(CC) $(CFLAGS) -o $(CTX_SIZE) $(CTX_SIZE).o | ||
50 | |||
51 | lib: $(LIBOBJ) | ||
52 | $(AR) $(LIB) $(LIBOBJ) | ||
53 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
54 | @touch lib | ||
55 | |||
56 | files: | ||
57 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
58 | |||
59 | links: | ||
60 | /bin/rm -f Makefile | ||
61 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
62 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
63 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
64 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
65 | |||
66 | install: | ||
67 | @for i in $(EXHEADER) ; \ | ||
68 | do \ | ||
69 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
70 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
71 | done; | ||
72 | |||
73 | tags: | ||
74 | ctags $(SRC) | ||
75 | |||
76 | tests: | ||
77 | |||
78 | lint: | ||
79 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
80 | |||
81 | depend: | ||
82 | $(MAKEDEPEND) $(INCLUDES) $(CTX_SIZE).c $(LIBSRC) | ||
83 | |||
84 | dclean: | ||
85 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
86 | mv -f Makefile.new $(MAKEFILE) | ||
87 | |||
88 | clean: | ||
89 | /bin/rm -f $(CTX_SIZE) *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
90 | |||
91 | errors: | ||
92 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # SPECIAL CASE .org | ||
93 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
94 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
95 | |||
96 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/pkcs7/Makefile.ssl b/src/lib/libssl/src/crypto/pkcs7/Makefile.ssl new file mode 100644 index 0000000000..a88359b320 --- /dev/null +++ b/src/lib/libssl/src/crypto/pkcs7/Makefile.ssl | |||
@@ -0,0 +1,86 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/asn1/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= pkcs7 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=pkcs7 | ||
19 | ERRC=pkcs7err | ||
20 | GENERAL=Makefile README | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= pk7_lib.c pkcs7err.c pk7_doit.c | ||
26 | LIBOBJ= pk7_lib.o pkcs7err.o pk7_doit.o | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= pkcs7.h | ||
31 | HEADER= $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | test: | ||
39 | |||
40 | all: lib | ||
41 | |||
42 | lib: $(LIBOBJ) | ||
43 | $(AR) $(LIB) $(LIBOBJ) | ||
44 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
45 | @touch lib | ||
46 | |||
47 | files: | ||
48 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
49 | |||
50 | links: | ||
51 | /bin/rm -f Makefile | ||
52 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
53 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
54 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
55 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
56 | |||
57 | install: | ||
58 | @for i in $(EXHEADER) ; \ | ||
59 | do \ | ||
60 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
61 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
62 | done; | ||
63 | |||
64 | tags: | ||
65 | ctags $(SRC) | ||
66 | |||
67 | tests: | ||
68 | |||
69 | lint: | ||
70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
71 | |||
72 | depend: | ||
73 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
74 | |||
75 | dclean: | ||
76 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
77 | mv -f Makefile.new $(MAKEFILE) | ||
78 | |||
79 | clean: | ||
80 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
81 | |||
82 | errors: | ||
83 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
84 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
85 | |||
86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/rand/Makefile.ssl b/src/lib/libssl/src/crypto/rand/Makefile.ssl new file mode 100644 index 0000000000..d04f0a9b43 --- /dev/null +++ b/src/lib/libssl/src/crypto/rand/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rand/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rand | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= randtest.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=md_rand.c randfile.c | ||
24 | LIBOBJ=md_rand.o randfile.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= rand.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/rc2/Makefile.ssl b/src/lib/libssl/src/crypto/rc2/Makefile.ssl new file mode 100644 index 0000000000..c5138f13e2 --- /dev/null +++ b/src/lib/libssl/src/crypto/rc2/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rc2/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rc2 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST=rc2test.c | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c | ||
24 | LIBOBJ=rc2_ecb.o rc2_skey.o rc2_cbc.o rc2cfb64.o rc2ofb64.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= rc2.h | ||
29 | HEADER= rc2_locl.h $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/rc4/Makefile.ssl b/src/lib/libssl/src/crypto/rc4/Makefile.ssl new file mode 100644 index 0000000000..19c1e980f3 --- /dev/null +++ b/src/lib/libssl/src/crypto/rc4/Makefile.ssl | |||
@@ -0,0 +1,108 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rc4/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rc4 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | RC4_ENC=rc4_enc.o | ||
17 | # or use | ||
18 | #RC4_ENC=asm/rx86-elf.o | ||
19 | #RC4_ENC=asm/rx86-out.o | ||
20 | #RC4_ENC=asm/rx86-sol.o | ||
21 | #RC4_ENC=asm/rx86bdsi.o | ||
22 | |||
23 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
24 | |||
25 | GENERAL=Makefile | ||
26 | TEST=rc4test.c | ||
27 | APPS= | ||
28 | |||
29 | LIB=$(TOP)/libcrypto.a | ||
30 | LIBSRC=rc4_skey.c rc4_enc.c | ||
31 | LIBOBJ=rc4_skey.o $(RC4_ENC) | ||
32 | |||
33 | SRC= $(LIBSRC) | ||
34 | |||
35 | EXHEADER= rc4.h | ||
36 | HEADER= $(EXHEADER) rc4_locl.h | ||
37 | |||
38 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
39 | |||
40 | top: | ||
41 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
42 | |||
43 | all: lib | ||
44 | |||
45 | lib: $(LIBOBJ) | ||
46 | $(AR) $(LIB) $(LIBOBJ) | ||
47 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
48 | @touch lib | ||
49 | |||
50 | # elf | ||
51 | asm/rx86-elf.o: asm/rx86unix.cpp | ||
52 | $(CPP) -DELF asm/rx86unix.cpp | as -o asm/rx86-elf.o | ||
53 | |||
54 | # solaris | ||
55 | asm/rx86-sol.o: asm/rx86unix.cpp | ||
56 | $(CC) -E -DSOL asm/rx86unix.cpp | sed 's/^#.*//' > asm/rx86-sol.s | ||
57 | as -o asm/rx86-sol.o asm/rx86-sol.s | ||
58 | rm -f asm/rx86-sol.s | ||
59 | |||
60 | # a.out | ||
61 | asm/rx86-out.o: asm/rx86unix.cpp | ||
62 | $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o | ||
63 | |||
64 | # bsdi | ||
65 | asm/rx86bsdi.o: asm/rx86unix.cpp | ||
66 | $(CPP) -DBSDI asm/rx86unix.cpp | as -o asm/rx86bsdi.o | ||
67 | |||
68 | asm/rx86unix.cpp: | ||
69 | (cd asm; perl rc4-586.pl cpp >rx86unix.cpp) | ||
70 | |||
71 | files: | ||
72 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
73 | |||
74 | links: | ||
75 | /bin/rm -f Makefile | ||
76 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
77 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
78 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
79 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
80 | |||
81 | install: | ||
82 | @for i in $(EXHEADER) ; \ | ||
83 | do \ | ||
84 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
85 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
86 | done; | ||
87 | |||
88 | tags: | ||
89 | ctags $(SRC) | ||
90 | |||
91 | tests: | ||
92 | |||
93 | lint: | ||
94 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
95 | |||
96 | depend: | ||
97 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
98 | |||
99 | dclean: | ||
100 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
101 | mv -f Makefile.new $(MAKEFILE) | ||
102 | |||
103 | clean: | ||
104 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
105 | |||
106 | errors: | ||
107 | |||
108 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/rc5/Makefile.ssl b/src/lib/libssl/src/crypto/rc5/Makefile.ssl new file mode 100644 index 0000000000..5e98ee2348 --- /dev/null +++ b/src/lib/libssl/src/crypto/rc5/Makefile.ssl | |||
@@ -0,0 +1,107 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rc5/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rc5 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | |||
17 | RC5_ENC= rc5_enc.o | ||
18 | # or use | ||
19 | #DES_ENC= r586-elf.o | ||
20 | |||
21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
22 | |||
23 | GENERAL=Makefile | ||
24 | TEST=rc5test.c | ||
25 | APPS= | ||
26 | |||
27 | LIB=$(TOP)/libcrypto.a | ||
28 | LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c | ||
29 | LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o | ||
30 | |||
31 | SRC= $(LIBSRC) | ||
32 | |||
33 | EXHEADER= rc5.h | ||
34 | HEADER= rc5_locl.h $(EXHEADER) | ||
35 | |||
36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
37 | |||
38 | top: | ||
39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
40 | |||
41 | all: lib | ||
42 | |||
43 | lib: $(LIBOBJ) | ||
44 | $(AR) $(LIB) $(LIBOBJ) | ||
45 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
46 | @touch lib | ||
47 | |||
48 | # elf | ||
49 | asm/r586-elf.o: asm/r586unix.cpp | ||
50 | $(CPP) -DELF asm/r586unix.cpp | as -o asm/r586-elf.o | ||
51 | |||
52 | # solaris | ||
53 | asm/r586-sol.o: asm/r586unix.cpp | ||
54 | $(CC) -E -DSOL asm/r586unix.cpp | sed 's/^#.*//' > asm/r586-sol.s | ||
55 | as -o asm/r586-sol.o asm/r586-sol.s | ||
56 | rm -f asm/r586-sol.s | ||
57 | |||
58 | # a.out | ||
59 | asm/r586-out.o: asm/r586unix.cpp | ||
60 | $(CPP) -DOUT asm/r586unix.cpp | as -o asm/r586-out.o | ||
61 | |||
62 | # bsdi | ||
63 | asm/r586bsdi.o: asm/r586unix.cpp | ||
64 | $(CPP) -DBSDI asm/r586unix.cpp | as -o asm/r586bsdi.o | ||
65 | |||
66 | asm/r586unix.cpp: | ||
67 | (cd asm; perl rc5-586.pl cpp >r586unix.cpp) | ||
68 | |||
69 | files: | ||
70 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
71 | |||
72 | links: | ||
73 | /bin/rm -f Makefile | ||
74 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
75 | $(TOP)/util/point.sh ../../doc/rc5.doc rc5.doc ; | ||
76 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
77 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
78 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
79 | |||
80 | install: | ||
81 | @for i in $(EXHEADER) ; \ | ||
82 | do \ | ||
83 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
84 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
85 | done; | ||
86 | |||
87 | tags: | ||
88 | ctags $(SRC) | ||
89 | |||
90 | tests: | ||
91 | |||
92 | lint: | ||
93 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
94 | |||
95 | depend: | ||
96 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
97 | |||
98 | dclean: | ||
99 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
100 | mv -f Makefile.new $(MAKEFILE) | ||
101 | |||
102 | clean: | ||
103 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
104 | |||
105 | errors: | ||
106 | |||
107 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/rc5/asm/rc5-586.pl b/src/lib/libssl/src/crypto/rc5/asm/rc5-586.pl new file mode 100644 index 0000000000..172bd9ee1b --- /dev/null +++ b/src/lib/libssl/src/crypto/rc5/asm/rc5-586.pl | |||
@@ -0,0 +1,109 @@ | |||
1 | #!/usr/bin/perl | ||
2 | |||
3 | push(@INC,"perlasm","../../perlasm"); | ||
4 | require "x86asm.pl"; | ||
5 | require "cbc.pl"; | ||
6 | |||
7 | &asm_init($ARGV[0],"rc5-586.pl"); | ||
8 | |||
9 | $RC5_MAX_ROUNDS=16; | ||
10 | $RC5_32_OFF=($RC5_MAX_ROUNDS+2)*4; | ||
11 | $A="edi"; | ||
12 | $B="esi"; | ||
13 | $S="ebp"; | ||
14 | $tmp1="eax"; | ||
15 | $r="ebx"; | ||
16 | $tmpc="ecx"; | ||
17 | $tmp4="edx"; | ||
18 | |||
19 | &RC5_32_encrypt("RC5_32_encrypt",1); | ||
20 | &RC5_32_encrypt("RC5_32_decrypt",0); | ||
21 | &cbc("RC5_32_cbc_encrypt","RC5_32_encrypt","RC5_32_decrypt",0,4,5,3,-1,-1); | ||
22 | &asm_finish(); | ||
23 | |||
24 | sub RC5_32_encrypt | ||
25 | { | ||
26 | local($name,$enc)=@_; | ||
27 | |||
28 | &function_begin_B($name,""); | ||
29 | |||
30 | &comment(""); | ||
31 | |||
32 | &push("ebp"); | ||
33 | &push("esi"); | ||
34 | &push("edi"); | ||
35 | &mov($tmp4,&wparam(0)); | ||
36 | &mov($S,&wparam(1)); | ||
37 | |||
38 | &comment("Load the 2 words"); | ||
39 | &mov($A,&DWP(0,$tmp4,"",0)); | ||
40 | &mov($B,&DWP(4,$tmp4,"",0)); | ||
41 | |||
42 | &push($r); | ||
43 | &mov($r, &DWP(0,$S,"",0)); | ||
44 | |||
45 | # encrypting part | ||
46 | |||
47 | if ($enc) | ||
48 | { | ||
49 | &add($A, &DWP(4+0,$S,"",0)); | ||
50 | &add($B, &DWP(4+4,$S,"",0)); | ||
51 | |||
52 | for ($i=0; $i<$RC5_MAX_ROUNDS; $i++) | ||
53 | { | ||
54 | &xor($A, $B); | ||
55 | &mov($tmp1, &DWP(12+$i*8,$S,"",0)); | ||
56 | &mov($tmpc, $B); | ||
57 | &rotl($A, &LB("ecx")); | ||
58 | &add($A, $tmp1); | ||
59 | |||
60 | &xor($B, $A); | ||
61 | &mov($tmp1, &DWP(16+$i*8,$S,"",0)); | ||
62 | &mov($tmpc, $A); | ||
63 | &rotl($B, &LB("ecx")); | ||
64 | &add($B, $tmp1); | ||
65 | if (($i == 7) || ($i == 11)) | ||
66 | { | ||
67 | &cmp($r, $i+1); | ||
68 | &je(&label("rc5_exit")); | ||
69 | } | ||
70 | } | ||
71 | } | ||
72 | else | ||
73 | { | ||
74 | &cmp($r, 12); | ||
75 | &je(&label("rc5_dec_12")); | ||
76 | &cmp($r, 8); | ||
77 | &je(&label("rc5_dec_8")); | ||
78 | for ($i=$RC5_MAX_ROUNDS; $i > 0; $i--) | ||
79 | { | ||
80 | &set_label("rc5_dec_$i") if ($i == 12) || ($i == 8); | ||
81 | &mov($tmp1, &DWP($i*8+8,$S,"",0)); | ||
82 | &sub($B, $tmp1); | ||
83 | &mov($tmpc, $A); | ||
84 | &rotr($B, &LB("ecx")); | ||
85 | &xor($B, $A); | ||
86 | |||
87 | &mov($tmp1, &DWP($i*8+4,$S,"",0)); | ||
88 | &sub($A, $tmp1); | ||
89 | &mov($tmpc, $B); | ||
90 | &rotr($A, &LB("ecx")); | ||
91 | &xor($A, $B); | ||
92 | } | ||
93 | &sub($B, &DWP(4+4,$S,"",0)); | ||
94 | &sub($A, &DWP(4+0,$S,"",0)); | ||
95 | } | ||
96 | |||
97 | &set_label("rc5_exit"); | ||
98 | &mov(&DWP(0,$tmp4,"",0),$A); | ||
99 | &mov(&DWP(4,$tmp4,"",0),$B); | ||
100 | |||
101 | &pop("ebx"); | ||
102 | &pop("edi"); | ||
103 | &pop("esi"); | ||
104 | &pop("ebp"); | ||
105 | &ret(); | ||
106 | &function_end_B($name); | ||
107 | } | ||
108 | |||
109 | |||
diff --git a/src/lib/libssl/src/crypto/ripemd/Makefile.ssl b/src/lib/libssl/src/crypto/ripemd/Makefile.ssl new file mode 100644 index 0000000000..67d47ceb2c --- /dev/null +++ b/src/lib/libssl/src/crypto/ripemd/Makefile.ssl | |||
@@ -0,0 +1,104 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/ripemd/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= ripemd | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | |||
17 | RIP_ASM_OBJ= | ||
18 | |||
19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
20 | |||
21 | GENERAL=Makefile | ||
22 | TEST=rmdtest.c | ||
23 | APPS=rmd160.c | ||
24 | |||
25 | LIB=$(TOP)/libcrypto.a | ||
26 | LIBSRC=rmd_dgst.c rmd_one.c | ||
27 | LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ) | ||
28 | |||
29 | SRC= $(LIBSRC) | ||
30 | |||
31 | EXHEADER= ripemd.h | ||
32 | HEADER= rmd_locl.h rmdconst.h $(EXHEADER) | ||
33 | |||
34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
35 | |||
36 | top: | ||
37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
38 | |||
39 | all: lib | ||
40 | |||
41 | lib: $(LIBOBJ) | ||
42 | $(AR) $(LIB) $(LIBOBJ) | ||
43 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
44 | @touch lib | ||
45 | |||
46 | # elf | ||
47 | asm/rm86-elf.o: asm/rm86unix.cpp | ||
48 | $(CPP) -DELF asm/rm86unix.cpp | as -o asm/rm86-elf.o | ||
49 | |||
50 | # solaris | ||
51 | asm/rm86-sol.o: asm/rm86unix.cpp | ||
52 | $(CC) -E -DSOL asm/rm86unix.cpp | sed 's/^#.*//' > asm/rm86-sol.s | ||
53 | as -o asm/rm86-sol.o asm/rm86-sol.s | ||
54 | rm -f asm/rm86-sol.s | ||
55 | |||
56 | # a.out | ||
57 | asm/rm86-out.o: asm/rm86unix.cpp | ||
58 | $(CPP) -DOUT asm/rm86unix.cpp | as -o asm/rm86-out.o | ||
59 | |||
60 | # bsdi | ||
61 | asm/rm86bsdi.o: asm/rm86unix.cpp | ||
62 | $(CPP) -DBSDI asm/rm86unix.cpp | as -o asm/rm86bsdi.o | ||
63 | |||
64 | asm/rm86unix.cpp: | ||
65 | (cd asm; perl rmd-586.pl cpp >rm86unix.cpp) | ||
66 | |||
67 | files: | ||
68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
69 | |||
70 | links: | ||
71 | /bin/rm -f Makefile | ||
72 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
73 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
74 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
75 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
76 | |||
77 | install: | ||
78 | @for i in $(EXHEADER) ; \ | ||
79 | do \ | ||
80 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
81 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
82 | done; | ||
83 | |||
84 | tags: | ||
85 | ctags $(SRC) | ||
86 | |||
87 | tests: | ||
88 | |||
89 | lint: | ||
90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
91 | |||
92 | depend: | ||
93 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
94 | |||
95 | dclean: | ||
96 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
97 | mv -f Makefile.new $(MAKEFILE) | ||
98 | |||
99 | clean: | ||
100 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
101 | |||
102 | errors: | ||
103 | |||
104 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/rsa/Makefile.ssl b/src/lib/libssl/src/crypto/rsa/Makefile.ssl new file mode 100644 index 0000000000..d52f2e609e --- /dev/null +++ b/src/lib/libssl/src/crypto/rsa/Makefile.ssl | |||
@@ -0,0 +1,86 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/rsa/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= rsa | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=rsa | ||
19 | ERRC=rsa_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c $(ERRC).c \ | ||
26 | rsa_pk1.c rsa_ssl.c rsa_none.c | ||
27 | LIBOBJ= rsa_eay.o rsa_gen.o rsa_lib.o rsa_sign.o rsa_saos.o $(ERRC).o \ | ||
28 | rsa_pk1.o rsa_ssl.o rsa_none.o | ||
29 | |||
30 | SRC= $(LIBSRC) | ||
31 | |||
32 | EXHEADER= rsa.h | ||
33 | HEADER= $(EXHEADER) | ||
34 | |||
35 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
36 | |||
37 | top: | ||
38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
39 | |||
40 | all: lib | ||
41 | |||
42 | lib: $(LIBOBJ) | ||
43 | $(AR) $(LIB) $(LIBOBJ) | ||
44 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
45 | @touch lib | ||
46 | |||
47 | files: | ||
48 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
49 | |||
50 | links: | ||
51 | /bin/rm -f Makefile | ||
52 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
53 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
54 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
55 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
56 | |||
57 | install: | ||
58 | @for i in $(EXHEADER) ; \ | ||
59 | do \ | ||
60 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
61 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
62 | done; | ||
63 | |||
64 | tags: | ||
65 | ctags $(SRC) | ||
66 | |||
67 | tests: | ||
68 | |||
69 | lint: | ||
70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
71 | |||
72 | depend: | ||
73 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
74 | |||
75 | dclean: | ||
76 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
77 | mv -f Makefile.new $(MAKEFILE) | ||
78 | |||
79 | clean: | ||
80 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
81 | |||
82 | errors: | ||
83 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
84 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
85 | |||
86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/sha/Makefile.ssl b/src/lib/libssl/src/crypto/sha/Makefile.ssl new file mode 100644 index 0000000000..eeb545d140 --- /dev/null +++ b/src/lib/libssl/src/crypto/sha/Makefile.ssl | |||
@@ -0,0 +1,103 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/sha/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= sha | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | SHA1_ASM_OBJ= | ||
17 | |||
18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
19 | |||
20 | GENERAL=Makefile | ||
21 | TEST=shatest.c sha1test.c | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c | ||
26 | LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ) | ||
27 | |||
28 | SRC= $(LIBSRC) | ||
29 | |||
30 | EXHEADER= sha.h | ||
31 | HEADER= sha_locl.h $(EXHEADER) | ||
32 | |||
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
34 | |||
35 | top: | ||
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
37 | |||
38 | all: lib | ||
39 | |||
40 | lib: $(LIBOBJ) | ||
41 | $(AR) $(LIB) $(LIBOBJ) | ||
42 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
43 | @touch lib | ||
44 | |||
45 | # elf | ||
46 | asm/sx86-elf.o: asm/sx86unix.cpp | ||
47 | $(CPP) -DELF asm/sx86unix.cpp | as -o asm/sx86-elf.o | ||
48 | |||
49 | # solaris | ||
50 | asm/sx86-sol.o: asm/sx86unix.cpp | ||
51 | $(CC) -E -DSOL asm/sx86unix.cpp | sed 's/^#.*//' > asm/sx86-sol.s | ||
52 | as -o asm/sx86-sol.o asm/sx86-sol.s | ||
53 | rm -f asm/sx86-sol.s | ||
54 | |||
55 | # a.out | ||
56 | asm/sx86-out.o: asm/sx86unix.cpp | ||
57 | $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o | ||
58 | |||
59 | # bsdi | ||
60 | asm/sx86bsdi.o: asm/sx86unix.cpp | ||
61 | $(CPP) -DBSDI asm/sx86unix.cpp | as -o asm/sx86bsdi.o | ||
62 | |||
63 | asm/sx86unix.cpp: | ||
64 | (cd asm; perl sha1-586.pl cpp >sx86unix.cpp) | ||
65 | |||
66 | files: | ||
67 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
68 | |||
69 | links: | ||
70 | /bin/rm -f Makefile | ||
71 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
72 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
73 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
74 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
75 | |||
76 | install: | ||
77 | @for i in $(EXHEADER) ; \ | ||
78 | do \ | ||
79 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
80 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
81 | done; | ||
82 | |||
83 | tags: | ||
84 | ctags $(SRC) | ||
85 | |||
86 | tests: | ||
87 | |||
88 | lint: | ||
89 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
90 | |||
91 | depend: | ||
92 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
93 | |||
94 | dclean: | ||
95 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
96 | mv -f Makefile.new $(MAKEFILE) | ||
97 | |||
98 | clean: | ||
99 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
100 | |||
101 | errors: | ||
102 | |||
103 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/stack/Makefile.ssl b/src/lib/libssl/src/crypto/stack/Makefile.ssl new file mode 100644 index 0000000000..0d232c08cf --- /dev/null +++ b/src/lib/libssl/src/crypto/stack/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/stack/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= stack | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=stack.c | ||
24 | LIBOBJ=stack.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= stack.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/txt_db/Makefile.ssl b/src/lib/libssl/src/crypto/txt_db/Makefile.ssl new file mode 100644 index 0000000000..76e511534f --- /dev/null +++ b/src/lib/libssl/src/crypto/txt_db/Makefile.ssl | |||
@@ -0,0 +1,80 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/txt_db/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= txt_db | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | GENERAL=Makefile | ||
19 | TEST= | ||
20 | APPS= | ||
21 | |||
22 | LIB=$(TOP)/libcrypto.a | ||
23 | LIBSRC=txt_db.c | ||
24 | LIBOBJ=txt_db.o | ||
25 | |||
26 | SRC= $(LIBSRC) | ||
27 | |||
28 | EXHEADER= txt_db.h | ||
29 | HEADER= $(EXHEADER) | ||
30 | |||
31 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
32 | |||
33 | top: | ||
34 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
35 | |||
36 | all: lib | ||
37 | |||
38 | lib: $(LIBOBJ) | ||
39 | $(AR) $(LIB) $(LIBOBJ) | ||
40 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
41 | @touch lib | ||
42 | |||
43 | files: | ||
44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
45 | |||
46 | links: | ||
47 | /bin/rm -f Makefile | ||
48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
50 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
52 | |||
53 | install: | ||
54 | @for i in $(EXHEADER) ; \ | ||
55 | do \ | ||
56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
58 | done; | ||
59 | |||
60 | tags: | ||
61 | ctags $(SRC) | ||
62 | |||
63 | tests: | ||
64 | |||
65 | lint: | ||
66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
67 | |||
68 | depend: | ||
69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
70 | |||
71 | dclean: | ||
72 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
73 | mv -f Makefile.new $(MAKEFILE) | ||
74 | |||
75 | clean: | ||
76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
77 | |||
78 | errors: | ||
79 | |||
80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/crypto/x509/Makefile.ssl b/src/lib/libssl/src/crypto/x509/Makefile.ssl new file mode 100644 index 0000000000..1c1ca2ffa0 --- /dev/null +++ b/src/lib/libssl/src/crypto/x509/Makefile.ssl | |||
@@ -0,0 +1,96 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/x509/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= x509 | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=x509 | ||
19 | ERRC=x509_err | ||
20 | GENERAL=Makefile README | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= x509_def.c x509_d2.c x509_r2x.c x509_cmp.c \ | ||
26 | x509_obj.c x509_req.c x509_vfy.c \ | ||
27 | x509_set.c x509rset.c $(ERRC).c \ | ||
28 | x509name.c x509_v3.c x509_ext.c x509pack.c \ | ||
29 | x509type.c x509_lu.c x_all.c x509_txt.c \ | ||
30 | by_file.c by_dir.c \ | ||
31 | v3_net.c v3_x509.c | ||
32 | LIBOBJ= x509_def.o x509_d2.o x509_r2x.o x509_cmp.o \ | ||
33 | x509_obj.o x509_req.o x509_vfy.o \ | ||
34 | x509_set.o x509rset.o $(ERRC).o \ | ||
35 | x509name.o x509_v3.o x509_ext.o x509pack.o \ | ||
36 | x509type.o x509_lu.o x_all.o x509_txt.o \ | ||
37 | by_file.o by_dir.o \ | ||
38 | v3_net.o v3_x509.o | ||
39 | |||
40 | SRC= $(LIBSRC) | ||
41 | |||
42 | EXHEADER= x509.h x509_vfy.h | ||
43 | HEADER= $(EXHEADER) | ||
44 | |||
45 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
46 | |||
47 | top: | ||
48 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
49 | |||
50 | all: lib | ||
51 | |||
52 | lib: $(LIBOBJ) | ||
53 | $(AR) $(LIB) $(LIBOBJ) | ||
54 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
55 | @touch lib | ||
56 | |||
57 | files: | ||
58 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
59 | |||
60 | links: | ||
61 | /bin/rm -f Makefile | ||
62 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
63 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
64 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
65 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
66 | |||
67 | install: | ||
68 | @for i in $(EXHEADER) ; \ | ||
69 | do \ | ||
70 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
71 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
72 | done; | ||
73 | |||
74 | tags: | ||
75 | ctags $(SRC) | ||
76 | |||
77 | tests: | ||
78 | |||
79 | lint: | ||
80 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
81 | |||
82 | depend: | ||
83 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
84 | |||
85 | dclean: | ||
86 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
87 | mv -f Makefile.new $(MAKEFILE) | ||
88 | |||
89 | clean: | ||
90 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
91 | |||
92 | errors: | ||
93 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
94 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
95 | |||
96 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/ssl/Makefile.ssl b/src/lib/libssl/src/ssl/Makefile.ssl new file mode 100644 index 0000000000..f4b13bf83b --- /dev/null +++ b/src/lib/libssl/src/ssl/Makefile.ssl | |||
@@ -0,0 +1,100 @@ | |||
1 | # | ||
2 | # SSLeay/ssl/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= ssl | ||
6 | TOP= .. | ||
7 | CC= cc | ||
8 | INCLUDES= -I../crypto -I../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=ssl | ||
19 | ERRC=ssl_err | ||
20 | GENERAL=Makefile README | ||
21 | TEST=ssltest.c | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libssl.a | ||
25 | LIBSRC= \ | ||
26 | s2_meth.c s2_srvr.c s2_clnt.c s2_lib.c s2_enc.c s2_pkt.c \ | ||
27 | s3_meth.c s3_srvr.c s3_clnt.c s3_lib.c s3_enc.c s3_pkt.c s3_both.c \ | ||
28 | s23_meth.c s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \ | ||
29 | t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \ | ||
30 | ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \ | ||
31 | ssl_ciph.c ssl_stat.c ssl_rsa.c \ | ||
32 | ssl_asn1.c ssl_txt.c ssl_algs.c \ | ||
33 | bio_ssl.c $(ERRC).c | ||
34 | LIBOBJ= \ | ||
35 | s2_meth.o s2_srvr.o s2_clnt.o s2_lib.o s2_enc.o s2_pkt.o \ | ||
36 | s3_meth.o s3_srvr.o s3_clnt.o s3_lib.o s3_enc.o s3_pkt.o s3_both.o \ | ||
37 | s23_meth.o s23_srvr.o s23_clnt.o s23_lib.o s23_pkt.o \ | ||
38 | t1_meth.o t1_srvr.o t1_clnt.o t1_lib.o t1_enc.o \ | ||
39 | ssl_lib.o ssl_err2.o ssl_cert.o ssl_sess.o \ | ||
40 | ssl_ciph.o ssl_stat.o ssl_rsa.o \ | ||
41 | ssl_asn1.o ssl_txt.o ssl_algs.o \ | ||
42 | bio_ssl.o $(ERRC).o | ||
43 | |||
44 | SRC= $(LIBSRC) | ||
45 | |||
46 | EXHEADER= ssl.h ssl2.h ssl3.h ssl23.h tls1.h | ||
47 | HEADER= $(EXHEADER) ssl_locl.h | ||
48 | |||
49 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
50 | |||
51 | top: | ||
52 | (cd ..; $(MAKE) DIRS=$(DIR) all) | ||
53 | |||
54 | all: lib | ||
55 | |||
56 | lib: $(LIBOBJ) | ||
57 | $(AR) $(LIB) $(LIBOBJ) | ||
58 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
59 | @touch lib | ||
60 | |||
61 | files: | ||
62 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
63 | |||
64 | links: | ||
65 | /bin/rm -f Makefile | ||
66 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
67 | $(TOP)/util/mklink.sh ../include $(EXHEADER) | ||
68 | $(TOP)/util/mklink.sh ../test $(TEST) | ||
69 | $(TOP)/util/mklink.sh ../apps $(APPS) | ||
70 | |||
71 | install: | ||
72 | @for i in $(EXHEADER) ; \ | ||
73 | do \ | ||
74 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
75 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
76 | done; | ||
77 | |||
78 | tags: | ||
79 | ctags $(SRC) | ||
80 | |||
81 | tests: | ||
82 | |||
83 | lint: | ||
84 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
85 | |||
86 | depend: | ||
87 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
88 | |||
89 | dclean: | ||
90 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
91 | mv -f Makefile.new $(MAKEFILE) | ||
92 | |||
93 | clean: | ||
94 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
95 | |||
96 | errors: | ||
97 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
98 | perl ../crypto/err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
99 | |||
100 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/test/Makefile.ssl b/src/lib/libssl/src/test/Makefile.ssl new file mode 100644 index 0000000000..b3de76751e --- /dev/null +++ b/src/lib/libssl/src/test/Makefile.ssl | |||
@@ -0,0 +1,294 @@ | |||
1 | # | ||
2 | # test/Makefile.ssl | ||
3 | # | ||
4 | |||
5 | DIR= test | ||
6 | TOP= .. | ||
7 | CC= cc | ||
8 | INCLUDES= -I../include | ||
9 | CFLAG= -g | ||
10 | INSTALLTOP= /usr/local/ssl | ||
11 | MAKEFILE= Makefile.ssl | ||
12 | MAKE= make -f $(MAKEFILE) | ||
13 | MAKEDEPEND= makedepend -f$(MAKEFILE) | ||
14 | |||
15 | PEX_LIBS= | ||
16 | EX_LIBS= #-lnsl -lsocket | ||
17 | |||
18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
19 | |||
20 | GENERAL=Makefile.ssl | ||
21 | |||
22 | DLIBCRYPTO= ../libcrypto.a | ||
23 | DLIBSSL= ../libssl.a | ||
24 | LIBCRYPTO= -L.. -lcrypto | ||
25 | LIBSSL= -L.. -lssl | ||
26 | |||
27 | BNTEST= bntest | ||
28 | EXPTEST= exptest | ||
29 | IDEATEST= ideatest | ||
30 | SHATEST= shatest | ||
31 | SHA1TEST= sha1test | ||
32 | MDC2TEST= mdc2test | ||
33 | RMDTEST= rmdtest | ||
34 | MD2TEST= md2test | ||
35 | MD5TEST= md5test | ||
36 | HMACTEST= hmactest | ||
37 | RC2TEST= rc2test | ||
38 | RC4TEST= rc4test | ||
39 | RC5TEST= rc5test | ||
40 | BFTEST= bftest | ||
41 | CASTTEST= casttest | ||
42 | DESTEST= destest | ||
43 | RANDTEST= randtest | ||
44 | DHTEST= dhtest | ||
45 | DSATEST= dsatest | ||
46 | METHTEST= methtest | ||
47 | SSLTEST= ssltest | ||
48 | |||
49 | EXE= $(BNTEST) $(IDEATEST) $(MD2TEST) $(MD5TEST) $(HMACTEST) \ | ||
50 | $(RC2TEST) $(RC4TEST) $(RC5TEST) \ | ||
51 | $(DESTEST) $(SHATEST) $(SHA1TEST) $(MDC2TEST) $(RMDTEST) \ | ||
52 | $(RANDTEST) $(DHTEST) \ | ||
53 | $(BFTEST) $(CASTTEST) $(SSLTEST) $(EXPTEST) $(DSATEST) | ||
54 | |||
55 | # $(METHTEST) | ||
56 | |||
57 | OBJ= $(BNTEST).o $(IDEATEST).o $(MD2TEST).o $(MD5TEST).o $(HMACTEST).o \ | ||
58 | $(RC2TEST).o $(RC4TEST).o $(RC5TEST).o \ | ||
59 | $(DESTEST).o $(SHATEST).o $(SHA1TEST).o $(MDC2TEST).o $(RMDTEST).o \ | ||
60 | $(RANDTEST).o $(DHTEST).o $(CASTTEST).o \ | ||
61 | $(BFTEST).o $(SSLTEST).o $(DSATEST).o $(EXPTEST).o | ||
62 | SRC= $(BNTEST).c $(IDEATEST).c $(MD2TEST).c $(MD5TEST).c $(HMACTEST).c \ | ||
63 | $(RC2TEST).c $(RC4TEST).c $(RC5TEST).c \ | ||
64 | $(DESTEST).c $(SHATEST).c $(SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \ | ||
65 | $(RANDTEST).c $(DHTEST).c $(CASTTEST).c \ | ||
66 | $(BFTEST).c $(SSLTEST).c $(DSATEST).c $(EXPTEST).c | ||
67 | |||
68 | EXHEADER= | ||
69 | HEADER= $(EXHEADER) | ||
70 | |||
71 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
72 | |||
73 | top: | ||
74 | (cd ..; $(MAKE) DIRS=$(DIR) all) | ||
75 | |||
76 | all: exe | ||
77 | |||
78 | exe: $(EXE) | ||
79 | |||
80 | files: | ||
81 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
82 | |||
83 | links: | ||
84 | /bin/rm -f Makefile | ||
85 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
86 | |||
87 | errors: | ||
88 | |||
89 | install: | ||
90 | |||
91 | tags: | ||
92 | ctags $(SRC) | ||
93 | |||
94 | tests: exe apps \ | ||
95 | test_des test_idea test_sha test_md5 test_hmac test_md2 test_mdc2 \ | ||
96 | test_rc2 test_rc4 test_rc5 test_bf test_cast \ | ||
97 | test_rand test_enc test_x509 test_rsa test_crl test_sid test_req \ | ||
98 | test_pkcs7 test_bn test_verify test_dh test_dsa test_reqgen \ | ||
99 | test_ss test_ssl test_ca | ||
100 | |||
101 | apps: | ||
102 | @(cd ../apps; $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' all) | ||
103 | |||
104 | test_des: | ||
105 | #./$(DESTEST) | ||
106 | |||
107 | test_idea: | ||
108 | ./$(IDEATEST) | ||
109 | |||
110 | test_sha: | ||
111 | ./$(SHATEST) | ||
112 | ./$(SHA1TEST) | ||
113 | |||
114 | test_mdc2: | ||
115 | ./$(MDC2TEST) | ||
116 | |||
117 | test_md5: | ||
118 | ./$(MD5TEST) | ||
119 | |||
120 | test_hmac: | ||
121 | ./$(HMACTEST) | ||
122 | |||
123 | test_md2: | ||
124 | ./$(MD2TEST) | ||
125 | |||
126 | test_rmd: | ||
127 | ./$(RMDTEST) | ||
128 | |||
129 | test_bf: | ||
130 | ./$(BFTEST) | ||
131 | |||
132 | test_cast: | ||
133 | ./$(CASTTEST) | ||
134 | |||
135 | test_rc2: | ||
136 | ./$(RC2TEST) | ||
137 | |||
138 | test_rc4: | ||
139 | ./$(RC4TEST) | ||
140 | |||
141 | test_rc5: | ||
142 | ./$(RC5TEST) | ||
143 | |||
144 | test_rand: | ||
145 | ./$(RANDTEST) | ||
146 | |||
147 | test_enc: | ||
148 | @sh ./testenc | ||
149 | |||
150 | test_x509: | ||
151 | echo test normal x509v1 certificate | ||
152 | sh ./tx509 2>/dev/null | ||
153 | echo test first x509v3 certificate | ||
154 | sh ./tx509 v3-cert1.pem 2>/dev/null | ||
155 | echo test second x509v3 certificate | ||
156 | sh ./tx509 v3-cert2.pem 2>/dev/null | ||
157 | |||
158 | test_rsa: | ||
159 | @sh ./trsa 2>/dev/null | ||
160 | |||
161 | test_crl: | ||
162 | @sh ./tcrl 2>/dev/null | ||
163 | |||
164 | test_sid: | ||
165 | @sh ./tsid 2>/dev/null | ||
166 | |||
167 | test_req: | ||
168 | @sh ./treq 2>/dev/null | ||
169 | @sh ./treq testreq2.pem 2>/dev/null | ||
170 | |||
171 | test_pkcs7: | ||
172 | @sh ./tpkcs7 2>/dev/null | ||
173 | @sh ./tpkcs7d 2>/dev/null | ||
174 | |||
175 | test_bn: | ||
176 | @echo 'test a^b%c implementations' | ||
177 | ./$(EXPTEST) | ||
178 | @echo starting big number library test, could take a while... | ||
179 | @(./$(BNTEST)|bc) | awk '{ \ | ||
180 | if ($$0 != "0") {print "error"; exit(1); } \ | ||
181 | if (((NR+1)%64) == 0) print NR+1," tests done"; }' | ||
182 | |||
183 | test_verify: | ||
184 | @echo "The following command should have some OK's and some failures" | ||
185 | @echo "There are definitly a few expired certificates" | ||
186 | ../apps/ssleay verify -CApath ../certs ../certs/*.pem | ||
187 | |||
188 | test_dh: | ||
189 | @echo "Generate as set of DH parameters" | ||
190 | ./$(DHTEST) | ||
191 | |||
192 | test_dsa: | ||
193 | @echo "Generate as set of DSA parameters" | ||
194 | ./$(DSATEST) | ||
195 | |||
196 | test_reqgen: | ||
197 | @echo "Generate and verify a certificate request" | ||
198 | @sh ./testgen | ||
199 | |||
200 | test_ss: | ||
201 | @echo "Generate and certify a test certificate" | ||
202 | @sh ./testss | ||
203 | |||
204 | test_ssl: | ||
205 | @echo "test SSL protocol" | ||
206 | @sh ./testssl | ||
207 | |||
208 | test_ca: | ||
209 | @echo "Generate and certify a test certificate via the 'ca' program" | ||
210 | @sh ./testca | ||
211 | |||
212 | lint: | ||
213 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
214 | |||
215 | depend: | ||
216 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(SRC) | ||
217 | |||
218 | dclean: | ||
219 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
220 | mv -f Makefile.new $(MAKEFILE) | ||
221 | |||
222 | clean: | ||
223 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) *.ss log | ||
224 | |||
225 | $(DLIBSSL): | ||
226 | (cd ../ssl; $(MAKE)) | ||
227 | |||
228 | $(DLIBCRYPTO): | ||
229 | (cd ../crypto; $(MAKE)) | ||
230 | |||
231 | $(BNTEST): $(BNTEST).o $(DLIBCRYPTO) | ||
232 | $(CC) -o $(BNTEST) $(CFLAGS) $(BNTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
233 | |||
234 | $(EXPTEST): $(EXPTEST).o $(DLIBCRYPTO) | ||
235 | $(CC) -o $(EXPTEST) $(CFLAGS) $(EXPTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
236 | |||
237 | $(IDEATEST): $(IDEATEST).o $(DLIBCRYPTO) | ||
238 | $(CC) -o $(IDEATEST) $(CFLAGS) $(IDEATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
239 | |||
240 | $(MD2TEST): $(MD2TEST).o $(DLIBCRYPTO) | ||
241 | $(CC) -o $(MD2TEST) $(CFLAGS) $(MD2TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
242 | |||
243 | $(SHATEST): $(SHATEST).o $(DLIBCRYPTO) | ||
244 | $(CC) -o $(SHATEST) $(CFLAGS) $(SHATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
245 | |||
246 | $(SHA1TEST): $(SHA1TEST).o $(DLIBCRYPTO) | ||
247 | $(CC) -o $(SHA1TEST) $(CFLAGS) $(SHA1TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
248 | |||
249 | $(RMDTEST): $(RMDTEST).o $(DLIBCRYPTO) | ||
250 | $(CC) -o $(RMDTEST) $(CFLAGS) $(RMDTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
251 | |||
252 | $(MDC2TEST): $(MDC2TEST).o $(DLIBCRYPTO) | ||
253 | $(CC) -o $(MDC2TEST) $(CFLAGS) $(MDC2TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
254 | |||
255 | $(MD5TEST): $(MD5TEST).o $(DLIBCRYPTO) | ||
256 | $(CC) -o $(MD5TEST) $(CFLAGS) $(MD5TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
257 | |||
258 | $(HMACTEST): $(HMACTEST).o $(DLIBCRYPTO) | ||
259 | $(CC) -o $(HMACTEST) $(CFLAGS) $(HMACTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
260 | |||
261 | $(RC2TEST): $(RC2TEST).o $(DLIBCRYPTO) | ||
262 | $(CC) -o $(RC2TEST) $(CFLAGS) $(RC2TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
263 | |||
264 | $(BFTEST): $(BFTEST).o $(DLIBCRYPTO) | ||
265 | $(CC) -o $(BFTEST) $(CFLAGS) $(BFTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
266 | |||
267 | $(CASTTEST): $(CASTTEST).o $(DLIBCRYPTO) | ||
268 | $(CC) -o $(CASTTEST) $(CFLAGS) $(CASTTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
269 | |||
270 | $(RC4TEST): $(RC4TEST).o $(DLIBCRYPTO) | ||
271 | $(CC) -o $(RC4TEST) $(CFLAGS) $(RC4TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
272 | |||
273 | $(RC5TEST): $(RC5TEST).o $(DLIBCRYPTO) | ||
274 | $(CC) -o $(RC5TEST) $(CFLAGS) $(RC5TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
275 | |||
276 | $(DESTEST): $(DESTEST).o $(DLIBCRYPTO) | ||
277 | $(CC) -o $(DESTEST) $(CFLAGS) $(DESTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
278 | |||
279 | $(RANDTEST): $(RANDTEST).o $(DLIBCRYPTO) | ||
280 | $(CC) -o $(RANDTEST) $(CFLAGS) $(RANDTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
281 | |||
282 | $(DHTEST): $(DHTEST).o $(DLIBCRYPTO) | ||
283 | $(CC) -o $(DHTEST) $(CFLAGS) $(DHTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
284 | |||
285 | $(DSATEST): $(DSATEST).o $(DLIBCRYPTO) | ||
286 | $(CC) -o $(DSATEST) $(CFLAGS) $(DSATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
287 | |||
288 | $(METHTEST): $(METHTEST).o $(DLIBCRYPTO) | ||
289 | $(CC) -o $(METHTEST) $(CFLAGS) $(METHTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
290 | |||
291 | $(SSLTEST): $(SSLTEST).o $(DLIBSSL) $(DLIBCRYPTO) | ||
292 | $(CC) -o $(SSLTEST) $(CFLAGS) $(SSLTEST).o $(PEX_LIBS) $(LIBSSL) $(LIBCRYPTO) $(EX_LIBS) | ||
293 | |||
294 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/src/tools/Makefile.ssl b/src/lib/libssl/src/tools/Makefile.ssl new file mode 100644 index 0000000000..537e97d268 --- /dev/null +++ b/src/lib/libssl/src/tools/Makefile.ssl | |||
@@ -0,0 +1,54 @@ | |||
1 | # | ||
2 | # SSLeay/tools/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= tools | ||
6 | TOP= .. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | |||
15 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
16 | |||
17 | GENERAL=Makefile.ssl | ||
18 | TEST= | ||
19 | APPS= c_hash c_info c_issuer c_name c_rehash | ||
20 | |||
21 | all: | ||
22 | |||
23 | install: | ||
24 | @for i in $(APPS) ; \ | ||
25 | do \ | ||
26 | (cp $$i $(INSTALLTOP)/bin/$$i; \ | ||
27 | chmod 755 $(INSTALLTOP)/bin/$$i ); \ | ||
28 | done; | ||
29 | |||
30 | files: | ||
31 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
32 | |||
33 | links: | ||
34 | /bin/rm -f Makefile | ||
35 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
36 | |||
37 | lint: | ||
38 | |||
39 | tags: | ||
40 | |||
41 | errors: | ||
42 | |||
43 | depend: | ||
44 | |||
45 | dclean: | ||
46 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
47 | mv -f Makefile.new $(MAKEFILE) | ||
48 | |||
49 | clean: | ||
50 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
51 | |||
52 | errors: | ||
53 | |||
54 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libssl/test/Makefile.ssl b/src/lib/libssl/test/Makefile.ssl new file mode 100644 index 0000000000..b3de76751e --- /dev/null +++ b/src/lib/libssl/test/Makefile.ssl | |||
@@ -0,0 +1,294 @@ | |||
1 | # | ||
2 | # test/Makefile.ssl | ||
3 | # | ||
4 | |||
5 | DIR= test | ||
6 | TOP= .. | ||
7 | CC= cc | ||
8 | INCLUDES= -I../include | ||
9 | CFLAG= -g | ||
10 | INSTALLTOP= /usr/local/ssl | ||
11 | MAKEFILE= Makefile.ssl | ||
12 | MAKE= make -f $(MAKEFILE) | ||
13 | MAKEDEPEND= makedepend -f$(MAKEFILE) | ||
14 | |||
15 | PEX_LIBS= | ||
16 | EX_LIBS= #-lnsl -lsocket | ||
17 | |||
18 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
19 | |||
20 | GENERAL=Makefile.ssl | ||
21 | |||
22 | DLIBCRYPTO= ../libcrypto.a | ||
23 | DLIBSSL= ../libssl.a | ||
24 | LIBCRYPTO= -L.. -lcrypto | ||
25 | LIBSSL= -L.. -lssl | ||
26 | |||
27 | BNTEST= bntest | ||
28 | EXPTEST= exptest | ||
29 | IDEATEST= ideatest | ||
30 | SHATEST= shatest | ||
31 | SHA1TEST= sha1test | ||
32 | MDC2TEST= mdc2test | ||
33 | RMDTEST= rmdtest | ||
34 | MD2TEST= md2test | ||
35 | MD5TEST= md5test | ||
36 | HMACTEST= hmactest | ||
37 | RC2TEST= rc2test | ||
38 | RC4TEST= rc4test | ||
39 | RC5TEST= rc5test | ||
40 | BFTEST= bftest | ||
41 | CASTTEST= casttest | ||
42 | DESTEST= destest | ||
43 | RANDTEST= randtest | ||
44 | DHTEST= dhtest | ||
45 | DSATEST= dsatest | ||
46 | METHTEST= methtest | ||
47 | SSLTEST= ssltest | ||
48 | |||
49 | EXE= $(BNTEST) $(IDEATEST) $(MD2TEST) $(MD5TEST) $(HMACTEST) \ | ||
50 | $(RC2TEST) $(RC4TEST) $(RC5TEST) \ | ||
51 | $(DESTEST) $(SHATEST) $(SHA1TEST) $(MDC2TEST) $(RMDTEST) \ | ||
52 | $(RANDTEST) $(DHTEST) \ | ||
53 | $(BFTEST) $(CASTTEST) $(SSLTEST) $(EXPTEST) $(DSATEST) | ||
54 | |||
55 | # $(METHTEST) | ||
56 | |||
57 | OBJ= $(BNTEST).o $(IDEATEST).o $(MD2TEST).o $(MD5TEST).o $(HMACTEST).o \ | ||
58 | $(RC2TEST).o $(RC4TEST).o $(RC5TEST).o \ | ||
59 | $(DESTEST).o $(SHATEST).o $(SHA1TEST).o $(MDC2TEST).o $(RMDTEST).o \ | ||
60 | $(RANDTEST).o $(DHTEST).o $(CASTTEST).o \ | ||
61 | $(BFTEST).o $(SSLTEST).o $(DSATEST).o $(EXPTEST).o | ||
62 | SRC= $(BNTEST).c $(IDEATEST).c $(MD2TEST).c $(MD5TEST).c $(HMACTEST).c \ | ||
63 | $(RC2TEST).c $(RC4TEST).c $(RC5TEST).c \ | ||
64 | $(DESTEST).c $(SHATEST).c $(SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \ | ||
65 | $(RANDTEST).c $(DHTEST).c $(CASTTEST).c \ | ||
66 | $(BFTEST).c $(SSLTEST).c $(DSATEST).c $(EXPTEST).c | ||
67 | |||
68 | EXHEADER= | ||
69 | HEADER= $(EXHEADER) | ||
70 | |||
71 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
72 | |||
73 | top: | ||
74 | (cd ..; $(MAKE) DIRS=$(DIR) all) | ||
75 | |||
76 | all: exe | ||
77 | |||
78 | exe: $(EXE) | ||
79 | |||
80 | files: | ||
81 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
82 | |||
83 | links: | ||
84 | /bin/rm -f Makefile | ||
85 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
86 | |||
87 | errors: | ||
88 | |||
89 | install: | ||
90 | |||
91 | tags: | ||
92 | ctags $(SRC) | ||
93 | |||
94 | tests: exe apps \ | ||
95 | test_des test_idea test_sha test_md5 test_hmac test_md2 test_mdc2 \ | ||
96 | test_rc2 test_rc4 test_rc5 test_bf test_cast \ | ||
97 | test_rand test_enc test_x509 test_rsa test_crl test_sid test_req \ | ||
98 | test_pkcs7 test_bn test_verify test_dh test_dsa test_reqgen \ | ||
99 | test_ss test_ssl test_ca | ||
100 | |||
101 | apps: | ||
102 | @(cd ../apps; $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' all) | ||
103 | |||
104 | test_des: | ||
105 | #./$(DESTEST) | ||
106 | |||
107 | test_idea: | ||
108 | ./$(IDEATEST) | ||
109 | |||
110 | test_sha: | ||
111 | ./$(SHATEST) | ||
112 | ./$(SHA1TEST) | ||
113 | |||
114 | test_mdc2: | ||
115 | ./$(MDC2TEST) | ||
116 | |||
117 | test_md5: | ||
118 | ./$(MD5TEST) | ||
119 | |||
120 | test_hmac: | ||
121 | ./$(HMACTEST) | ||
122 | |||
123 | test_md2: | ||
124 | ./$(MD2TEST) | ||
125 | |||
126 | test_rmd: | ||
127 | ./$(RMDTEST) | ||
128 | |||
129 | test_bf: | ||
130 | ./$(BFTEST) | ||
131 | |||
132 | test_cast: | ||
133 | ./$(CASTTEST) | ||
134 | |||
135 | test_rc2: | ||
136 | ./$(RC2TEST) | ||
137 | |||
138 | test_rc4: | ||
139 | ./$(RC4TEST) | ||
140 | |||
141 | test_rc5: | ||
142 | ./$(RC5TEST) | ||
143 | |||
144 | test_rand: | ||
145 | ./$(RANDTEST) | ||
146 | |||
147 | test_enc: | ||
148 | @sh ./testenc | ||
149 | |||
150 | test_x509: | ||
151 | echo test normal x509v1 certificate | ||
152 | sh ./tx509 2>/dev/null | ||
153 | echo test first x509v3 certificate | ||
154 | sh ./tx509 v3-cert1.pem 2>/dev/null | ||
155 | echo test second x509v3 certificate | ||
156 | sh ./tx509 v3-cert2.pem 2>/dev/null | ||
157 | |||
158 | test_rsa: | ||
159 | @sh ./trsa 2>/dev/null | ||
160 | |||
161 | test_crl: | ||
162 | @sh ./tcrl 2>/dev/null | ||
163 | |||
164 | test_sid: | ||
165 | @sh ./tsid 2>/dev/null | ||
166 | |||
167 | test_req: | ||
168 | @sh ./treq 2>/dev/null | ||
169 | @sh ./treq testreq2.pem 2>/dev/null | ||
170 | |||
171 | test_pkcs7: | ||
172 | @sh ./tpkcs7 2>/dev/null | ||
173 | @sh ./tpkcs7d 2>/dev/null | ||
174 | |||
175 | test_bn: | ||
176 | @echo 'test a^b%c implementations' | ||
177 | ./$(EXPTEST) | ||
178 | @echo starting big number library test, could take a while... | ||
179 | @(./$(BNTEST)|bc) | awk '{ \ | ||
180 | if ($$0 != "0") {print "error"; exit(1); } \ | ||
181 | if (((NR+1)%64) == 0) print NR+1," tests done"; }' | ||
182 | |||
183 | test_verify: | ||
184 | @echo "The following command should have some OK's and some failures" | ||
185 | @echo "There are definitly a few expired certificates" | ||
186 | ../apps/ssleay verify -CApath ../certs ../certs/*.pem | ||
187 | |||
188 | test_dh: | ||
189 | @echo "Generate as set of DH parameters" | ||
190 | ./$(DHTEST) | ||
191 | |||
192 | test_dsa: | ||
193 | @echo "Generate as set of DSA parameters" | ||
194 | ./$(DSATEST) | ||
195 | |||
196 | test_reqgen: | ||
197 | @echo "Generate and verify a certificate request" | ||
198 | @sh ./testgen | ||
199 | |||
200 | test_ss: | ||
201 | @echo "Generate and certify a test certificate" | ||
202 | @sh ./testss | ||
203 | |||
204 | test_ssl: | ||
205 | @echo "test SSL protocol" | ||
206 | @sh ./testssl | ||
207 | |||
208 | test_ca: | ||
209 | @echo "Generate and certify a test certificate via the 'ca' program" | ||
210 | @sh ./testca | ||
211 | |||
212 | lint: | ||
213 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
214 | |||
215 | depend: | ||
216 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(SRC) | ||
217 | |||
218 | dclean: | ||
219 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
220 | mv -f Makefile.new $(MAKEFILE) | ||
221 | |||
222 | clean: | ||
223 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) *.ss log | ||
224 | |||
225 | $(DLIBSSL): | ||
226 | (cd ../ssl; $(MAKE)) | ||
227 | |||
228 | $(DLIBCRYPTO): | ||
229 | (cd ../crypto; $(MAKE)) | ||
230 | |||
231 | $(BNTEST): $(BNTEST).o $(DLIBCRYPTO) | ||
232 | $(CC) -o $(BNTEST) $(CFLAGS) $(BNTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
233 | |||
234 | $(EXPTEST): $(EXPTEST).o $(DLIBCRYPTO) | ||
235 | $(CC) -o $(EXPTEST) $(CFLAGS) $(EXPTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
236 | |||
237 | $(IDEATEST): $(IDEATEST).o $(DLIBCRYPTO) | ||
238 | $(CC) -o $(IDEATEST) $(CFLAGS) $(IDEATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
239 | |||
240 | $(MD2TEST): $(MD2TEST).o $(DLIBCRYPTO) | ||
241 | $(CC) -o $(MD2TEST) $(CFLAGS) $(MD2TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
242 | |||
243 | $(SHATEST): $(SHATEST).o $(DLIBCRYPTO) | ||
244 | $(CC) -o $(SHATEST) $(CFLAGS) $(SHATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
245 | |||
246 | $(SHA1TEST): $(SHA1TEST).o $(DLIBCRYPTO) | ||
247 | $(CC) -o $(SHA1TEST) $(CFLAGS) $(SHA1TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
248 | |||
249 | $(RMDTEST): $(RMDTEST).o $(DLIBCRYPTO) | ||
250 | $(CC) -o $(RMDTEST) $(CFLAGS) $(RMDTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
251 | |||
252 | $(MDC2TEST): $(MDC2TEST).o $(DLIBCRYPTO) | ||
253 | $(CC) -o $(MDC2TEST) $(CFLAGS) $(MDC2TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
254 | |||
255 | $(MD5TEST): $(MD5TEST).o $(DLIBCRYPTO) | ||
256 | $(CC) -o $(MD5TEST) $(CFLAGS) $(MD5TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
257 | |||
258 | $(HMACTEST): $(HMACTEST).o $(DLIBCRYPTO) | ||
259 | $(CC) -o $(HMACTEST) $(CFLAGS) $(HMACTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
260 | |||
261 | $(RC2TEST): $(RC2TEST).o $(DLIBCRYPTO) | ||
262 | $(CC) -o $(RC2TEST) $(CFLAGS) $(RC2TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
263 | |||
264 | $(BFTEST): $(BFTEST).o $(DLIBCRYPTO) | ||
265 | $(CC) -o $(BFTEST) $(CFLAGS) $(BFTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
266 | |||
267 | $(CASTTEST): $(CASTTEST).o $(DLIBCRYPTO) | ||
268 | $(CC) -o $(CASTTEST) $(CFLAGS) $(CASTTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
269 | |||
270 | $(RC4TEST): $(RC4TEST).o $(DLIBCRYPTO) | ||
271 | $(CC) -o $(RC4TEST) $(CFLAGS) $(RC4TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
272 | |||
273 | $(RC5TEST): $(RC5TEST).o $(DLIBCRYPTO) | ||
274 | $(CC) -o $(RC5TEST) $(CFLAGS) $(RC5TEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
275 | |||
276 | $(DESTEST): $(DESTEST).o $(DLIBCRYPTO) | ||
277 | $(CC) -o $(DESTEST) $(CFLAGS) $(DESTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
278 | |||
279 | $(RANDTEST): $(RANDTEST).o $(DLIBCRYPTO) | ||
280 | $(CC) -o $(RANDTEST) $(CFLAGS) $(RANDTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
281 | |||
282 | $(DHTEST): $(DHTEST).o $(DLIBCRYPTO) | ||
283 | $(CC) -o $(DHTEST) $(CFLAGS) $(DHTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
284 | |||
285 | $(DSATEST): $(DSATEST).o $(DLIBCRYPTO) | ||
286 | $(CC) -o $(DSATEST) $(CFLAGS) $(DSATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
287 | |||
288 | $(METHTEST): $(METHTEST).o $(DLIBCRYPTO) | ||
289 | $(CC) -o $(METHTEST) $(CFLAGS) $(METHTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) | ||
290 | |||
291 | $(SSLTEST): $(SSLTEST).o $(DLIBSSL) $(DLIBCRYPTO) | ||
292 | $(CC) -o $(SSLTEST) $(CFLAGS) $(SSLTEST).o $(PEX_LIBS) $(LIBSSL) $(LIBCRYPTO) $(EX_LIBS) | ||
293 | |||
294 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||