diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/ssl-patent/Makefile | 90 | ||||
-rw-r--r-- | src/lib/libssl/ssl-patent/shlib_version | 2 | ||||
-rw-r--r-- | src/lib/libssl/ssl/Makefile | 90 | ||||
-rw-r--r-- | src/lib/libssl/ssl/shlib_version | 2 | ||||
-rw-r--r-- | src/lib/libssl/ssleay.cnf | 65 |
5 files changed, 249 insertions, 0 deletions
diff --git a/src/lib/libssl/ssl-patent/Makefile b/src/lib/libssl/ssl-patent/Makefile new file mode 100644 index 0000000000..3816de81ea --- /dev/null +++ b/src/lib/libssl/ssl-patent/Makefile | |||
@@ -0,0 +1,90 @@ | |||
1 | |||
2 | LIB= ssl | ||
3 | |||
4 | SSLEAYDIST= src-patent | ||
5 | |||
6 | LSSL_SRC= ${.CURDIR}/../${SSLEAYDIST}/ssl | ||
7 | LCRYPTO_SRC= ${.CURDIR}/../${SSLEAYDIST}/crypto | ||
8 | |||
9 | .if ${MACHINE_ARCH} == "i386" | ||
10 | CFLAGS+= -DL_ENDIAN -DBN_ASM | ||
11 | .else | ||
12 | .if ${MACHINE} == "arc" | ||
13 | CFLAGS+= -DL_ENDIAN | ||
14 | .else | ||
15 | .if ${MACHINE} == "galileo" | ||
16 | CFLAGS+= -DL_ENDIAN | ||
17 | .else | ||
18 | .if ${MACHINE} == "pmax" | ||
19 | CFLAGS+= -DL_ENDIAN | ||
20 | .else | ||
21 | .if ${MACHINE_ARCH} == "alpha" | ||
22 | # no ENDIAN stuff defined for alpha | ||
23 | .else | ||
24 | CFLAGS+= -DB_ENDIAN | ||
25 | .endif | ||
26 | .endif | ||
27 | .endif | ||
28 | .endif | ||
29 | .endif | ||
30 | |||
31 | CFLAGS+= -DNO_IDEA -DTERMIOS -DANSI_SOURCE | ||
32 | CFLAGS+= -I${.CURDIR}/../${SSLEAYDIST} | ||
33 | CFLAGS+= -I${LSSL_SRC} -I${LCRYPTO_SRC} | ||
34 | CFLAGS+= -I${LCRYPTO_SRC}/md2 | ||
35 | CFLAGS+= -I${LCRYPTO_SRC}/md5 | ||
36 | CFLAGS+= -I${LCRYPTO_SRC}/sha | ||
37 | CFLAGS+= -I${LCRYPTO_SRC}/mdc2 | ||
38 | CFLAGS+= -I${LCRYPTO_SRC}/hmac | ||
39 | CFLAGS+= -I${LCRYPTO_SRC}/ripemd | ||
40 | CFLAGS+= -I${LCRYPTO_SRC}/des | ||
41 | CFLAGS+= -I${LCRYPTO_SRC}/rc2 | ||
42 | CFLAGS+= -I${LCRYPTO_SRC}/rc4 | ||
43 | CFLAGS+= -I${LCRYPTO_SRC}/rc5 | ||
44 | CFLAGS+= -I${LCRYPTO_SRC}/idea | ||
45 | CFLAGS+= -I${LCRYPTO_SRC}/bf | ||
46 | CFLAGS+= -I${LCRYPTO_SRC}/cast | ||
47 | CFLAGS+= -I${LCRYPTO_SRC}/bn | ||
48 | CFLAGS+= -I${LCRYPTO_SRC}/rsa | ||
49 | CFLAGS+= -I${LCRYPTO_SRC}/dsa | ||
50 | CFLAGS+= -I${LCRYPTO_SRC}/dh | ||
51 | CFLAGS+= -I${LCRYPTO_SRC}/buffer | ||
52 | CFLAGS+= -I${LCRYPTO_SRC}/bio | ||
53 | CFLAGS+= -I${LCRYPTO_SRC}/stack | ||
54 | CFLAGS+= -I${LCRYPTO_SRC}/lhash | ||
55 | CFLAGS+= -I${LCRYPTO_SRC}/rand | ||
56 | CFLAGS+= -I${LCRYPTO_SRC}/err | ||
57 | CFLAGS+= -I${LCRYPTO_SRC}/objects | ||
58 | CFLAGS+= -I${LCRYPTO_SRC}/evp | ||
59 | CFLAGS+= -I${LCRYPTO_SRC}/pem | ||
60 | CFLAGS+= -I${LCRYPTO_SRC}/asn1 | ||
61 | CFLAGS+= -I${LCRYPTO_SRC}/x509 | ||
62 | CFLAGS+= -I${LCRYPTO_SRC}/conf | ||
63 | CFLAGS+= -I${LCRYPTO_SRC}/txt_db | ||
64 | CFLAGS+= -I${LCRYPTO_SRC}/pkcs7 | ||
65 | |||
66 | SRCS= s2_meth.c s2_srvr.c s2_clnt.c s2_lib.c s2_enc.c s2_pkt.c \ | ||
67 | s3_meth.c s3_srvr.c s3_clnt.c s3_lib.c s3_enc.c s3_pkt.c s3_both.c \ | ||
68 | s23_meth.c s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \ | ||
69 | t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \ | ||
70 | ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \ | ||
71 | ssl_ciph.c ssl_stat.c ssl_rsa.c \ | ||
72 | ssl_asn1.c ssl_txt.c ssl_algs.c \ | ||
73 | bio_ssl.c ssl_err.c | ||
74 | |||
75 | HDRS= ssl.h ssl2.h ssl3.h ssl23.h tls1.h | ||
76 | |||
77 | .PATH: ${LSSL_SRC} | ||
78 | |||
79 | includes: | ||
80 | @test -d ${DESTDIR}/usr/include/ssl || mkdir ${DESTDIR}/usr/include/ssl | ||
81 | @cd ${LSSL_SRC}; for i in $(HDRS); do \ | ||
82 | j="cmp -s $$i ${DESTDIR}/usr/include/ssl/`basename $$i` || \ | ||
83 | ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ | ||
84 | $$i ${DESTDIR}/usr/include/ssl"; \ | ||
85 | echo $$j; \ | ||
86 | eval "$$j"; \ | ||
87 | done | ||
88 | |||
89 | |||
90 | .include <bsd.lib.mk> | ||
diff --git a/src/lib/libssl/ssl-patent/shlib_version b/src/lib/libssl/ssl-patent/shlib_version new file mode 100644 index 0000000000..893819d18f --- /dev/null +++ b/src/lib/libssl/ssl-patent/shlib_version | |||
@@ -0,0 +1,2 @@ | |||
1 | major=1 | ||
2 | minor=1 | ||
diff --git a/src/lib/libssl/ssl/Makefile b/src/lib/libssl/ssl/Makefile new file mode 100644 index 0000000000..7a2b6da6e0 --- /dev/null +++ b/src/lib/libssl/ssl/Makefile | |||
@@ -0,0 +1,90 @@ | |||
1 | |||
2 | LIB= ssl | ||
3 | |||
4 | SSLEAYDIST= src | ||
5 | |||
6 | LSSL_SRC= ${.CURDIR}/../${SSLEAYDIST}/ssl | ||
7 | LCRYPTO_SRC= ${.CURDIR}/../${SSLEAYDIST}/crypto | ||
8 | |||
9 | .if ${MACHINE_ARCH} == "i386" | ||
10 | CFLAGS+= -DL_ENDIAN -DBN_ASM | ||
11 | .else | ||
12 | .if ${MACHINE_ARCH} == "arc" | ||
13 | CFLAGS+= -DL_ENDIAN | ||
14 | .else | ||
15 | .if ${MACHINE_ARCH} == "pmax" | ||
16 | CFLAGS+= -DL_ENDIAN | ||
17 | .else | ||
18 | .if ${MACHINE_ARCH} == "alpha" | ||
19 | # no ENDIAN stuff defined for alpha | ||
20 | .else | ||
21 | CFLAGS+= -DB_ENDIAN | ||
22 | .endif | ||
23 | .endif | ||
24 | .endif | ||
25 | .endif | ||
26 | |||
27 | CFLAGS+= -DNO_IDEA -DTERMIOS -DANSI_SOURCE | ||
28 | CFLAGS+= -I${.CURDIR}/../${SSLEAYDIST} | ||
29 | CFLAGS+= -I${LSSL_SRC} -I${LCRYPTO_SRC} | ||
30 | CFLAGS+= -I${LCRYPTO_SRC}/md2 | ||
31 | CFLAGS+= -I${LCRYPTO_SRC}/md5 | ||
32 | CFLAGS+= -I${LCRYPTO_SRC}/sha | ||
33 | CFLAGS+= -I${LCRYPTO_SRC}/mdc2 | ||
34 | CFLAGS+= -I${LCRYPTO_SRC}/hmac | ||
35 | CFLAGS+= -I${LCRYPTO_SRC}/ripemd | ||
36 | CFLAGS+= -I${LCRYPTO_SRC}/des | ||
37 | CFLAGS+= -I${LCRYPTO_SRC}/rc2 | ||
38 | CFLAGS+= -I${LCRYPTO_SRC}/rc4 | ||
39 | CFLAGS+= -I${LCRYPTO_SRC}/rc5 | ||
40 | CFLAGS+= -I${LCRYPTO_SRC}/idea | ||
41 | CFLAGS+= -I${LCRYPTO_SRC}/bf | ||
42 | CFLAGS+= -I${LCRYPTO_SRC}/cast | ||
43 | CFLAGS+= -I${LCRYPTO_SRC}/bn | ||
44 | CFLAGS+= -I${LCRYPTO_SRC}/rsa | ||
45 | CFLAGS+= -I${LCRYPTO_SRC}/dsa | ||
46 | CFLAGS+= -I${LCRYPTO_SRC}/dh | ||
47 | CFLAGS+= -I${LCRYPTO_SRC}/buffer | ||
48 | CFLAGS+= -I${LCRYPTO_SRC}/bio | ||
49 | CFLAGS+= -I${LCRYPTO_SRC}/stack | ||
50 | CFLAGS+= -I${LCRYPTO_SRC}/lhash | ||
51 | CFLAGS+= -I${LCRYPTO_SRC}/rand | ||
52 | CFLAGS+= -I${LCRYPTO_SRC}/err | ||
53 | CFLAGS+= -I${LCRYPTO_SRC}/objects | ||
54 | CFLAGS+= -I${LCRYPTO_SRC}/evp | ||
55 | CFLAGS+= -I${LCRYPTO_SRC}/pem | ||
56 | CFLAGS+= -I${LCRYPTO_SRC}/asn1 | ||
57 | CFLAGS+= -I${LCRYPTO_SRC}/x509 | ||
58 | CFLAGS+= -I${LCRYPTO_SRC}/conf | ||
59 | CFLAGS+= -I${LCRYPTO_SRC}/txt_db | ||
60 | CFLAGS+= -I${LCRYPTO_SRC}/pkcs7 | ||
61 | |||
62 | SRCS= s2_meth.c s2_srvr.c s2_clnt.c s2_lib.c s2_enc.c s2_pkt.c \ | ||
63 | s3_meth.c s3_srvr.c s3_clnt.c s3_lib.c s3_enc.c s3_pkt.c s3_both.c \ | ||
64 | s23_meth.c s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \ | ||
65 | t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \ | ||
66 | ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \ | ||
67 | ssl_ciph.c ssl_stat.c ssl_rsa.c \ | ||
68 | ssl_asn1.c ssl_txt.c ssl_algs.c \ | ||
69 | bio_ssl.c ssl_err.c | ||
70 | |||
71 | HDRS= ssl.h ssl2.h ssl3.h ssl23.h tls1.h | ||
72 | |||
73 | .PATH: ${LSSL_SRC} | ||
74 | |||
75 | includes: | ||
76 | @test -d ${DESTDIR}/usr/include/ssl || mkdir ${DESTDIR}/usr/include/ssl | ||
77 | @d=`mktemp -d /tmp/libsslXXXXXXXXXX`; \ | ||
78 | cd ${LSSL_SRC}; for i in $(HDRS); do \ | ||
79 | f=`basename $$i`; \ | ||
80 | j="sed 's/#include \"\\([^\"]*\\)\"/#include <ssl\\/\\1>/' \ | ||
81 | $$i >$$d/$$f && \ | ||
82 | (cmp -s $$d/$$f ${DESTDIR}/usr/include/ssl/$$f || \ | ||
83 | ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ | ||
84 | $$d/$$f ${DESTDIR}/usr/include/ssl)"; \ | ||
85 | echo $$j; \ | ||
86 | eval "$$j"; \ | ||
87 | done; \ | ||
88 | rm -rf $$d | ||
89 | |||
90 | .include <bsd.lib.mk> | ||
diff --git a/src/lib/libssl/ssl/shlib_version b/src/lib/libssl/ssl/shlib_version new file mode 100644 index 0000000000..1edea46de9 --- /dev/null +++ b/src/lib/libssl/ssl/shlib_version | |||
@@ -0,0 +1,2 @@ | |||
1 | major=1 | ||
2 | minor=0 | ||
diff --git a/src/lib/libssl/ssleay.cnf b/src/lib/libssl/ssleay.cnf new file mode 100644 index 0000000000..c6480ee465 --- /dev/null +++ b/src/lib/libssl/ssleay.cnf | |||
@@ -0,0 +1,65 @@ | |||
1 | # | ||
2 | # SSLeay example configuration file. | ||
3 | # This is mostly being used for generation of certificate requests. | ||
4 | # | ||
5 | |||
6 | RANDFILE = /dev/arandom | ||
7 | |||
8 | #################################################################### | ||
9 | [ req ] | ||
10 | default_bits = 1024 | ||
11 | default_keyfile = privkey.pem | ||
12 | distinguished_name = req_distinguished_name | ||
13 | attributes = req_attributes | ||
14 | |||
15 | [ req_distinguished_name ] | ||
16 | countryName = Country Name (2 letter code) | ||
17 | #countryName_default = AU | ||
18 | countryName_min = 2 | ||
19 | countryName_max = 2 | ||
20 | |||
21 | stateOrProvinceName = State or Province Name (full name) | ||
22 | #stateOrProvinceName_default = Some-State | ||
23 | |||
24 | localityName = Locality Name (eg, city) | ||
25 | |||
26 | 0.organizationName = Organization Name (eg, company) | ||
27 | #0.organizationName_default = Internet Widgits Pty Ltd | ||
28 | |||
29 | # we can do this but it is not needed normally :-) | ||
30 | #1.organizationName = Second Organization Name (eg, company) | ||
31 | #1.organizationName_default = CryptSoft Pty Ltd | ||
32 | |||
33 | organizationalUnitName = Organizational Unit Name (eg, section) | ||
34 | #organizationalUnitName_default = | ||
35 | |||
36 | commonName = Common Name (eg, fully qualified host name) | ||
37 | commonName_max = 64 | ||
38 | |||
39 | emailAddress = Email Address | ||
40 | emailAddress_max = 64 | ||
41 | |||
42 | [ req_attributes ] | ||
43 | challengePassword = A challenge password | ||
44 | challengePassword_min = 4 | ||
45 | challengePassword_max = 20 | ||
46 | |||
47 | unstructuredName = An optional company name | ||
48 | |||
49 | [ x509v3_extensions ] | ||
50 | |||
51 | nsCaRevocationUrl = http://www.cryptsoft.com/ca-crl.pem | ||
52 | nsComment = "This is a comment" | ||
53 | |||
54 | # under ASN.1, the 0 bit would be encoded as 80 | ||
55 | nsCertType = 0x40 | ||
56 | |||
57 | #nsBaseUrl | ||
58 | #nsRevocationUrl | ||
59 | #nsRenewalUrl | ||
60 | #nsCaPolicyUrl | ||
61 | #nsSslServerName | ||
62 | #nsCertSequence | ||
63 | #nsCertExt | ||
64 | #nsDataType | ||
65 | |||