diff options
Diffstat (limited to '')
36 files changed, 3569 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. | ||