summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1
diff options
context:
space:
mode:
authorbeck <>2000-12-15 02:58:47 +0000
committerbeck <>2000-12-15 02:58:47 +0000
commit9200bb13d15da4b2a23e6bc92c20e95b74aa2113 (patch)
tree5c52d628ec1e34be76e7ef2a4235d248b7c44d24 /src/lib/libcrypto/asn1
parente131d25072e3d4197ba4b9bcc0d1b27d34d6488d (diff)
downloadopenbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.gz
openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.bz2
openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.zip
openssl-engine-0.9.6 merge
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r--src/lib/libcrypto/asn1/Makefile.ssl989
-rw-r--r--src/lib/libcrypto/asn1/a_bitstr.c74
-rw-r--r--src/lib/libcrypto/asn1/a_bytes.c14
-rw-r--r--src/lib/libcrypto/asn1/a_digest.c4
-rw-r--r--src/lib/libcrypto/asn1/a_dup.c4
-rw-r--r--src/lib/libcrypto/asn1/a_enum.c165
-rw-r--r--src/lib/libcrypto/asn1/a_gentm.c4
-rw-r--r--src/lib/libcrypto/asn1/a_hdr.c2
-rw-r--r--src/lib/libcrypto/asn1/a_i2d_fp.c4
-rw-r--r--src/lib/libcrypto/asn1/a_int.c108
-rw-r--r--src/lib/libcrypto/asn1/a_mbstr.c20
-rw-r--r--src/lib/libcrypto/asn1/a_object.c62
-rw-r--r--src/lib/libcrypto/asn1/a_set.c12
-rw-r--r--src/lib/libcrypto/asn1/a_sign.c10
-rw-r--r--src/lib/libcrypto/asn1/a_strex.c533
-rw-r--r--src/lib/libcrypto/asn1/a_strnid.c19
-rw-r--r--src/lib/libcrypto/asn1/a_time.c4
-rw-r--r--src/lib/libcrypto/asn1/a_type.c18
-rw-r--r--src/lib/libcrypto/asn1/a_utctm.c90
-rw-r--r--src/lib/libcrypto/asn1/a_utf8.c16
-rw-r--r--src/lib/libcrypto/asn1/a_verify.c4
-rw-r--r--src/lib/libcrypto/asn1/asn1.h164
-rw-r--r--src/lib/libcrypto/asn1/asn1_lib.c23
-rw-r--r--src/lib/libcrypto/asn1/asn1_mac.h6
-rw-r--r--src/lib/libcrypto/asn1/asn1_par.c48
-rw-r--r--src/lib/libcrypto/asn1/asn_pack.c8
-rw-r--r--src/lib/libcrypto/asn1/charmap.h15
-rw-r--r--src/lib/libcrypto/asn1/charmap.pl80
-rw-r--r--src/lib/libcrypto/asn1/d2i_dsap.c2
-rw-r--r--src/lib/libcrypto/asn1/d2i_r_pu.c2
-rw-r--r--src/lib/libcrypto/asn1/d2i_s_pr.c1
-rw-r--r--src/lib/libcrypto/asn1/d2i_s_pu.c2
-rw-r--r--src/lib/libcrypto/asn1/f_enum.c6
-rw-r--r--src/lib/libcrypto/asn1/f_int.c6
-rw-r--r--src/lib/libcrypto/asn1/f_string.c6
-rw-r--r--src/lib/libcrypto/asn1/i2d_dhp.c4
-rw-r--r--src/lib/libcrypto/asn1/i2d_dsap.c4
-rw-r--r--src/lib/libcrypto/asn1/i2d_r_pr.c4
-rw-r--r--src/lib/libcrypto/asn1/i2d_r_pu.c4
-rw-r--r--src/lib/libcrypto/asn1/i2d_s_pr.c4
-rw-r--r--src/lib/libcrypto/asn1/i2d_s_pu.c4
-rw-r--r--src/lib/libcrypto/asn1/n_pkey.c62
-rw-r--r--src/lib/libcrypto/asn1/nsseq.c2
-rw-r--r--src/lib/libcrypto/asn1/p5_pbe.c4
-rw-r--r--src/lib/libcrypto/asn1/p5_pbev2.c6
-rw-r--r--src/lib/libcrypto/asn1/p7_dgst.c2
-rw-r--r--src/lib/libcrypto/asn1/p7_enc.c2
-rw-r--r--src/lib/libcrypto/asn1/p7_enc_c.c2
-rw-r--r--src/lib/libcrypto/asn1/p7_evp.c2
-rw-r--r--src/lib/libcrypto/asn1/p7_i_s.c2
-rw-r--r--src/lib/libcrypto/asn1/p7_lib.c112
-rw-r--r--src/lib/libcrypto/asn1/p7_recip.c2
-rw-r--r--src/lib/libcrypto/asn1/p7_s_e.c2
-rw-r--r--src/lib/libcrypto/asn1/p7_signd.c2
-rw-r--r--src/lib/libcrypto/asn1/p7_signi.c2
-rw-r--r--src/lib/libcrypto/asn1/p8_key.c4
-rw-r--r--src/lib/libcrypto/asn1/p8_pkey.c2
-rw-r--r--src/lib/libcrypto/asn1/t_pkey.c16
-rw-r--r--src/lib/libcrypto/asn1/t_x509.c2
-rw-r--r--src/lib/libcrypto/asn1/t_x509a.c8
-rw-r--r--src/lib/libcrypto/asn1/x_algor.c2
-rw-r--r--src/lib/libcrypto/asn1/x_attrib.c2
-rw-r--r--src/lib/libcrypto/asn1/x_cinf.c2
-rw-r--r--src/lib/libcrypto/asn1/x_crl.c21
-rw-r--r--src/lib/libcrypto/asn1/x_exten.c2
-rw-r--r--src/lib/libcrypto/asn1/x_info.c6
-rw-r--r--src/lib/libcrypto/asn1/x_name.c6
-rw-r--r--src/lib/libcrypto/asn1/x_pkey.c4
-rw-r--r--src/lib/libcrypto/asn1/x_pubkey.c10
-rw-r--r--src/lib/libcrypto/asn1/x_req.c25
-rw-r--r--src/lib/libcrypto/asn1/x_sig.c2
-rw-r--r--src/lib/libcrypto/asn1/x_spki.c4
-rw-r--r--src/lib/libcrypto/asn1/x_val.c2
-rw-r--r--src/lib/libcrypto/asn1/x_x509.c18
-rw-r--r--src/lib/libcrypto/asn1/x_x509a.c10
75 files changed, 2033 insertions, 868 deletions
diff --git a/src/lib/libcrypto/asn1/Makefile.ssl b/src/lib/libcrypto/asn1/Makefile.ssl
index a17a713a75..b8059ddffe 100644
--- a/src/lib/libcrypto/asn1/Makefile.ssl
+++ b/src/lib/libcrypto/asn1/Makefile.ssl
@@ -24,7 +24,7 @@ APPS=
24LIB=$(TOP)/libcrypto.a 24LIB=$(TOP)/libcrypto.a
25LIBSRC= a_object.c a_bitstr.c a_utctm.c a_gentm.c a_time.c a_int.c a_octet.c \ 25LIBSRC= a_object.c a_bitstr.c a_utctm.c a_gentm.c a_time.c a_int.c a_octet.c \
26 a_null.c a_print.c a_type.c a_set.c a_dup.c a_d2i_fp.c a_i2d_fp.c a_bmp.c \ 26 a_null.c a_print.c a_type.c a_set.c a_dup.c a_d2i_fp.c a_i2d_fp.c a_bmp.c \
27 a_enum.c a_vis.c a_utf8.c a_sign.c a_digest.c a_verify.c a_mbstr.c \ 27 a_enum.c a_vis.c a_utf8.c a_sign.c a_digest.c a_verify.c a_mbstr.c a_strex.c \
28 x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.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_x509a.c x_crl.c x_info.c x_spki.c nsseq.c \ 29 x_name.c x_cinf.c x_x509.c x_x509a.c x_crl.c x_info.c x_spki.c nsseq.c \
30 d2i_r_pr.c i2d_r_pr.c d2i_r_pu.c i2d_r_pu.c \ 30 d2i_r_pr.c i2d_r_pr.c d2i_r_pu.c i2d_r_pu.c \
@@ -39,7 +39,7 @@ LIBSRC= a_object.c a_bitstr.c a_utctm.c a_gentm.c a_time.c a_int.c a_octet.c \
39 evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p8_pkey.c 39 evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p8_pkey.c
40LIBOBJ= a_object.o a_bitstr.o a_utctm.o a_gentm.o a_time.o a_int.o a_octet.o \ 40LIBOBJ= a_object.o a_bitstr.o a_utctm.o a_gentm.o a_time.o a_int.o a_octet.o \
41 a_null.o a_print.o a_type.o a_set.o a_dup.o a_d2i_fp.o a_i2d_fp.o a_bmp.o \ 41 a_null.o a_print.o a_type.o a_set.o a_dup.o a_d2i_fp.o a_i2d_fp.o a_bmp.o \
42 a_enum.o a_vis.o a_utf8.o a_sign.o a_digest.o a_verify.o a_mbstr.o \ 42 a_enum.o a_vis.o a_utf8.o a_sign.o a_digest.o a_verify.o a_mbstr.o a_strex.o \
43 x_algor.o x_val.o x_pubkey.o x_sig.o x_req.o x_attrib.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_x509a.o x_crl.o x_info.o x_spki.o nsseq.o \ 44 x_name.o x_cinf.o x_x509.o x_x509a.o x_crl.o x_info.o x_spki.o nsseq.o \
45 d2i_r_pr.o i2d_r_pr.o d2i_r_pu.o i2d_r_pu.o \ 45 d2i_r_pr.o i2d_r_pr.o d2i_r_pu.o i2d_r_pu.o \
@@ -119,37 +119,43 @@ a_bitstr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
119a_bitstr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 119a_bitstr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
120a_bitstr.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 120a_bitstr.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
121a_bitstr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 121a_bitstr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
122a_bitstr.o: ../../include/openssl/opensslconf.h 122a_bitstr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
123a_bitstr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 123a_bitstr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
124a_bitstr.o: ../../include/openssl/stack.h ../cryptlib.h 124a_bitstr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
125a_bitstr.o: ../cryptlib.h
125a_bmp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 126a_bmp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
126a_bmp.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 127a_bmp.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
127a_bmp.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 128a_bmp.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
128a_bmp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 129a_bmp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
129a_bmp.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 130a_bmp.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
130a_bmp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 131a_bmp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
132a_bmp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
131a_bmp.o: ../cryptlib.h 133a_bmp.o: ../cryptlib.h
132a_bool.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 134a_bool.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
133a_bool.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 135a_bool.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
134a_bool.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 136a_bool.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
135a_bool.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 137a_bool.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
136a_bool.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 138a_bool.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
137a_bool.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 139a_bool.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
140a_bool.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
138a_bool.o: ../cryptlib.h 141a_bool.o: ../cryptlib.h
139a_bytes.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 142a_bytes.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
140a_bytes.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 143a_bytes.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
141a_bytes.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 144a_bytes.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
142a_bytes.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 145a_bytes.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
143a_bytes.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 146a_bytes.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
144a_bytes.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 147a_bytes.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
145a_bytes.o: ../../include/openssl/stack.h ../cryptlib.h 148a_bytes.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
149a_bytes.o: ../../include/openssl/symhacks.h ../cryptlib.h
146a_d2i_fp.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 150a_d2i_fp.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
147a_d2i_fp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 151a_d2i_fp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
148a_d2i_fp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 152a_d2i_fp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
149a_d2i_fp.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 153a_d2i_fp.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
150a_d2i_fp.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 154a_d2i_fp.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
155a_d2i_fp.o: ../../include/openssl/opensslconf.h
151a_d2i_fp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 156a_d2i_fp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
152a_d2i_fp.o: ../../include/openssl/stack.h ../cryptlib.h 157a_d2i_fp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
158a_d2i_fp.o: ../cryptlib.h
153a_digest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 159a_digest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
154a_digest.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h 160a_digest.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
155a_digest.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h 161a_digest.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
@@ -157,107 +163,124 @@ a_digest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
157a_digest.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 163a_digest.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
158a_digest.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 164a_digest.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
159a_digest.o: ../../include/openssl/err.h ../../include/openssl/evp.h 165a_digest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
160a_digest.o: ../../include/openssl/idea.h ../../include/openssl/md2.h 166a_digest.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
167a_digest.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
161a_digest.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 168a_digest.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
162a_digest.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 169a_digest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
170a_digest.o: ../../include/openssl/opensslconf.h
163a_digest.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 171a_digest.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
164a_digest.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 172a_digest.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
165a_digest.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 173a_digest.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
166a_digest.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 174a_digest.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
167a_digest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 175a_digest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
168a_digest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 176a_digest.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
169a_digest.o: ../cryptlib.h 177a_digest.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
170a_dup.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 178a_dup.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
171a_dup.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 179a_dup.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
172a_dup.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 180a_dup.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
173a_dup.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 181a_dup.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
174a_dup.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 182a_dup.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
175a_dup.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 183a_dup.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
176a_dup.o: ../../include/openssl/stack.h ../cryptlib.h 184a_dup.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
185a_dup.o: ../../include/openssl/symhacks.h ../cryptlib.h
177a_enum.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 186a_enum.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
178a_enum.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 187a_enum.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
179a_enum.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 188a_enum.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
180a_enum.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 189a_enum.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
181a_enum.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 190a_enum.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
182a_enum.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 191a_enum.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
192a_enum.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
183a_enum.o: ../cryptlib.h 193a_enum.o: ../cryptlib.h
184a_gentm.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 194a_gentm.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
185a_gentm.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 195a_gentm.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
186a_gentm.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 196a_gentm.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
187a_gentm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 197a_gentm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
188a_gentm.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 198a_gentm.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
189a_gentm.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 199a_gentm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
200a_gentm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
190a_gentm.o: ../cryptlib.h 201a_gentm.o: ../cryptlib.h
191a_hdr.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 202a_hdr.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
192a_hdr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 203a_hdr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
193a_hdr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 204a_hdr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
194a_hdr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 205a_hdr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
195a_hdr.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 206a_hdr.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
196a_hdr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 207a_hdr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
197a_hdr.o: ../../include/openssl/stack.h ../cryptlib.h 208a_hdr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
209a_hdr.o: ../../include/openssl/symhacks.h ../cryptlib.h
198a_i2d_fp.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 210a_i2d_fp.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
199a_i2d_fp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 211a_i2d_fp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
200a_i2d_fp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 212a_i2d_fp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
201a_i2d_fp.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 213a_i2d_fp.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
202a_i2d_fp.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 214a_i2d_fp.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
215a_i2d_fp.o: ../../include/openssl/opensslconf.h
203a_i2d_fp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 216a_i2d_fp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
204a_i2d_fp.o: ../../include/openssl/stack.h ../cryptlib.h 217a_i2d_fp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
218a_i2d_fp.o: ../cryptlib.h
205a_int.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 219a_int.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
206a_int.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 220a_int.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
207a_int.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 221a_int.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
208a_int.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 222a_int.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
209a_int.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 223a_int.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
210a_int.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 224a_int.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
225a_int.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
211a_int.o: ../cryptlib.h 226a_int.o: ../cryptlib.h
212a_mbstr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 227a_mbstr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
213a_mbstr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 228a_mbstr.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
214a_mbstr.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 229a_mbstr.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
215a_mbstr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 230a_mbstr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
216a_mbstr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 231a_mbstr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
217a_mbstr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 232a_mbstr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
233a_mbstr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
218a_mbstr.o: ../cryptlib.h 234a_mbstr.o: ../cryptlib.h
219a_meth.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 235a_meth.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
220a_meth.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 236a_meth.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
221a_meth.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 237a_meth.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
222a_meth.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 238a_meth.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
223a_meth.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 239a_meth.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
224a_meth.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 240a_meth.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
241a_meth.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
225a_meth.o: ../cryptlib.h 242a_meth.o: ../cryptlib.h
226a_null.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 243a_null.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
227a_null.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 244a_null.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
228a_null.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 245a_null.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
229a_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 246a_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
230a_null.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 247a_null.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
231a_null.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 248a_null.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
249a_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
232a_null.o: ../cryptlib.h 250a_null.o: ../cryptlib.h
233a_object.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 251a_object.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
234a_object.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 252a_object.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
235a_object.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 253a_object.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
236a_object.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 254a_object.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
255a_object.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
237a_object.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 256a_object.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
238a_object.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 257a_object.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
239a_object.o: ../../include/openssl/stack.h ../cryptlib.h 258a_object.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
259a_object.o: ../cryptlib.h
240a_octet.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 260a_octet.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
241a_octet.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 261a_octet.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
242a_octet.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 262a_octet.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
243a_octet.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 263a_octet.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
244a_octet.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 264a_octet.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
245a_octet.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 265a_octet.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
266a_octet.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
246a_octet.o: ../cryptlib.h 267a_octet.o: ../cryptlib.h
247a_print.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 268a_print.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
248a_print.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 269a_print.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
249a_print.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 270a_print.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
250a_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 271a_print.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
251a_print.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 272a_print.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
252a_print.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 273a_print.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
274a_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
253a_print.o: ../cryptlib.h 275a_print.o: ../cryptlib.h
254a_set.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 276a_set.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
255a_set.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 277a_set.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
256a_set.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 278a_set.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
257a_set.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 279a_set.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
258a_set.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 280a_set.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
259a_set.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 281a_set.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
260a_set.o: ../../include/openssl/stack.h ../cryptlib.h 282a_set.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
283a_set.o: ../../include/openssl/symhacks.h ../cryptlib.h
261a_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 284a_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
262a_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h 285a_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
263a_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h 286a_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
@@ -265,50 +288,76 @@ a_sign.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
265a_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 288a_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
266a_sign.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 289a_sign.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
267a_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h 290a_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h
268a_sign.o: ../../include/openssl/idea.h ../../include/openssl/md2.h 291a_sign.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
292a_sign.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
269a_sign.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 293a_sign.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
270a_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 294a_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
271a_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 295a_sign.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
272a_sign.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 296a_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
273a_sign.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 297a_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
274a_sign.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 298a_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
275a_sign.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 299a_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
300a_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
276a_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 301a_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
277a_sign.o: ../cryptlib.h 302a_sign.o: ../cryptlib.h
303a_strex.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
304a_strex.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
305a_strex.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
306a_strex.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
307a_strex.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
308a_strex.o: ../../include/openssl/e_os2.h ../../include/openssl/evp.h
309a_strex.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
310a_strex.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
311a_strex.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
312a_strex.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
313a_strex.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
314a_strex.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
315a_strex.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
316a_strex.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
317a_strex.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
318a_strex.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
319a_strex.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
320a_strex.o: charmap.h
278a_strnid.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 321a_strnid.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
279a_strnid.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 322a_strnid.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
280a_strnid.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 323a_strnid.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
281a_strnid.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 324a_strnid.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
325a_strnid.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
282a_strnid.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 326a_strnid.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
283a_strnid.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 327a_strnid.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
284a_strnid.o: ../../include/openssl/stack.h ../cryptlib.h 328a_strnid.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
329a_strnid.o: ../cryptlib.h
285a_time.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 330a_time.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
286a_time.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 331a_time.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
287a_time.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 332a_time.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
288a_time.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 333a_time.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
289a_time.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 334a_time.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
290a_time.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 335a_time.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
336a_time.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
291a_time.o: ../cryptlib.h 337a_time.o: ../cryptlib.h
292a_type.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 338a_type.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
293a_type.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 339a_type.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
294a_type.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 340a_type.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
295a_type.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 341a_type.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
296a_type.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 342a_type.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
297a_type.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 343a_type.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
298a_type.o: ../../include/openssl/stack.h ../cryptlib.h 344a_type.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
345a_type.o: ../../include/openssl/symhacks.h ../cryptlib.h
299a_utctm.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 346a_utctm.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
300a_utctm.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 347a_utctm.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
301a_utctm.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 348a_utctm.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
302a_utctm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 349a_utctm.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
303a_utctm.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 350a_utctm.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
304a_utctm.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 351a_utctm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
352a_utctm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
305a_utctm.o: ../cryptlib.h 353a_utctm.o: ../cryptlib.h
306a_utf8.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 354a_utf8.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
307a_utf8.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 355a_utf8.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
308a_utf8.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 356a_utf8.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
309a_utf8.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 357a_utf8.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
310a_utf8.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 358a_utf8.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
311a_utf8.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 359a_utf8.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
360a_utf8.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
312a_utf8.o: ../cryptlib.h 361a_utf8.o: ../cryptlib.h
313a_verify.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 362a_verify.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
314a_verify.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h 363a_verify.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
@@ -317,64 +366,79 @@ a_verify.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
317a_verify.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 366a_verify.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
318a_verify.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 367a_verify.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
319a_verify.o: ../../include/openssl/err.h ../../include/openssl/evp.h 368a_verify.o: ../../include/openssl/err.h ../../include/openssl/evp.h
320a_verify.o: ../../include/openssl/idea.h ../../include/openssl/md2.h 369a_verify.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
370a_verify.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
321a_verify.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 371a_verify.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
322a_verify.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 372a_verify.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
373a_verify.o: ../../include/openssl/opensslconf.h
323a_verify.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 374a_verify.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
324a_verify.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 375a_verify.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
325a_verify.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 376a_verify.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
326a_verify.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 377a_verify.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
327a_verify.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 378a_verify.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
328a_verify.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 379a_verify.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
329a_verify.o: ../cryptlib.h 380a_verify.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
330a_vis.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 381a_vis.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
331a_vis.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 382a_vis.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
332a_vis.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 383a_vis.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
333a_vis.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 384a_vis.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
334a_vis.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 385a_vis.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
335a_vis.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 386a_vis.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
387a_vis.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
336a_vis.o: ../cryptlib.h 388a_vis.o: ../cryptlib.h
337asn1_err.o: ../../include/openssl/asn1.h ../../include/openssl/bn.h 389asn1_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
338asn1_err.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 390asn1_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
339asn1_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 391asn1_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
392asn1_err.o: ../../include/openssl/opensslconf.h
393asn1_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
394asn1_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
340asn1_lib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 395asn1_lib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
341asn1_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 396asn1_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
342asn1_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 397asn1_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
343asn1_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 398asn1_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
344asn1_lib.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 399asn1_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
400asn1_lib.o: ../../include/openssl/opensslconf.h
345asn1_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 401asn1_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
346asn1_lib.o: ../../include/openssl/stack.h ../cryptlib.h 402asn1_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
403asn1_lib.o: ../cryptlib.h
347asn1_par.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 404asn1_par.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
348asn1_par.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 405asn1_par.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
349asn1_par.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 406asn1_par.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
350asn1_par.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 407asn1_par.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
408asn1_par.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
351asn1_par.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 409asn1_par.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
352asn1_par.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 410asn1_par.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
353asn1_par.o: ../../include/openssl/stack.h ../cryptlib.h 411asn1_par.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
412asn1_par.o: ../cryptlib.h
354asn_pack.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 413asn_pack.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
355asn_pack.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 414asn_pack.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
356asn_pack.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 415asn_pack.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
357asn_pack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 416asn_pack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
358asn_pack.o: ../../include/openssl/opensslconf.h 417asn_pack.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
359asn_pack.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 418asn_pack.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
360asn_pack.o: ../../include/openssl/stack.h ../cryptlib.h 419asn_pack.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
420asn_pack.o: ../cryptlib.h
361d2i_dhp.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 421d2i_dhp.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
362d2i_dhp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 422d2i_dhp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
363d2i_dhp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 423d2i_dhp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
364d2i_dhp.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h 424d2i_dhp.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h
365d2i_dhp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 425d2i_dhp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
426d2i_dhp.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
366d2i_dhp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 427d2i_dhp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
367d2i_dhp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 428d2i_dhp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
368d2i_dhp.o: ../../include/openssl/stack.h ../cryptlib.h 429d2i_dhp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
430d2i_dhp.o: ../cryptlib.h
369d2i_dsap.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 431d2i_dsap.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
370d2i_dsap.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 432d2i_dsap.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
371d2i_dsap.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 433d2i_dsap.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
372d2i_dsap.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 434d2i_dsap.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
373d2i_dsap.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 435d2i_dsap.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
374d2i_dsap.o: ../../include/openssl/err.h ../../include/openssl/objects.h 436d2i_dsap.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
437d2i_dsap.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
375d2i_dsap.o: ../../include/openssl/opensslconf.h 438d2i_dsap.o: ../../include/openssl/opensslconf.h
376d2i_dsap.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 439d2i_dsap.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
377d2i_dsap.o: ../../include/openssl/stack.h ../cryptlib.h 440d2i_dsap.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
441d2i_dsap.o: ../cryptlib.h
378d2i_pr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 442d2i_pr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
379d2i_pr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h 443d2i_pr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
380d2i_pr.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h 444d2i_pr.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
@@ -382,14 +446,16 @@ d2i_pr.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
382d2i_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 446d2i_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
383d2i_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 447d2i_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
384d2i_pr.o: ../../include/openssl/err.h ../../include/openssl/evp.h 448d2i_pr.o: ../../include/openssl/err.h ../../include/openssl/evp.h
385d2i_pr.o: ../../include/openssl/idea.h ../../include/openssl/md2.h 449d2i_pr.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
450d2i_pr.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
386d2i_pr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 451d2i_pr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
387d2i_pr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 452d2i_pr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
388d2i_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/rc2.h 453d2i_pr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
389d2i_pr.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 454d2i_pr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
390d2i_pr.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 455d2i_pr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
391d2i_pr.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 456d2i_pr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
392d2i_pr.o: ../../include/openssl/stack.h ../cryptlib.h 457d2i_pr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
458d2i_pr.o: ../../include/openssl/symhacks.h ../cryptlib.h
393d2i_pu.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 459d2i_pu.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
394d2i_pu.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h 460d2i_pu.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
395d2i_pu.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h 461d2i_pu.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
@@ -397,94 +463,110 @@ d2i_pu.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
397d2i_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 463d2i_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
398d2i_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 464d2i_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
399d2i_pu.o: ../../include/openssl/err.h ../../include/openssl/evp.h 465d2i_pu.o: ../../include/openssl/err.h ../../include/openssl/evp.h
400d2i_pu.o: ../../include/openssl/idea.h ../../include/openssl/md2.h 466d2i_pu.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
467d2i_pu.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
401d2i_pu.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 468d2i_pu.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
402d2i_pu.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 469d2i_pu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
403d2i_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/rc2.h 470d2i_pu.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
404d2i_pu.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 471d2i_pu.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
405d2i_pu.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 472d2i_pu.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
406d2i_pu.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 473d2i_pu.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
407d2i_pu.o: ../../include/openssl/stack.h ../cryptlib.h 474d2i_pu.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
475d2i_pu.o: ../../include/openssl/symhacks.h ../cryptlib.h
408d2i_r_pr.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 476d2i_r_pr.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
409d2i_r_pr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 477d2i_r_pr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
410d2i_r_pr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 478d2i_r_pr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
411d2i_r_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 479d2i_r_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
412d2i_r_pr.o: ../../include/openssl/err.h ../../include/openssl/objects.h 480d2i_r_pr.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
481d2i_r_pr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
413d2i_r_pr.o: ../../include/openssl/opensslconf.h 482d2i_r_pr.o: ../../include/openssl/opensslconf.h
414d2i_r_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h 483d2i_r_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h
415d2i_r_pr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 484d2i_r_pr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
416d2i_r_pr.o: ../cryptlib.h 485d2i_r_pr.o: ../../include/openssl/symhacks.h ../cryptlib.h
417d2i_r_pu.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 486d2i_r_pu.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
418d2i_r_pu.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 487d2i_r_pu.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
419d2i_r_pu.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 488d2i_r_pu.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
420d2i_r_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 489d2i_r_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
421d2i_r_pu.o: ../../include/openssl/err.h ../../include/openssl/objects.h 490d2i_r_pu.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
491d2i_r_pu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
422d2i_r_pu.o: ../../include/openssl/opensslconf.h 492d2i_r_pu.o: ../../include/openssl/opensslconf.h
423d2i_r_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h 493d2i_r_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h
424d2i_r_pu.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 494d2i_r_pu.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
425d2i_r_pu.o: ../cryptlib.h 495d2i_r_pu.o: ../../include/openssl/symhacks.h ../cryptlib.h
426d2i_s_pr.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 496d2i_s_pr.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
427d2i_s_pr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 497d2i_s_pr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
428d2i_s_pr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 498d2i_s_pr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
429d2i_s_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 499d2i_s_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
430d2i_s_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 500d2i_s_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
431d2i_s_pr.o: ../../include/openssl/err.h ../../include/openssl/objects.h 501d2i_s_pr.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
502d2i_s_pr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
432d2i_s_pr.o: ../../include/openssl/opensslconf.h 503d2i_s_pr.o: ../../include/openssl/opensslconf.h
433d2i_s_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 504d2i_s_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
434d2i_s_pr.o: ../../include/openssl/stack.h ../cryptlib.h 505d2i_s_pr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
506d2i_s_pr.o: ../cryptlib.h
435d2i_s_pu.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 507d2i_s_pu.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
436d2i_s_pu.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 508d2i_s_pu.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
437d2i_s_pu.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 509d2i_s_pu.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
438d2i_s_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 510d2i_s_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
439d2i_s_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 511d2i_s_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
440d2i_s_pu.o: ../../include/openssl/err.h ../../include/openssl/objects.h 512d2i_s_pu.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
513d2i_s_pu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
441d2i_s_pu.o: ../../include/openssl/opensslconf.h 514d2i_s_pu.o: ../../include/openssl/opensslconf.h
442d2i_s_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 515d2i_s_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
443d2i_s_pu.o: ../../include/openssl/stack.h ../cryptlib.h 516d2i_s_pu.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
517d2i_s_pu.o: ../cryptlib.h
444evp_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 518evp_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
445evp_asn1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 519evp_asn1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
446evp_asn1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 520evp_asn1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
447evp_asn1.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 521evp_asn1.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
448evp_asn1.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 522evp_asn1.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
523evp_asn1.o: ../../include/openssl/opensslconf.h
449evp_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 524evp_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
450evp_asn1.o: ../../include/openssl/stack.h ../cryptlib.h 525evp_asn1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
526evp_asn1.o: ../cryptlib.h
451f_enum.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 527f_enum.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
452f_enum.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 528f_enum.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
453f_enum.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 529f_enum.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
454f_enum.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 530f_enum.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
455f_enum.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 531f_enum.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
456f_enum.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 532f_enum.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
533f_enum.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
457f_enum.o: ../cryptlib.h 534f_enum.o: ../cryptlib.h
458f_int.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 535f_int.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
459f_int.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 536f_int.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
460f_int.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 537f_int.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
461f_int.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 538f_int.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
462f_int.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 539f_int.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
463f_int.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 540f_int.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
541f_int.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
464f_int.o: ../cryptlib.h 542f_int.o: ../cryptlib.h
465f_string.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 543f_string.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
466f_string.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 544f_string.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
467f_string.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 545f_string.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
468f_string.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 546f_string.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
469f_string.o: ../../include/openssl/opensslconf.h 547f_string.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
470f_string.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 548f_string.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
471f_string.o: ../../include/openssl/stack.h ../cryptlib.h 549f_string.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
550f_string.o: ../cryptlib.h
472i2d_dhp.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 551i2d_dhp.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
473i2d_dhp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 552i2d_dhp.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
474i2d_dhp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 553i2d_dhp.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
475i2d_dhp.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h 554i2d_dhp.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h
476i2d_dhp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 555i2d_dhp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
477i2d_dhp.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 556i2d_dhp.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
478i2d_dhp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 557i2d_dhp.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
558i2d_dhp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
479i2d_dhp.o: ../cryptlib.h 559i2d_dhp.o: ../cryptlib.h
480i2d_dsap.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 560i2d_dsap.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
481i2d_dsap.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 561i2d_dsap.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
482i2d_dsap.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 562i2d_dsap.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
483i2d_dsap.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 563i2d_dsap.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
484i2d_dsap.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 564i2d_dsap.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
485i2d_dsap.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 565i2d_dsap.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
566i2d_dsap.o: ../../include/openssl/opensslconf.h
486i2d_dsap.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 567i2d_dsap.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
487i2d_dsap.o: ../../include/openssl/stack.h ../cryptlib.h 568i2d_dsap.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
569i2d_dsap.o: ../cryptlib.h
488i2d_pr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 570i2d_pr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
489i2d_pr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h 571i2d_pr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
490i2d_pr.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h 572i2d_pr.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
@@ -492,14 +574,16 @@ i2d_pr.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
492i2d_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 574i2d_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
493i2d_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 575i2d_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
494i2d_pr.o: ../../include/openssl/err.h ../../include/openssl/evp.h 576i2d_pr.o: ../../include/openssl/err.h ../../include/openssl/evp.h
495i2d_pr.o: ../../include/openssl/idea.h ../../include/openssl/md2.h 577i2d_pr.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
578i2d_pr.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
496i2d_pr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 579i2d_pr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
497i2d_pr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 580i2d_pr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
498i2d_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/rc2.h 581i2d_pr.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
499i2d_pr.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 582i2d_pr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
500i2d_pr.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 583i2d_pr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
501i2d_pr.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 584i2d_pr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
502i2d_pr.o: ../../include/openssl/stack.h ../cryptlib.h 585i2d_pr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
586i2d_pr.o: ../../include/openssl/symhacks.h ../cryptlib.h
503i2d_pu.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 587i2d_pu.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
504i2d_pu.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h 588i2d_pu.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
505i2d_pu.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h 589i2d_pu.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
@@ -507,50 +591,58 @@ i2d_pu.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
507i2d_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 591i2d_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
508i2d_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 592i2d_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
509i2d_pu.o: ../../include/openssl/err.h ../../include/openssl/evp.h 593i2d_pu.o: ../../include/openssl/err.h ../../include/openssl/evp.h
510i2d_pu.o: ../../include/openssl/idea.h ../../include/openssl/md2.h 594i2d_pu.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
595i2d_pu.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
511i2d_pu.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 596i2d_pu.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
512i2d_pu.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 597i2d_pu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
513i2d_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/rc2.h 598i2d_pu.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
514i2d_pu.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 599i2d_pu.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
515i2d_pu.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 600i2d_pu.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
516i2d_pu.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 601i2d_pu.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
517i2d_pu.o: ../../include/openssl/stack.h ../cryptlib.h 602i2d_pu.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
603i2d_pu.o: ../../include/openssl/symhacks.h ../cryptlib.h
518i2d_r_pr.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 604i2d_r_pr.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
519i2d_r_pr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 605i2d_r_pr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
520i2d_r_pr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 606i2d_r_pr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
521i2d_r_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 607i2d_r_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
522i2d_r_pr.o: ../../include/openssl/err.h ../../include/openssl/objects.h 608i2d_r_pr.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
609i2d_r_pr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
523i2d_r_pr.o: ../../include/openssl/opensslconf.h 610i2d_r_pr.o: ../../include/openssl/opensslconf.h
524i2d_r_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h 611i2d_r_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h
525i2d_r_pr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 612i2d_r_pr.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
526i2d_r_pr.o: ../cryptlib.h 613i2d_r_pr.o: ../../include/openssl/symhacks.h ../cryptlib.h
527i2d_r_pu.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 614i2d_r_pu.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
528i2d_r_pu.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 615i2d_r_pu.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
529i2d_r_pu.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 616i2d_r_pu.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
530i2d_r_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 617i2d_r_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
531i2d_r_pu.o: ../../include/openssl/err.h ../../include/openssl/objects.h 618i2d_r_pu.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
619i2d_r_pu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
532i2d_r_pu.o: ../../include/openssl/opensslconf.h 620i2d_r_pu.o: ../../include/openssl/opensslconf.h
533i2d_r_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h 621i2d_r_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h
534i2d_r_pu.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 622i2d_r_pu.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
535i2d_r_pu.o: ../cryptlib.h 623i2d_r_pu.o: ../../include/openssl/symhacks.h ../cryptlib.h
536i2d_s_pr.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 624i2d_s_pr.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
537i2d_s_pr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 625i2d_s_pr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
538i2d_s_pr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 626i2d_s_pr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
539i2d_s_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 627i2d_s_pr.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
540i2d_s_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 628i2d_s_pr.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
541i2d_s_pr.o: ../../include/openssl/err.h ../../include/openssl/objects.h 629i2d_s_pr.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
630i2d_s_pr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
542i2d_s_pr.o: ../../include/openssl/opensslconf.h 631i2d_s_pr.o: ../../include/openssl/opensslconf.h
543i2d_s_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 632i2d_s_pr.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
544i2d_s_pr.o: ../../include/openssl/stack.h ../cryptlib.h 633i2d_s_pr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
634i2d_s_pr.o: ../cryptlib.h
545i2d_s_pu.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 635i2d_s_pu.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
546i2d_s_pu.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 636i2d_s_pu.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
547i2d_s_pu.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 637i2d_s_pu.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
548i2d_s_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 638i2d_s_pu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
549i2d_s_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 639i2d_s_pu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
550i2d_s_pu.o: ../../include/openssl/err.h ../../include/openssl/objects.h 640i2d_s_pu.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
641i2d_s_pu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
551i2d_s_pu.o: ../../include/openssl/opensslconf.h 642i2d_s_pu.o: ../../include/openssl/opensslconf.h
552i2d_s_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 643i2d_s_pu.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
553i2d_s_pu.o: ../../include/openssl/stack.h ../cryptlib.h 644i2d_s_pu.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
645i2d_s_pu.o: ../cryptlib.h
554n_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 646n_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
555n_pkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 647n_pkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
556n_pkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 648n_pkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
@@ -559,31 +651,35 @@ n_pkey.o: ../../include/openssl/des.h ../../include/openssl/dh.h
559n_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 651n_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
560n_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 652n_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
561n_pkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 653n_pkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
562n_pkey.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 654n_pkey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
563n_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 655n_pkey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
564n_pkey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 656n_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
565n_pkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 657n_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
566n_pkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 658n_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
567n_pkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 659n_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
568n_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 660n_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
569n_pkey.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 661n_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
662n_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
663n_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
570n_pkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 664n_pkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
571nsseq.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 665nsseq.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
572nsseq.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 666nsseq.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
573nsseq.o: ../../include/openssl/bn.h ../../include/openssl/cast.h 667nsseq.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
574nsseq.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 668nsseq.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
575nsseq.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 669nsseq.o: ../../include/openssl/des.h ../../include/openssl/dh.h
576nsseq.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 670nsseq.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
577nsseq.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 671nsseq.o: ../../include/openssl/err.h ../../include/openssl/evp.h
578nsseq.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 672nsseq.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
579nsseq.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 673nsseq.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
674nsseq.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
675nsseq.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
580nsseq.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 676nsseq.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
581nsseq.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 677nsseq.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
582nsseq.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 678nsseq.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
583nsseq.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 679nsseq.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
584nsseq.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 680nsseq.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
585nsseq.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 681nsseq.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
586nsseq.o: ../../include/openssl/x509_vfy.h 682nsseq.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
587p5_pbe.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 683p5_pbe.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
588p5_pbe.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 684p5_pbe.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
589p5_pbe.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 685p5_pbe.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
@@ -592,14 +688,16 @@ p5_pbe.o: ../../include/openssl/des.h ../../include/openssl/dh.h
592p5_pbe.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 688p5_pbe.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
593p5_pbe.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 689p5_pbe.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
594p5_pbe.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 690p5_pbe.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
595p5_pbe.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 691p5_pbe.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
596p5_pbe.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 692p5_pbe.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
597p5_pbe.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 693p5_pbe.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
598p5_pbe.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h 694p5_pbe.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
599p5_pbe.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 695p5_pbe.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
600p5_pbe.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 696p5_pbe.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
601p5_pbe.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 697p5_pbe.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
602p5_pbe.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 698p5_pbe.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
699p5_pbe.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
700p5_pbe.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
603p5_pbe.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 701p5_pbe.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
604p5_pbe.o: ../cryptlib.h 702p5_pbe.o: ../cryptlib.h
605p5_pbev2.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 703p5_pbev2.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
@@ -610,16 +708,18 @@ p5_pbev2.o: ../../include/openssl/des.h ../../include/openssl/dh.h
610p5_pbev2.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 708p5_pbev2.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
611p5_pbev2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 709p5_pbev2.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
612p5_pbev2.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 710p5_pbev2.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
613p5_pbev2.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 711p5_pbev2.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
614p5_pbev2.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 712p5_pbev2.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
615p5_pbev2.o: ../../include/openssl/opensslconf.h 713p5_pbev2.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
714p5_pbev2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
616p5_pbev2.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 715p5_pbev2.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
617p5_pbev2.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h 716p5_pbev2.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
618p5_pbev2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 717p5_pbev2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
619p5_pbev2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 718p5_pbev2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
620p5_pbev2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 719p5_pbev2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
621p5_pbev2.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 720p5_pbev2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
622p5_pbev2.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 721p5_pbev2.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
722p5_pbev2.o: ../cryptlib.h
623p7_dgst.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 723p7_dgst.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
624p7_dgst.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 724p7_dgst.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
625p7_dgst.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 725p7_dgst.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
@@ -628,14 +728,16 @@ p7_dgst.o: ../../include/openssl/des.h ../../include/openssl/dh.h
628p7_dgst.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 728p7_dgst.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
629p7_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 729p7_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
630p7_dgst.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 730p7_dgst.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
631p7_dgst.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 731p7_dgst.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
632p7_dgst.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 732p7_dgst.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
633p7_dgst.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 733p7_dgst.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
634p7_dgst.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 734p7_dgst.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
635p7_dgst.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 735p7_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
636p7_dgst.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 736p7_dgst.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
637p7_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 737p7_dgst.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
638p7_dgst.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 738p7_dgst.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
739p7_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
740p7_dgst.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
639p7_dgst.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 741p7_dgst.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
640p7_enc.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 742p7_enc.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
641p7_enc.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 743p7_enc.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -645,14 +747,16 @@ p7_enc.o: ../../include/openssl/des.h ../../include/openssl/dh.h
645p7_enc.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 747p7_enc.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
646p7_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 748p7_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
647p7_enc.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 749p7_enc.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
648p7_enc.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 750p7_enc.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
649p7_enc.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 751p7_enc.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
650p7_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 752p7_enc.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
651p7_enc.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 753p7_enc.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
652p7_enc.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 754p7_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
653p7_enc.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 755p7_enc.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
654p7_enc.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 756p7_enc.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
655p7_enc.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 757p7_enc.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
758p7_enc.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
759p7_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
656p7_enc.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 760p7_enc.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
657p7_enc_c.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 761p7_enc_c.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
658p7_enc_c.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 762p7_enc_c.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -662,16 +766,17 @@ p7_enc_c.o: ../../include/openssl/des.h ../../include/openssl/dh.h
662p7_enc_c.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 766p7_enc_c.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
663p7_enc_c.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 767p7_enc_c.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
664p7_enc_c.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 768p7_enc_c.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
665p7_enc_c.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 769p7_enc_c.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
666p7_enc_c.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 770p7_enc_c.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
667p7_enc_c.o: ../../include/openssl/opensslconf.h 771p7_enc_c.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
772p7_enc_c.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
668p7_enc_c.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 773p7_enc_c.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
669p7_enc_c.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 774p7_enc_c.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
670p7_enc_c.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 775p7_enc_c.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
671p7_enc_c.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 776p7_enc_c.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
672p7_enc_c.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 777p7_enc_c.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
673p7_enc_c.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 778p7_enc_c.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
674p7_enc_c.o: ../cryptlib.h 779p7_enc_c.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
675p7_evp.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 780p7_evp.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
676p7_evp.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 781p7_evp.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
677p7_evp.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 782p7_evp.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
@@ -680,14 +785,16 @@ p7_evp.o: ../../include/openssl/des.h ../../include/openssl/dh.h
680p7_evp.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 785p7_evp.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
681p7_evp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 786p7_evp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
682p7_evp.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 787p7_evp.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
683p7_evp.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 788p7_evp.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
684p7_evp.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 789p7_evp.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
685p7_evp.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 790p7_evp.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
686p7_evp.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 791p7_evp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
687p7_evp.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 792p7_evp.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
688p7_evp.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 793p7_evp.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
689p7_evp.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 794p7_evp.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
690p7_evp.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 795p7_evp.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
796p7_evp.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
797p7_evp.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
691p7_evp.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 798p7_evp.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
692p7_i_s.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 799p7_i_s.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
693p7_i_s.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 800p7_i_s.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -697,14 +804,16 @@ p7_i_s.o: ../../include/openssl/des.h ../../include/openssl/dh.h
697p7_i_s.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 804p7_i_s.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
698p7_i_s.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 805p7_i_s.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
699p7_i_s.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 806p7_i_s.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
700p7_i_s.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 807p7_i_s.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
701p7_i_s.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 808p7_i_s.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
702p7_i_s.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 809p7_i_s.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
703p7_i_s.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 810p7_i_s.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
704p7_i_s.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 811p7_i_s.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
705p7_i_s.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 812p7_i_s.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
706p7_i_s.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 813p7_i_s.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
707p7_i_s.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 814p7_i_s.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
815p7_i_s.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
816p7_i_s.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
708p7_i_s.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 817p7_i_s.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
709p7_lib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 818p7_lib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
710p7_lib.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 819p7_lib.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -714,14 +823,16 @@ p7_lib.o: ../../include/openssl/des.h ../../include/openssl/dh.h
714p7_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 823p7_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
715p7_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 824p7_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
716p7_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 825p7_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
717p7_lib.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 826p7_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
718p7_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 827p7_lib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
719p7_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 828p7_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
720p7_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 829p7_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
721p7_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 830p7_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
722p7_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 831p7_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
723p7_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 832p7_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
724p7_lib.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 833p7_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
834p7_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
835p7_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
725p7_lib.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 836p7_lib.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
726p7_recip.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 837p7_recip.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
727p7_recip.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 838p7_recip.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -731,16 +842,17 @@ p7_recip.o: ../../include/openssl/des.h ../../include/openssl/dh.h
731p7_recip.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 842p7_recip.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
732p7_recip.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 843p7_recip.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
733p7_recip.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 844p7_recip.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
734p7_recip.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 845p7_recip.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
735p7_recip.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 846p7_recip.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
736p7_recip.o: ../../include/openssl/opensslconf.h 847p7_recip.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
848p7_recip.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
737p7_recip.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 849p7_recip.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
738p7_recip.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 850p7_recip.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
739p7_recip.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 851p7_recip.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
740p7_recip.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 852p7_recip.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
741p7_recip.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 853p7_recip.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
742p7_recip.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 854p7_recip.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
743p7_recip.o: ../cryptlib.h 855p7_recip.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
744p7_s_e.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 856p7_s_e.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
745p7_s_e.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 857p7_s_e.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
746p7_s_e.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 858p7_s_e.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
@@ -749,14 +861,16 @@ p7_s_e.o: ../../include/openssl/des.h ../../include/openssl/dh.h
749p7_s_e.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 861p7_s_e.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
750p7_s_e.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 862p7_s_e.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
751p7_s_e.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 863p7_s_e.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
752p7_s_e.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 864p7_s_e.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
753p7_s_e.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 865p7_s_e.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
754p7_s_e.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 866p7_s_e.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
755p7_s_e.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 867p7_s_e.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
756p7_s_e.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 868p7_s_e.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
757p7_s_e.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 869p7_s_e.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
758p7_s_e.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 870p7_s_e.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
759p7_s_e.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 871p7_s_e.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
872p7_s_e.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
873p7_s_e.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
760p7_s_e.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 874p7_s_e.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
761p7_signd.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 875p7_signd.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
762p7_signd.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 876p7_signd.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -766,16 +880,17 @@ p7_signd.o: ../../include/openssl/des.h ../../include/openssl/dh.h
766p7_signd.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 880p7_signd.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
767p7_signd.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 881p7_signd.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
768p7_signd.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 882p7_signd.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
769p7_signd.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 883p7_signd.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
770p7_signd.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 884p7_signd.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
771p7_signd.o: ../../include/openssl/opensslconf.h 885p7_signd.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
886p7_signd.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
772p7_signd.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 887p7_signd.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
773p7_signd.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 888p7_signd.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
774p7_signd.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 889p7_signd.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
775p7_signd.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 890p7_signd.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
776p7_signd.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 891p7_signd.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
777p7_signd.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 892p7_signd.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
778p7_signd.o: ../cryptlib.h 893p7_signd.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
779p7_signi.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 894p7_signi.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
780p7_signi.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 895p7_signi.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
781p7_signi.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 896p7_signi.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
@@ -784,16 +899,17 @@ p7_signi.o: ../../include/openssl/des.h ../../include/openssl/dh.h
784p7_signi.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 899p7_signi.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
785p7_signi.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 900p7_signi.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
786p7_signi.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 901p7_signi.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
787p7_signi.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 902p7_signi.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
788p7_signi.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 903p7_signi.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
789p7_signi.o: ../../include/openssl/opensslconf.h 904p7_signi.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
905p7_signi.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
790p7_signi.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 906p7_signi.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
791p7_signi.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 907p7_signi.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
792p7_signi.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 908p7_signi.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
793p7_signi.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 909p7_signi.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
794p7_signi.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 910p7_signi.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
795p7_signi.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 911p7_signi.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
796p7_signi.o: ../cryptlib.h 912p7_signi.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
797p8_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 913p8_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
798p8_pkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 914p8_pkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
799p8_pkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 915p8_pkey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
@@ -802,14 +918,16 @@ p8_pkey.o: ../../include/openssl/des.h ../../include/openssl/dh.h
802p8_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 918p8_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
803p8_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 919p8_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
804p8_pkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 920p8_pkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
805p8_pkey.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 921p8_pkey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
806p8_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 922p8_pkey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
807p8_pkey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 923p8_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
808p8_pkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 924p8_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
809p8_pkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 925p8_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
810p8_pkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 926p8_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
811p8_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 927p8_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
812p8_pkey.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 928p8_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
929p8_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
930p8_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
813p8_pkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 931p8_pkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
814t_bitst.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 932t_bitst.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
815t_bitst.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h 933t_bitst.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
@@ -817,16 +935,18 @@ t_bitst.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
817t_bitst.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h 935t_bitst.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
818t_bitst.o: ../../include/openssl/des.h ../../include/openssl/dh.h 936t_bitst.o: ../../include/openssl/des.h ../../include/openssl/dh.h
819t_bitst.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 937t_bitst.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
820t_bitst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 938t_bitst.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
821t_bitst.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 939t_bitst.o: ../../include/openssl/err.h ../../include/openssl/evp.h
822t_bitst.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h 940t_bitst.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
941t_bitst.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
823t_bitst.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 942t_bitst.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
824t_bitst.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 943t_bitst.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
825t_bitst.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 944t_bitst.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
826t_bitst.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 945t_bitst.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
827t_bitst.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 946t_bitst.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
828t_bitst.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 947t_bitst.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
829t_bitst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 948t_bitst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
949t_bitst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
830t_bitst.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 950t_bitst.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
831t_bitst.o: ../../include/openssl/x509v3.h ../cryptlib.h 951t_bitst.o: ../../include/openssl/x509v3.h ../cryptlib.h
832t_crl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 952t_crl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
@@ -835,25 +955,28 @@ t_crl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
835t_crl.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h 955t_crl.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
836t_crl.o: ../../include/openssl/des.h ../../include/openssl/dh.h 956t_crl.o: ../../include/openssl/des.h ../../include/openssl/dh.h
837t_crl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 957t_crl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
838t_crl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 958t_crl.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
839t_crl.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 959t_crl.o: ../../include/openssl/err.h ../../include/openssl/evp.h
840t_crl.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h 960t_crl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
961t_crl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
841t_crl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 962t_crl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
842t_crl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 963t_crl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
843t_crl.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 964t_crl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
844t_crl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 965t_crl.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
845t_crl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 966t_crl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
846t_crl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 967t_crl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
847t_crl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 968t_crl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
969t_crl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
848t_crl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 970t_crl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
849t_crl.o: ../../include/openssl/x509v3.h ../cryptlib.h 971t_crl.o: ../../include/openssl/x509v3.h ../cryptlib.h
850t_pkey.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 972t_pkey.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
851t_pkey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 973t_pkey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
852t_pkey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h 974t_pkey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
853t_pkey.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h 975t_pkey.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
854t_pkey.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h 976t_pkey.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
855t_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h 977t_pkey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
856t_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 978t_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
979t_pkey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
857t_pkey.o: ../cryptlib.h 980t_pkey.o: ../cryptlib.h
858t_req.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 981t_req.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
859t_req.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h 982t_req.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
@@ -861,16 +984,18 @@ t_req.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
861t_req.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h 984t_req.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
862t_req.o: ../../include/openssl/des.h ../../include/openssl/dh.h 985t_req.o: ../../include/openssl/des.h ../../include/openssl/dh.h
863t_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 986t_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
864t_req.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 987t_req.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
865t_req.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 988t_req.o: ../../include/openssl/err.h ../../include/openssl/evp.h
866t_req.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h 989t_req.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
990t_req.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
867t_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 991t_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
868t_req.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 992t_req.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
869t_req.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 993t_req.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
870t_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 994t_req.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
871t_req.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 995t_req.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
872t_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 996t_req.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
873t_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 997t_req.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
998t_req.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
874t_req.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 999t_req.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
875t_req.o: ../../include/openssl/x509v3.h ../cryptlib.h 1000t_req.o: ../../include/openssl/x509v3.h ../cryptlib.h
876t_spki.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1001t_spki.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
@@ -881,14 +1006,16 @@ t_spki.o: ../../include/openssl/des.h ../../include/openssl/dh.h
881t_spki.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1006t_spki.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
882t_spki.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1007t_spki.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
883t_spki.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1008t_spki.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
884t_spki.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1009t_spki.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
885t_spki.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1010t_spki.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
886t_spki.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1011t_spki.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
887t_spki.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1012t_spki.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
888t_spki.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1013t_spki.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
889t_spki.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1014t_spki.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
890t_spki.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1015t_spki.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
891t_spki.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1016t_spki.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1017t_spki.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1018t_spki.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
892t_spki.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1019t_spki.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
893t_x509.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 1020t_x509.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
894t_x509.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h 1021t_x509.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
@@ -896,16 +1023,18 @@ t_x509.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
896t_x509.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h 1023t_x509.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
897t_x509.o: ../../include/openssl/des.h ../../include/openssl/dh.h 1024t_x509.o: ../../include/openssl/des.h ../../include/openssl/dh.h
898t_x509.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1025t_x509.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
899t_x509.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1026t_x509.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
900t_x509.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1027t_x509.o: ../../include/openssl/err.h ../../include/openssl/evp.h
901t_x509.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h 1028t_x509.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
1029t_x509.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
902t_x509.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h 1030t_x509.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
903t_x509.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 1031t_x509.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
904t_x509.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 1032t_x509.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
905t_x509.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 1033t_x509.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
906t_x509.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 1034t_x509.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
907t_x509.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 1035t_x509.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
908t_x509.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 1036t_x509.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
1037t_x509.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
909t_x509.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 1038t_x509.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
910t_x509.o: ../../include/openssl/x509v3.h ../cryptlib.h 1039t_x509.o: ../../include/openssl/x509v3.h ../cryptlib.h
911t_x509a.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1040t_x509a.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
@@ -916,14 +1045,16 @@ t_x509a.o: ../../include/openssl/des.h ../../include/openssl/dh.h
916t_x509a.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1045t_x509a.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
917t_x509a.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1046t_x509a.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
918t_x509a.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1047t_x509a.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
919t_x509a.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1048t_x509a.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
920t_x509a.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1049t_x509a.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
921t_x509a.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1050t_x509a.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
922t_x509a.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1051t_x509a.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
923t_x509a.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1052t_x509a.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
924t_x509a.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1053t_x509a.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
925t_x509a.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1054t_x509a.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
926t_x509a.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1055t_x509a.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1056t_x509a.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1057t_x509a.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
927t_x509a.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1058t_x509a.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
928x_algor.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1059x_algor.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
929x_algor.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1060x_algor.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -933,14 +1064,16 @@ x_algor.o: ../../include/openssl/des.h ../../include/openssl/dh.h
933x_algor.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1064x_algor.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
934x_algor.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1065x_algor.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
935x_algor.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1066x_algor.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
936x_algor.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1067x_algor.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
937x_algor.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1068x_algor.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
938x_algor.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1069x_algor.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
939x_algor.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1070x_algor.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
940x_algor.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1071x_algor.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
941x_algor.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1072x_algor.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
942x_algor.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1073x_algor.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
943x_algor.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1074x_algor.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1075x_algor.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1076x_algor.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
944x_algor.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1077x_algor.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
945x_attrib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1078x_attrib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
946x_attrib.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1079x_attrib.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -950,16 +1083,17 @@ x_attrib.o: ../../include/openssl/des.h ../../include/openssl/dh.h
950x_attrib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1083x_attrib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
951x_attrib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1084x_attrib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
952x_attrib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1085x_attrib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
953x_attrib.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1086x_attrib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
954x_attrib.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1087x_attrib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
955x_attrib.o: ../../include/openssl/opensslconf.h 1088x_attrib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1089x_attrib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
956x_attrib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 1090x_attrib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
957x_attrib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 1091x_attrib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
958x_attrib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 1092x_attrib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
959x_attrib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 1093x_attrib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
960x_attrib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 1094x_attrib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
961x_attrib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 1095x_attrib.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
962x_attrib.o: ../cryptlib.h 1096x_attrib.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
963x_cinf.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1097x_cinf.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
964x_cinf.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1098x_cinf.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
965x_cinf.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 1099x_cinf.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
@@ -968,14 +1102,16 @@ x_cinf.o: ../../include/openssl/des.h ../../include/openssl/dh.h
968x_cinf.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1102x_cinf.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
969x_cinf.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1103x_cinf.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
970x_cinf.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1104x_cinf.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
971x_cinf.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1105x_cinf.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
972x_cinf.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1106x_cinf.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
973x_cinf.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1107x_cinf.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
974x_cinf.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1108x_cinf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
975x_cinf.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1109x_cinf.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
976x_cinf.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1110x_cinf.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
977x_cinf.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1111x_cinf.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
978x_cinf.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1112x_cinf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1113x_cinf.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1114x_cinf.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
979x_cinf.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1115x_cinf.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
980x_crl.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1116x_crl.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
981x_crl.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1117x_crl.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -985,14 +1121,16 @@ x_crl.o: ../../include/openssl/des.h ../../include/openssl/dh.h
985x_crl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1121x_crl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
986x_crl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1122x_crl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
987x_crl.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1123x_crl.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
988x_crl.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1124x_crl.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
989x_crl.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1125x_crl.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
990x_crl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1126x_crl.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
991x_crl.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1127x_crl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
992x_crl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1128x_crl.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
993x_crl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1129x_crl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
994x_crl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1130x_crl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
995x_crl.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1131x_crl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1132x_crl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1133x_crl.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
996x_crl.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1134x_crl.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
997x_exten.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1135x_exten.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
998x_exten.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1136x_exten.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -1002,14 +1140,16 @@ x_exten.o: ../../include/openssl/des.h ../../include/openssl/dh.h
1002x_exten.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1140x_exten.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
1003x_exten.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1141x_exten.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1004x_exten.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1142x_exten.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1005x_exten.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1143x_exten.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1006x_exten.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1144x_exten.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1007x_exten.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1145x_exten.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1008x_exten.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1146x_exten.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1009x_exten.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1147x_exten.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1010x_exten.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1148x_exten.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1011x_exten.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1149x_exten.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1012x_exten.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1150x_exten.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1151x_exten.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1152x_exten.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1013x_exten.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1153x_exten.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
1014x_info.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1154x_info.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
1015x_info.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1155x_info.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -1019,14 +1159,16 @@ x_info.o: ../../include/openssl/des.h ../../include/openssl/dh.h
1019x_info.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1159x_info.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
1020x_info.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1160x_info.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1021x_info.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1161x_info.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1022x_info.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1162x_info.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1023x_info.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1163x_info.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1024x_info.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1164x_info.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1025x_info.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1165x_info.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1026x_info.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1166x_info.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1027x_info.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1167x_info.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1028x_info.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1168x_info.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1029x_info.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1169x_info.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1170x_info.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1171x_info.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1030x_info.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1172x_info.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
1031x_name.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1173x_name.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
1032x_name.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1174x_name.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -1036,14 +1178,16 @@ x_name.o: ../../include/openssl/des.h ../../include/openssl/dh.h
1036x_name.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1178x_name.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
1037x_name.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1179x_name.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1038x_name.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1180x_name.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1039x_name.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1181x_name.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1040x_name.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1182x_name.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1041x_name.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1183x_name.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1042x_name.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1184x_name.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1043x_name.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1185x_name.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1044x_name.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1186x_name.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1045x_name.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1187x_name.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1046x_name.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1188x_name.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1189x_name.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1190x_name.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1047x_name.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1191x_name.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
1048x_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1192x_pkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
1049x_pkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1193x_pkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -1053,14 +1197,16 @@ x_pkey.o: ../../include/openssl/des.h ../../include/openssl/dh.h
1053x_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1197x_pkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
1054x_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1198x_pkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1055x_pkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1199x_pkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1056x_pkey.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1200x_pkey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1057x_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1201x_pkey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1058x_pkey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1202x_pkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1059x_pkey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1203x_pkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1060x_pkey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1204x_pkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1061x_pkey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1205x_pkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1062x_pkey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1206x_pkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1063x_pkey.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1207x_pkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1208x_pkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1209x_pkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1064x_pkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1210x_pkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
1065x_pubkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1211x_pubkey.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
1066x_pubkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1212x_pubkey.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -1070,16 +1216,17 @@ x_pubkey.o: ../../include/openssl/des.h ../../include/openssl/dh.h
1070x_pubkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1216x_pubkey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
1071x_pubkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1217x_pubkey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1072x_pubkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1218x_pubkey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1073x_pubkey.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1219x_pubkey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1074x_pubkey.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1220x_pubkey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1075x_pubkey.o: ../../include/openssl/opensslconf.h 1221x_pubkey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1222x_pubkey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1076x_pubkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h 1223x_pubkey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1077x_pubkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h 1224x_pubkey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1078x_pubkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h 1225x_pubkey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1079x_pubkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h 1226x_pubkey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1080x_pubkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 1227x_pubkey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1081x_pubkey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 1228x_pubkey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1082x_pubkey.o: ../cryptlib.h 1229x_pubkey.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
1083x_req.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1230x_req.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
1084x_req.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1231x_req.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
1085x_req.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 1232x_req.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
@@ -1088,14 +1235,16 @@ x_req.o: ../../include/openssl/des.h ../../include/openssl/dh.h
1088x_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1235x_req.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
1089x_req.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1236x_req.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1090x_req.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1237x_req.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1091x_req.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1238x_req.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1092x_req.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1239x_req.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1093x_req.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1240x_req.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1094x_req.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1241x_req.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1095x_req.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1242x_req.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1096x_req.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1243x_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1097x_req.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1244x_req.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1098x_req.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1245x_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1246x_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1247x_req.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1099x_req.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1248x_req.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
1100x_sig.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1249x_sig.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
1101x_sig.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1250x_sig.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -1105,14 +1254,16 @@ x_sig.o: ../../include/openssl/des.h ../../include/openssl/dh.h
1105x_sig.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1254x_sig.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
1106x_sig.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1255x_sig.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1107x_sig.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1256x_sig.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1108x_sig.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1257x_sig.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1109x_sig.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1258x_sig.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1110x_sig.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1259x_sig.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1111x_sig.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1260x_sig.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1112x_sig.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1261x_sig.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1113x_sig.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1262x_sig.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1114x_sig.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1263x_sig.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1115x_sig.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1264x_sig.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1265x_sig.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1266x_sig.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1116x_sig.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1267x_sig.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
1117x_spki.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1268x_spki.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
1118x_spki.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1269x_spki.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -1122,14 +1273,16 @@ x_spki.o: ../../include/openssl/des.h ../../include/openssl/dh.h
1122x_spki.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1273x_spki.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
1123x_spki.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1274x_spki.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1124x_spki.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1275x_spki.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1125x_spki.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1276x_spki.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1126x_spki.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1277x_spki.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1127x_spki.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1278x_spki.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1128x_spki.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1279x_spki.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1129x_spki.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1280x_spki.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1130x_spki.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1281x_spki.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1131x_spki.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1282x_spki.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1132x_spki.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1283x_spki.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1284x_spki.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1285x_spki.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1133x_spki.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1286x_spki.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
1134x_val.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1287x_val.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
1135x_val.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1288x_val.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
@@ -1139,32 +1292,38 @@ x_val.o: ../../include/openssl/des.h ../../include/openssl/dh.h
1139x_val.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1292x_val.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
1140x_val.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1293x_val.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1141x_val.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1294x_val.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1142x_val.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1295x_val.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1143x_val.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1296x_val.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1144x_val.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1297x_val.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1145x_val.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1298x_val.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1146x_val.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1299x_val.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1147x_val.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1300x_val.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1148x_val.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1301x_val.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1149x_val.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1302x_val.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1303x_val.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1304x_val.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1150x_val.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1305x_val.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
1151x_x509.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1306x_x509.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
1152x_x509.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1307x_x509.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
1153x_x509.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 1308x_x509.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
1154x_x509.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h 1309x_x509.o: ../../include/openssl/cast.h ../../include/openssl/conf.h
1155x_x509.o: ../../include/openssl/des.h ../../include/openssl/dh.h 1310x_x509.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
1156x_x509.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1311x_x509.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
1312x_x509.o: ../../include/openssl/e_os.h ../../include/openssl/e_os.h
1157x_x509.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1313x_x509.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1158x_x509.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1314x_x509.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1159x_x509.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1315x_x509.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1160x_x509.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1316x_x509.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1161x_x509.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1317x_x509.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1162x_x509.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1318x_x509.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1163x_x509.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1319x_x509.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1164x_x509.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1320x_x509.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1165x_x509.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1321x_x509.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1166x_x509.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1322x_x509.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1167x_x509.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1323x_x509.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1324x_x509.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1325x_x509.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
1326x_x509.o: ../cryptlib.h
1168x_x509a.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h 1327x_x509a.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h
1169x_x509a.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h 1328x_x509a.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
1170x_x509a.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h 1329x_x509a.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
@@ -1173,12 +1332,14 @@ x_x509a.o: ../../include/openssl/des.h ../../include/openssl/dh.h
1173x_x509a.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h 1332x_x509a.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
1174x_x509a.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 1333x_x509a.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
1175x_x509a.o: ../../include/openssl/evp.h ../../include/openssl/idea.h 1334x_x509a.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
1176x_x509a.o: ../../include/openssl/md2.h ../../include/openssl/md5.h 1335x_x509a.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
1177x_x509a.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h 1336x_x509a.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
1178x_x509a.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 1337x_x509a.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
1179x_x509a.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h 1338x_x509a.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
1180x_x509a.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h 1339x_x509a.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
1181x_x509a.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h 1340x_x509a.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
1182x_x509a.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 1341x_x509a.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
1183x_x509a.o: ../../include/openssl/stack.h ../../include/openssl/x509.h 1342x_x509a.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
1343x_x509a.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
1344x_x509a.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
1184x_x509a.o: ../../include/openssl/x509_vfy.h ../cryptlib.h 1345x_x509a.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
diff --git a/src/lib/libcrypto/asn1/a_bitstr.c b/src/lib/libcrypto/asn1/a_bitstr.c
index c77456b315..7013a407ad 100644
--- a/src/lib/libcrypto/asn1/a_bitstr.c
+++ b/src/lib/libcrypto/asn1/a_bitstr.c
@@ -70,13 +70,27 @@ int ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len)
70{ return M_ASN1_BIT_STRING_set(x, d, len); } 70{ return M_ASN1_BIT_STRING_set(x, d, len); }
71 71
72int i2d_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp) 72int i2d_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp)
73{
74 int len, ret;
75 len = i2c_ASN1_BIT_STRING(a, NULL);
76 ret=ASN1_object_size(0,len,V_ASN1_BIT_STRING);
77 if(pp) {
78 ASN1_put_object(pp,0,len,V_ASN1_BIT_STRING,V_ASN1_UNIVERSAL);
79 i2c_ASN1_BIT_STRING(a, pp);
80 }
81 return ret;
82}
83
84int i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp)
73 { 85 {
74 int ret,j,r,bits,len; 86 int ret,j,bits,len;
75 unsigned char *p,*d; 87 unsigned char *p,*d;
76 88
77 if (a == NULL) return(0); 89 if (a == NULL) return(0);
78 90
79 len=a->length; 91 len=a->length;
92 ret=1+len;
93 if (pp == NULL) return(ret);
80 94
81 if (len > 0) 95 if (len > 0)
82 { 96 {
@@ -104,36 +118,27 @@ int i2d_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp)
104 } 118 }
105 else 119 else
106 bits=0; 120 bits=0;
107 ret=1+len;
108 r=ASN1_object_size(0,ret,V_ASN1_BIT_STRING);
109 if (pp == NULL) return(r);
110 p= *pp; 121 p= *pp;
111 122
112 ASN1_put_object(&p,0,ret,V_ASN1_BIT_STRING,V_ASN1_UNIVERSAL);
113 *(p++)=(unsigned char)bits; 123 *(p++)=(unsigned char)bits;
114 d=a->data; 124 d=a->data;
115 memcpy(p,d,len); 125 memcpy(p,d,len);
116 p+=len; 126 p+=len;
117 if (len > 0) p[-1]&=(0xff<<bits); 127 if (len > 0) p[-1]&=(0xff<<bits);
118 *pp=p; 128 *pp=p;
119 return(r); 129 return(ret);
120 } 130 }
121 131
132
133/* Convert DER encoded ASN1 BIT_STRING to ASN1_BIT_STRING structure */
122ASN1_BIT_STRING *d2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, unsigned char **pp, 134ASN1_BIT_STRING *d2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, unsigned char **pp,
123 long length) 135 long length)
124 { 136{
125 ASN1_BIT_STRING *ret=NULL; 137 unsigned char *p;
126 unsigned char *p,*s;
127 long len; 138 long len;
128 int inf,tag,xclass;
129 int i; 139 int i;
130 140 int inf,tag,xclass;
131 if ((a == NULL) || ((*a) == NULL)) 141 ASN1_BIT_STRING *ret;
132 {
133 if ((ret=M_ASN1_BIT_STRING_new()) == NULL) return(NULL);
134 }
135 else
136 ret=(*a);
137 142
138 p= *pp; 143 p= *pp;
139 inf=ASN1_get_object(&p,&len,&tag,&xclass,length); 144 inf=ASN1_get_object(&p,&len,&tag,&xclass,length);
@@ -149,7 +154,30 @@ ASN1_BIT_STRING *d2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, unsigned char **pp,
149 goto err; 154 goto err;
150 } 155 }
151 if (len < 1) { i=ASN1_R_STRING_TOO_SHORT; goto err; } 156 if (len < 1) { i=ASN1_R_STRING_TOO_SHORT; goto err; }
157 ret = c2i_ASN1_BIT_STRING(a, &p, len);
158 if(ret) *pp = p;
159 return ret;
160err:
161 ASN1err(ASN1_F_D2I_ASN1_BIT_STRING,i);
162 return(NULL);
163
164}
165
166ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, unsigned char **pp,
167 long len)
168 {
169 ASN1_BIT_STRING *ret=NULL;
170 unsigned char *p,*s;
171 int i;
172
173 if ((a == NULL) || ((*a) == NULL))
174 {
175 if ((ret=M_ASN1_BIT_STRING_new()) == NULL) return(NULL);
176 }
177 else
178 ret=(*a);
152 179
180 p= *pp;
153 i= *(p++); 181 i= *(p++);
154 /* We do this to preserve the settings. If we modify 182 /* We do this to preserve the settings. If we modify
155 * the settings, via the _set_bit function, we will recalculate 183 * the settings, via the _set_bit function, we will recalculate
@@ -159,7 +187,7 @@ ASN1_BIT_STRING *d2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, unsigned char **pp,
159 187
160 if (len-- > 1) /* using one because of the bits left byte */ 188 if (len-- > 1) /* using one because of the bits left byte */
161 { 189 {
162 s=(unsigned char *)Malloc((int)len); 190 s=(unsigned char *)OPENSSL_malloc((int)len);
163 if (s == NULL) 191 if (s == NULL)
164 { 192 {
165 i=ERR_R_MALLOC_FAILURE; 193 i=ERR_R_MALLOC_FAILURE;
@@ -173,7 +201,7 @@ ASN1_BIT_STRING *d2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, unsigned char **pp,
173 s=NULL; 201 s=NULL;
174 202
175 ret->length=(int)len; 203 ret->length=(int)len;
176 if (ret->data != NULL) Free(ret->data); 204 if (ret->data != NULL) OPENSSL_free(ret->data);
177 ret->data=s; 205 ret->data=s;
178 ret->type=V_ASN1_BIT_STRING; 206 ret->type=V_ASN1_BIT_STRING;
179 if (a != NULL) (*a)=ret; 207 if (a != NULL) (*a)=ret;
@@ -204,14 +232,14 @@ int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value)
204 { 232 {
205 if (!value) return(1); /* Don't need to set */ 233 if (!value) return(1); /* Don't need to set */
206 if (a->data == NULL) 234 if (a->data == NULL)
207 c=(unsigned char *)Malloc(w+1); 235 c=(unsigned char *)OPENSSL_malloc(w+1);
208 else 236 else
209 c=(unsigned char *)Realloc(a->data,w+1); 237 c=(unsigned char *)OPENSSL_realloc(a->data,w+1);
210 if (c == NULL) return(0); 238 if (c == NULL) return(0);
239 if (w+1-a->length > 0) memset(c+a->length, 0, w+1-a->length);
211 a->data=c; 240 a->data=c;
212 a->length=w+1; 241 a->length=w+1;
213 c[w]=0; 242 }
214 }
215 a->data[w]=((a->data[w])&iv)|v; 243 a->data[w]=((a->data[w])&iv)|v;
216 while ((a->length > 0) && (a->data[a->length-1] == 0)) 244 while ((a->length > 0) && (a->data[a->length-1] == 0))
217 a->length--; 245 a->length--;
diff --git a/src/lib/libcrypto/asn1/a_bytes.c b/src/lib/libcrypto/asn1/a_bytes.c
index 8cde695804..3a0c0c7835 100644
--- a/src/lib/libcrypto/asn1/a_bytes.c
+++ b/src/lib/libcrypto/asn1/a_bytes.c
@@ -111,7 +111,7 @@ ASN1_STRING *d2i_ASN1_type_bytes(ASN1_STRING **a, unsigned char **pp,
111 111
112 if (len != 0) 112 if (len != 0)
113 { 113 {
114 s=(unsigned char *)Malloc((int)len+1); 114 s=(unsigned char *)OPENSSL_malloc((int)len+1);
115 if (s == NULL) 115 if (s == NULL)
116 { 116 {
117 i=ERR_R_MALLOC_FAILURE; 117 i=ERR_R_MALLOC_FAILURE;
@@ -124,7 +124,7 @@ ASN1_STRING *d2i_ASN1_type_bytes(ASN1_STRING **a, unsigned char **pp,
124 else 124 else
125 s=NULL; 125 s=NULL;
126 126
127 if (ret->data != NULL) Free(ret->data); 127 if (ret->data != NULL) OPENSSL_free(ret->data);
128 ret->length=(int)len; 128 ret->length=(int)len;
129 ret->data=s; 129 ret->data=s;
130 ret->type=tag; 130 ret->type=tag;
@@ -218,8 +218,8 @@ ASN1_STRING *d2i_ASN1_bytes(ASN1_STRING **a, unsigned char **pp, long length,
218 { 218 {
219 if ((ret->length < len) || (ret->data == NULL)) 219 if ((ret->length < len) || (ret->data == NULL))
220 { 220 {
221 if (ret->data != NULL) Free(ret->data); 221 if (ret->data != NULL) OPENSSL_free(ret->data);
222 s=(unsigned char *)Malloc((int)len + 1); 222 s=(unsigned char *)OPENSSL_malloc((int)len + 1);
223 if (s == NULL) 223 if (s == NULL)
224 { 224 {
225 i=ERR_R_MALLOC_FAILURE; 225 i=ERR_R_MALLOC_FAILURE;
@@ -235,7 +235,7 @@ ASN1_STRING *d2i_ASN1_bytes(ASN1_STRING **a, unsigned char **pp, long length,
235 else 235 else
236 { 236 {
237 s=NULL; 237 s=NULL;
238 if (ret->data != NULL) Free(ret->data); 238 if (ret->data != NULL) OPENSSL_free(ret->data);
239 } 239 }
240 240
241 ret->length=(int)len; 241 ret->length=(int)len;
@@ -310,14 +310,14 @@ static int asn1_collate_primitive(ASN1_STRING *a, ASN1_CTX *c)
310 if (!asn1_Finish(c)) goto err; 310 if (!asn1_Finish(c)) goto err;
311 311
312 a->length=num; 312 a->length=num;
313 if (a->data != NULL) Free(a->data); 313 if (a->data != NULL) OPENSSL_free(a->data);
314 a->data=(unsigned char *)b.data; 314 a->data=(unsigned char *)b.data;
315 if (os != NULL) ASN1_STRING_free(os); 315 if (os != NULL) ASN1_STRING_free(os);
316 return(1); 316 return(1);
317err: 317err:
318 ASN1err(ASN1_F_ASN1_COLLATE_PRIMITIVE,c->error); 318 ASN1err(ASN1_F_ASN1_COLLATE_PRIMITIVE,c->error);
319 if (os != NULL) ASN1_STRING_free(os); 319 if (os != NULL) ASN1_STRING_free(os);
320 if (b.data != NULL) Free(b.data); 320 if (b.data != NULL) OPENSSL_free(b.data);
321 return(0); 321 return(0);
322 } 322 }
323 323
diff --git a/src/lib/libcrypto/asn1/a_digest.c b/src/lib/libcrypto/asn1/a_digest.c
index 3370aae998..8257b8639e 100644
--- a/src/lib/libcrypto/asn1/a_digest.c
+++ b/src/lib/libcrypto/asn1/a_digest.c
@@ -77,14 +77,14 @@ int ASN1_digest(int (*i2d)(), const EVP_MD *type, char *data,
77 unsigned char *str,*p; 77 unsigned char *str,*p;
78 78
79 i=i2d(data,NULL); 79 i=i2d(data,NULL);
80 if ((str=(unsigned char *)Malloc(i)) == NULL) return(0); 80 if ((str=(unsigned char *)OPENSSL_malloc(i)) == NULL) return(0);
81 p=str; 81 p=str;
82 i2d(data,&p); 82 i2d(data,&p);
83 83
84 EVP_DigestInit(&ctx,type); 84 EVP_DigestInit(&ctx,type);
85 EVP_DigestUpdate(&ctx,str,i); 85 EVP_DigestUpdate(&ctx,str,i);
86 EVP_DigestFinal(&ctx,md,len); 86 EVP_DigestFinal(&ctx,md,len);
87 Free(str); 87 OPENSSL_free(str);
88 return(1); 88 return(1);
89 } 89 }
90 90
diff --git a/src/lib/libcrypto/asn1/a_dup.c b/src/lib/libcrypto/asn1/a_dup.c
index 3202a816d0..c3bda58a5d 100644
--- a/src/lib/libcrypto/asn1/a_dup.c
+++ b/src/lib/libcrypto/asn1/a_dup.c
@@ -71,13 +71,13 @@ char *ASN1_dup(int (*i2d)(), char *(*d2i)(), char *x)
71 if (x == NULL) return(NULL); 71 if (x == NULL) return(NULL);
72 72
73 i=(long)i2d(x,NULL); 73 i=(long)i2d(x,NULL);
74 b=(unsigned char *)Malloc((unsigned int)i+10); 74 b=(unsigned char *)OPENSSL_malloc((unsigned int)i+10);
75 if (b == NULL) 75 if (b == NULL)
76 { ASN1err(ASN1_F_ASN1_DUP,ERR_R_MALLOC_FAILURE); return(NULL); } 76 { ASN1err(ASN1_F_ASN1_DUP,ERR_R_MALLOC_FAILURE); return(NULL); }
77 p= b; 77 p= b;
78 i=i2d(x,&p); 78 i=i2d(x,&p);
79 p= b; 79 p= b;
80 ret=d2i(NULL,&p,i); 80 ret=d2i(NULL,&p,i);
81 Free(b); 81 OPENSSL_free(b);
82 return(ret); 82 return(ret);
83 } 83 }
diff --git a/src/lib/libcrypto/asn1/a_enum.c b/src/lib/libcrypto/asn1/a_enum.c
index ccf62e5a04..1428d1df7a 100644
--- a/src/lib/libcrypto/asn1/a_enum.c
+++ b/src/lib/libcrypto/asn1/a_enum.c
@@ -71,88 +71,28 @@ ASN1_ENUMERATED *ASN1_ENUMERATED_new(void)
71void ASN1_ENUMERATED_free(ASN1_ENUMERATED *x) 71void ASN1_ENUMERATED_free(ASN1_ENUMERATED *x)
72{ M_ASN1_ENUMERATED_free(x); } 72{ M_ASN1_ENUMERATED_free(x); }
73 73
74int i2d_ASN1_ENUMERATED(ASN1_ENUMERATED *a, unsigned char **pp)
75 {
76 int pad=0,ret,r,i,t;
77 unsigned char *p,*n,pb=0;
78
79 if ((a == NULL) || (a->data == NULL)) return(0);
80 t=a->type;
81 if (a->length == 0)
82 ret=1;
83 else
84 {
85 ret=a->length;
86 i=a->data[0];
87 if ((t == V_ASN1_ENUMERATED) && (i > 127)) {
88 pad=1;
89 pb=0;
90 } else if(t == V_ASN1_NEG_ENUMERATED) {
91 if(i>128) {
92 pad=1;
93 pb=0xFF;
94 } else if(i == 128) {
95 for(i = 1; i < a->length; i++) if(a->data[i]) {
96 pad=1;
97 pb=0xFF;
98 break;
99 }
100 }
101 }
102 ret+=pad;
103 }
104 r=ASN1_object_size(0,ret,V_ASN1_ENUMERATED);
105 if (pp == NULL) return(r);
106 p= *pp;
107
108 ASN1_put_object(&p,0,ret,V_ASN1_ENUMERATED,V_ASN1_UNIVERSAL);
109 if (pad) *(p++)=pb;
110 if (a->length == 0)
111 *(p++)=0;
112 else if (t == V_ASN1_ENUMERATED)
113 {
114 memcpy(p,a->data,(unsigned int)a->length);
115 p+=a->length;
116 }
117 else {
118 /* Begin at the end of the encoding */
119 n=a->data + a->length - 1;
120 p += a->length - 1;
121 i = a->length;
122 /* Copy zeros to destination as long as source is zero */
123 while(!*n) {
124 *(p--) = 0;
125 n--;
126 i--;
127 }
128 /* Complement and increment next octet */
129 *(p--) = ((*(n--)) ^ 0xff) + 1;
130 i--;
131 /* Complement any octets left */
132 for(;i > 0; i--) *(p--) = *(n--) ^ 0xff;
133 p += a->length;
134 }
135 74
136 *pp=p; 75int i2d_ASN1_ENUMERATED(ASN1_ENUMERATED *a, unsigned char **pp)
137 return(r); 76{
77 int len, ret;
78 if(!a) return 0;
79 len = i2c_ASN1_INTEGER(a, NULL);
80 ret=ASN1_object_size(0,len,V_ASN1_ENUMERATED);
81 if(pp) {
82 ASN1_put_object(pp,0,len,V_ASN1_ENUMERATED,V_ASN1_UNIVERSAL);
83 i2c_ASN1_INTEGER(a, pp);
138 } 84 }
85 return ret;
86}
139 87
140ASN1_ENUMERATED *d2i_ASN1_ENUMERATED(ASN1_ENUMERATED **a, unsigned char **pp, 88ASN1_ENUMERATED *d2i_ASN1_ENUMERATED(ASN1_ENUMERATED **a, unsigned char **pp,
141 long length) 89 long length)
142 { 90{
143 ASN1_ENUMERATED *ret=NULL; 91 unsigned char *p;
144 unsigned char *p,*to,*s;
145 long len; 92 long len;
146 int inf,tag,xclass;
147 int i; 93 int i;
148 94 int inf,tag,xclass;
149 if ((a == NULL) || ((*a) == NULL)) 95 ASN1_ENUMERATED *ret;
150 {
151 if ((ret=M_ASN1_ENUMERATED_new()) == NULL) return(NULL);
152 ret->type=V_ASN1_ENUMERATED;
153 }
154 else
155 ret=(*a);
156 96
157 p= *pp; 97 p= *pp;
158 inf=ASN1_get_object(&p,&len,&tag,&xclass,length); 98 inf=ASN1_get_object(&p,&len,&tag,&xclass,length);
@@ -167,70 +107,17 @@ ASN1_ENUMERATED *d2i_ASN1_ENUMERATED(ASN1_ENUMERATED **a, unsigned char **pp,
167 i=ASN1_R_EXPECTING_AN_ENUMERATED; 107 i=ASN1_R_EXPECTING_AN_ENUMERATED;
168 goto err; 108 goto err;
169 } 109 }
170 110 ret = c2i_ASN1_INTEGER(a, &p, len);
171 /* We must Malloc stuff, even for 0 bytes otherwise it 111 if(ret) {
172 * signifies a missing NULL parameter. */ 112 ret->type = (V_ASN1_NEG & ret->type) | V_ASN1_ENUMERATED;
173 s=(unsigned char *)Malloc((int)len+1); 113 *pp = p;
174 if (s == NULL)
175 {
176 i=ERR_R_MALLOC_FAILURE;
177 goto err;
178 }
179 to=s;
180 if(!len) {
181 /* Strictly speaking this is an illegal ENUMERATED but we
182 * tolerate it.
183 */
184 ret->type=V_ASN1_ENUMERATED;
185 } else if (*p & 0x80) /* a negative number */
186 {
187 ret->type=V_ASN1_NEG_ENUMERATED;
188 if ((*p == 0xff) && (len != 1)) {
189 p++;
190 len--;
191 }
192 i = len;
193 p += i - 1;
194 to += i - 1;
195 while((!*p) && i) {
196 *(to--) = 0;
197 i--;
198 p--;
199 }
200 if(!i) {
201 *s = 1;
202 s[len] = 0;
203 p += len;
204 len++;
205 } else {
206 *(to--) = (*(p--) ^ 0xff) + 1;
207 i--;
208 for(;i > 0; i--) *(to--) = *(p--) ^ 0xff;
209 p += len;
210 }
211 } else {
212 ret->type=V_ASN1_ENUMERATED;
213 if ((*p == 0) && (len != 1))
214 {
215 p++;
216 len--;
217 }
218 memcpy(s,p,(int)len);
219 p+=len;
220 } 114 }
221 115 return ret;
222 if (ret->data != NULL) Free(ret->data);
223 ret->data=s;
224 ret->length=(int)len;
225 if (a != NULL) (*a)=ret;
226 *pp=p;
227 return(ret);
228err: 116err:
229 ASN1err(ASN1_F_D2I_ASN1_ENUMERATED,i); 117 ASN1err(ASN1_F_D2I_ASN1_ENUMERATED,i);
230 if ((ret != NULL) && ((a == NULL) || (*a != ret)))
231 M_ASN1_ENUMERATED_free(ret);
232 return(NULL); 118 return(NULL);
233 } 119
120}
234 121
235int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v) 122int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v)
236 { 123 {
@@ -242,8 +129,8 @@ int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v)
242 if (a->length < (sizeof(long)+1)) 129 if (a->length < (sizeof(long)+1))
243 { 130 {
244 if (a->data != NULL) 131 if (a->data != NULL)
245 Free(a->data); 132 OPENSSL_free(a->data);
246 if ((a->data=(unsigned char *)Malloc(sizeof(long)+1)) != NULL) 133 if ((a->data=(unsigned char *)OPENSSL_malloc(sizeof(long)+1)) != NULL)
247 memset((char *)a->data,0,sizeof(long)+1); 134 memset((char *)a->data,0,sizeof(long)+1);
248 } 135 }
249 if (a->data == NULL) 136 if (a->data == NULL)
@@ -318,7 +205,7 @@ ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai)
318 else ret->type=V_ASN1_ENUMERATED; 205 else ret->type=V_ASN1_ENUMERATED;
319 j=BN_num_bits(bn); 206 j=BN_num_bits(bn);
320 len=((j == 0)?0:((j/8)+1)); 207 len=((j == 0)?0:((j/8)+1));
321 ret->data=(unsigned char *)Malloc(len+4); 208 ret->data=(unsigned char *)OPENSSL_malloc(len+4);
322 ret->length=BN_bn2bin(bn,ret->data); 209 ret->length=BN_bn2bin(bn,ret->data);
323 return(ret); 210 return(ret);
324err: 211err:
@@ -332,6 +219,6 @@ BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn)
332 219
333 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL) 220 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
334 ASN1err(ASN1_F_ASN1_ENUMERATED_TO_BN,ASN1_R_BN_LIB); 221 ASN1err(ASN1_F_ASN1_ENUMERATED_TO_BN,ASN1_R_BN_LIB);
335 if(ai->type == V_ASN1_NEG_ENUMERATED) bn->neg = 1; 222 else if(ai->type == V_ASN1_NEG_ENUMERATED) ret->neg = 1;
336 return(ret); 223 return(ret);
337 } 224 }
diff --git a/src/lib/libcrypto/asn1/a_gentm.c b/src/lib/libcrypto/asn1/a_gentm.c
index 84062170e8..314479a03d 100644
--- a/src/lib/libcrypto/asn1/a_gentm.c
+++ b/src/lib/libcrypto/asn1/a_gentm.c
@@ -212,10 +212,10 @@ ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,
212 p=(char *)s->data; 212 p=(char *)s->data;
213 if ((p == NULL) || (s->length < 16)) 213 if ((p == NULL) || (s->length < 16))
214 { 214 {
215 p=Malloc(20); 215 p=OPENSSL_malloc(20);
216 if (p == NULL) return(NULL); 216 if (p == NULL) return(NULL);
217 if (s->data != NULL) 217 if (s->data != NULL)
218 Free(s->data); 218 OPENSSL_free(s->data);
219 s->data=(unsigned char *)p; 219 s->data=(unsigned char *)p;
220 } 220 }
221 221
diff --git a/src/lib/libcrypto/asn1/a_hdr.c b/src/lib/libcrypto/asn1/a_hdr.c
index 434610e8e1..b1aad81f77 100644
--- a/src/lib/libcrypto/asn1/a_hdr.c
+++ b/src/lib/libcrypto/asn1/a_hdr.c
@@ -115,5 +115,5 @@ void ASN1_HEADER_free(ASN1_HEADER *a)
115 M_ASN1_OCTET_STRING_free(a->header); 115 M_ASN1_OCTET_STRING_free(a->header);
116 if (a->meth != NULL) 116 if (a->meth != NULL)
117 a->meth->destroy(a->data); 117 a->meth->destroy(a->data);
118 Free(a); 118 OPENSSL_free(a);
119 } 119 }
diff --git a/src/lib/libcrypto/asn1/a_i2d_fp.c b/src/lib/libcrypto/asn1/a_i2d_fp.c
index d9b8035e17..aee29a7790 100644
--- a/src/lib/libcrypto/asn1/a_i2d_fp.c
+++ b/src/lib/libcrypto/asn1/a_i2d_fp.c
@@ -86,7 +86,7 @@ int ASN1_i2d_bio(int (*i2d)(), BIO *out, unsigned char *x)
86 int i,j=0,n,ret=1; 86 int i,j=0,n,ret=1;
87 87
88 n=i2d(x,NULL); 88 n=i2d(x,NULL);
89 b=(char *)Malloc(n); 89 b=(char *)OPENSSL_malloc(n);
90 if (b == NULL) 90 if (b == NULL)
91 { 91 {
92 ASN1err(ASN1_F_ASN1_I2D_BIO,ERR_R_MALLOC_FAILURE); 92 ASN1err(ASN1_F_ASN1_I2D_BIO,ERR_R_MALLOC_FAILURE);
@@ -108,6 +108,6 @@ int ASN1_i2d_bio(int (*i2d)(), BIO *out, unsigned char *x)
108 j+=i; 108 j+=i;
109 n-=i; 109 n-=i;
110 } 110 }
111 Free(b); 111 OPENSSL_free(b);
112 return(ret); 112 return(ret);
113 } 113 }
diff --git a/src/lib/libcrypto/asn1/a_int.c b/src/lib/libcrypto/asn1/a_int.c
index 8b6794e8c1..6f0413f885 100644
--- a/src/lib/libcrypto/asn1/a_int.c
+++ b/src/lib/libcrypto/asn1/a_int.c
@@ -72,8 +72,23 @@ ASN1_INTEGER *ASN1_INTEGER_dup(ASN1_INTEGER *x)
72int ASN1_INTEGER_cmp(ASN1_INTEGER *x, ASN1_INTEGER *y) 72int ASN1_INTEGER_cmp(ASN1_INTEGER *x, ASN1_INTEGER *y)
73{ return M_ASN1_INTEGER_cmp(x,y);} 73{ return M_ASN1_INTEGER_cmp(x,y);}
74 74
75/* Output ASN1 INTEGER including tag+length */
76
77int i2d_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp)
78{
79 int len, ret;
80 if(!a) return 0;
81 len = i2c_ASN1_INTEGER(a, NULL);
82 ret=ASN1_object_size(0,len,V_ASN1_INTEGER);
83 if(pp) {
84 ASN1_put_object(pp,0,len,V_ASN1_INTEGER,V_ASN1_UNIVERSAL);
85 i2c_ASN1_INTEGER(a, pp);
86 }
87 return ret;
88}
89
75/* 90/*
76 * This converts an ASN1 INTEGER into its DER encoding. 91 * This converts an ASN1 INTEGER into its content encoding.
77 * The internal representation is an ASN1_STRING whose data is a big endian 92 * The internal representation is an ASN1_STRING whose data is a big endian
78 * representation of the value, ignoring the sign. The sign is determined by 93 * representation of the value, ignoring the sign. The sign is determined by
79 * the type: V_ASN1_INTEGER for positive and V_ASN1_NEG_INTEGER for negative. 94 * the type: V_ASN1_INTEGER for positive and V_ASN1_NEG_INTEGER for negative.
@@ -97,23 +112,23 @@ int ASN1_INTEGER_cmp(ASN1_INTEGER *x, ASN1_INTEGER *y)
97 * followed by optional zeros isn't padded. 112 * followed by optional zeros isn't padded.
98 */ 113 */
99 114
100int i2d_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp) 115int i2c_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp)
101 { 116 {
102 int pad=0,ret,r,i,t; 117 int pad=0,ret,i,neg;
103 unsigned char *p,*n,pb=0; 118 unsigned char *p,*n,pb=0;
104 119
105 if ((a == NULL) || (a->data == NULL)) return(0); 120 if ((a == NULL) || (a->data == NULL)) return(0);
106 t=a->type; 121 neg=a->type & V_ASN1_NEG;
107 if (a->length == 0) 122 if (a->length == 0)
108 ret=1; 123 ret=1;
109 else 124 else
110 { 125 {
111 ret=a->length; 126 ret=a->length;
112 i=a->data[0]; 127 i=a->data[0];
113 if ((t == V_ASN1_INTEGER) && (i > 127)) { 128 if (!neg && (i > 127)) {
114 pad=1; 129 pad=1;
115 pb=0; 130 pb=0;
116 } else if(t == V_ASN1_NEG_INTEGER) { 131 } else if(neg) {
117 if(i>128) { 132 if(i>128) {
118 pad=1; 133 pad=1;
119 pb=0xFF; 134 pb=0xFF;
@@ -131,14 +146,12 @@ int i2d_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp)
131 } 146 }
132 ret+=pad; 147 ret+=pad;
133 } 148 }
134 r=ASN1_object_size(0,ret,V_ASN1_INTEGER); 149 if (pp == NULL) return(ret);
135 if (pp == NULL) return(r);
136 p= *pp; 150 p= *pp;
137 151
138 ASN1_put_object(&p,0,ret,V_ASN1_INTEGER,V_ASN1_UNIVERSAL);
139 if (pad) *(p++)=pb; 152 if (pad) *(p++)=pb;
140 if (a->length == 0) *(p++)=0; 153 if (a->length == 0) *(p++)=0;
141 else if (t == V_ASN1_INTEGER) memcpy(p,a->data,(unsigned int)a->length); 154 else if (!neg) memcpy(p,a->data,(unsigned int)a->length);
142 else { 155 else {
143 /* Begin at the end of the encoding */ 156 /* Begin at the end of the encoding */
144 n=a->data + a->length - 1; 157 n=a->data + a->length - 1;
@@ -157,30 +170,22 @@ int i2d_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp)
157 for(;i > 0; i--) *(p--) = *(n--) ^ 0xff; 170 for(;i > 0; i--) *(p--) = *(n--) ^ 0xff;
158 } 171 }
159 172
160 *pp+=r; 173 *pp+=ret;
161 return(r); 174 return(ret);
162 } 175 }
163 176
177/* Convert DER encoded ASN1 INTEGER to ASN1_INTEGER structure */
164ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a, unsigned char **pp, 178ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a, unsigned char **pp,
165 long length) 179 long length)
166 { 180{
167 ASN1_INTEGER *ret=NULL; 181 unsigned char *p;
168 unsigned char *p,*to,*s, *pend;
169 long len; 182 long len;
170 int inf,tag,xclass;
171 int i; 183 int i;
172 184 int inf,tag,xclass;
173 if ((a == NULL) || ((*a) == NULL)) 185 ASN1_INTEGER *ret;
174 {
175 if ((ret=M_ASN1_INTEGER_new()) == NULL) return(NULL);
176 ret->type=V_ASN1_INTEGER;
177 }
178 else
179 ret=(*a);
180 186
181 p= *pp; 187 p= *pp;
182 inf=ASN1_get_object(&p,&len,&tag,&xclass,length); 188 inf=ASN1_get_object(&p,&len,&tag,&xclass,length);
183 pend = p + len;
184 if (inf & 0x80) 189 if (inf & 0x80)
185 { 190 {
186 i=ASN1_R_BAD_OBJECT_HEADER; 191 i=ASN1_R_BAD_OBJECT_HEADER;
@@ -192,10 +197,39 @@ ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a, unsigned char **pp,
192 i=ASN1_R_EXPECTING_AN_INTEGER; 197 i=ASN1_R_EXPECTING_AN_INTEGER;
193 goto err; 198 goto err;
194 } 199 }
200 ret = c2i_ASN1_INTEGER(a, &p, len);
201 if(ret) *pp = p;
202 return ret;
203err:
204 ASN1err(ASN1_F_D2I_ASN1_INTEGER,i);
205 return(NULL);
206
207}
208
209
210/* Convert just ASN1 INTEGER content octets to ASN1_INTEGER structure */
211
212ASN1_INTEGER *c2i_ASN1_INTEGER(ASN1_INTEGER **a, unsigned char **pp,
213 long len)
214 {
215 ASN1_INTEGER *ret=NULL;
216 unsigned char *p,*to,*s, *pend;
217 int i;
218
219 if ((a == NULL) || ((*a) == NULL))
220 {
221 if ((ret=M_ASN1_INTEGER_new()) == NULL) return(NULL);
222 ret->type=V_ASN1_INTEGER;
223 }
224 else
225 ret=(*a);
195 226
196 /* We must Malloc stuff, even for 0 bytes otherwise it 227 p= *pp;
228 pend = p + len;
229
230 /* We must OPENSSL_malloc stuff, even for 0 bytes otherwise it
197 * signifies a missing NULL parameter. */ 231 * signifies a missing NULL parameter. */
198 s=(unsigned char *)Malloc((int)len+1); 232 s=(unsigned char *)OPENSSL_malloc((int)len+1);
199 if (s == NULL) 233 if (s == NULL)
200 { 234 {
201 i=ERR_R_MALLOC_FAILURE; 235 i=ERR_R_MALLOC_FAILURE;
@@ -248,7 +282,7 @@ ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a, unsigned char **pp,
248 memcpy(s,p,(int)len); 282 memcpy(s,p,(int)len);
249 } 283 }
250 284
251 if (ret->data != NULL) Free(ret->data); 285 if (ret->data != NULL) OPENSSL_free(ret->data);
252 ret->data=s; 286 ret->data=s;
253 ret->length=(int)len; 287 ret->length=(int)len;
254 if (a != NULL) (*a)=ret; 288 if (a != NULL) (*a)=ret;
@@ -261,6 +295,7 @@ err:
261 return(NULL); 295 return(NULL);
262 } 296 }
263 297
298
264/* This is a version of d2i_ASN1_INTEGER that ignores the sign bit of 299/* This is a version of d2i_ASN1_INTEGER that ignores the sign bit of
265 * ASN1 integers: some broken software can encode a positive INTEGER 300 * ASN1 integers: some broken software can encode a positive INTEGER
266 * with its MSB set as negative (it doesn't add a padding zero). 301 * with its MSB set as negative (it doesn't add a padding zero).
@@ -297,9 +332,9 @@ ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, unsigned char **pp,
297 goto err; 332 goto err;
298 } 333 }
299 334
300 /* We must Malloc stuff, even for 0 bytes otherwise it 335 /* We must OPENSSL_malloc stuff, even for 0 bytes otherwise it
301 * signifies a missing NULL parameter. */ 336 * signifies a missing NULL parameter. */
302 s=(unsigned char *)Malloc((int)len+1); 337 s=(unsigned char *)OPENSSL_malloc((int)len+1);
303 if (s == NULL) 338 if (s == NULL)
304 { 339 {
305 i=ERR_R_MALLOC_FAILURE; 340 i=ERR_R_MALLOC_FAILURE;
@@ -317,7 +352,7 @@ ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, unsigned char **pp,
317 p+=len; 352 p+=len;
318 } 353 }
319 354
320 if (ret->data != NULL) Free(ret->data); 355 if (ret->data != NULL) OPENSSL_free(ret->data);
321 ret->data=s; 356 ret->data=s;
322 ret->length=(int)len; 357 ret->length=(int)len;
323 if (a != NULL) (*a)=ret; 358 if (a != NULL) (*a)=ret;
@@ -340,8 +375,8 @@ int ASN1_INTEGER_set(ASN1_INTEGER *a, long v)
340 if (a->length < (sizeof(long)+1)) 375 if (a->length < (sizeof(long)+1))
341 { 376 {
342 if (a->data != NULL) 377 if (a->data != NULL)
343 Free(a->data); 378 OPENSSL_free(a->data);
344 if ((a->data=(unsigned char *)Malloc(sizeof(long)+1)) != NULL) 379 if ((a->data=(unsigned char *)OPENSSL_malloc(sizeof(long)+1)) != NULL)
345 memset((char *)a->data,0,sizeof(long)+1); 380 memset((char *)a->data,0,sizeof(long)+1);
346 } 381 }
347 if (a->data == NULL) 382 if (a->data == NULL)
@@ -416,7 +451,7 @@ ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *bn, ASN1_INTEGER *ai)
416 else ret->type=V_ASN1_INTEGER; 451 else ret->type=V_ASN1_INTEGER;
417 j=BN_num_bits(bn); 452 j=BN_num_bits(bn);
418 len=((j == 0)?0:((j/8)+1)); 453 len=((j == 0)?0:((j/8)+1));
419 ret->data=(unsigned char *)Malloc(len+4); 454 ret->data=(unsigned char *)OPENSSL_malloc(len+4);
420 ret->length=BN_bn2bin(bn,ret->data); 455 ret->length=BN_bn2bin(bn,ret->data);
421 return(ret); 456 return(ret);
422err: 457err:
@@ -430,6 +465,9 @@ BIGNUM *ASN1_INTEGER_to_BN(ASN1_INTEGER *ai, BIGNUM *bn)
430 465
431 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL) 466 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
432 ASN1err(ASN1_F_ASN1_INTEGER_TO_BN,ASN1_R_BN_LIB); 467 ASN1err(ASN1_F_ASN1_INTEGER_TO_BN,ASN1_R_BN_LIB);
433 if(ai->type == V_ASN1_NEG_INTEGER) bn->neg = 1; 468 else if(ai->type == V_ASN1_NEG_INTEGER) ret->neg = 1;
434 return(ret); 469 return(ret);
435 } 470 }
471
472IMPLEMENT_STACK_OF(ASN1_INTEGER)
473IMPLEMENT_ASN1_SET_OF(ASN1_INTEGER)
diff --git a/src/lib/libcrypto/asn1/a_mbstr.c b/src/lib/libcrypto/asn1/a_mbstr.c
index 7a710d5459..5d981c6553 100644
--- a/src/lib/libcrypto/asn1/a_mbstr.c
+++ b/src/lib/libcrypto/asn1/a_mbstr.c
@@ -92,6 +92,7 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,
92{ 92{
93 int str_type; 93 int str_type;
94 int ret; 94 int ret;
95 char free_out;
95 int outform, outlen; 96 int outform, outlen;
96 ASN1_STRING *dest; 97 ASN1_STRING *dest;
97 unsigned char *p; 98 unsigned char *p;
@@ -180,14 +181,16 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,
180 } 181 }
181 if(!out) return str_type; 182 if(!out) return str_type;
182 if(*out) { 183 if(*out) {
184 free_out = 0;
183 dest = *out; 185 dest = *out;
184 if(dest->data) { 186 if(dest->data) {
185 dest->length = 0; 187 dest->length = 0;
186 Free(dest->data); 188 OPENSSL_free(dest->data);
187 dest->data = NULL; 189 dest->data = NULL;
188 } 190 }
189 dest->type = str_type; 191 dest->type = str_type;
190 } else { 192 } else {
193 free_out = 1;
191 dest = ASN1_STRING_type_new(str_type); 194 dest = ASN1_STRING_type_new(str_type);
192 if(!dest) { 195 if(!dest) {
193 ASN1err(ASN1_F_ASN1_MBSTRING_COPY, 196 ASN1err(ASN1_F_ASN1_MBSTRING_COPY,
@@ -228,8 +231,8 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,
228 cpyfunc = cpy_utf8; 231 cpyfunc = cpy_utf8;
229 break; 232 break;
230 } 233 }
231 if(!(p = Malloc(outlen + 1))) { 234 if(!(p = OPENSSL_malloc(outlen + 1))) {
232 ASN1_STRING_free(dest); 235 if(free_out) ASN1_STRING_free(dest);
233 ASN1err(ASN1_F_ASN1_MBSTRING_COPY,ERR_R_MALLOC_FAILURE); 236 ASN1err(ASN1_F_ASN1_MBSTRING_COPY,ERR_R_MALLOC_FAILURE);
234 return -1; 237 return -1;
235 } 238 }
@@ -258,8 +261,8 @@ static int traverse_string(const unsigned char *p, int len, int inform,
258 value |= *p++; 261 value |= *p++;
259 len -= 2; 262 len -= 2;
260 } else if(inform == MBSTRING_UNIV) { 263 } else if(inform == MBSTRING_UNIV) {
261 value = *p++ << 24; 264 value = ((unsigned long)*p++) << 24;
262 value |= *p++ << 16; 265 value |= ((unsigned long)*p++) << 16;
263 value |= *p++ << 8; 266 value |= *p++ << 8;
264 value |= *p++; 267 value |= *p++;
265 len -= 4; 268 len -= 4;
@@ -382,9 +385,16 @@ static int is_printable(unsigned long value)
382 /* Note: we can't use 'isalnum' because certain accented 385 /* Note: we can't use 'isalnum' because certain accented
383 * characters may count as alphanumeric in some environments. 386 * characters may count as alphanumeric in some environments.
384 */ 387 */
388#ifndef CHARSET_EBCDIC
385 if((ch >= 'a') && (ch <= 'z')) return 1; 389 if((ch >= 'a') && (ch <= 'z')) return 1;
386 if((ch >= 'A') && (ch <= 'Z')) return 1; 390 if((ch >= 'A') && (ch <= 'Z')) return 1;
387 if((ch >= '0') && (ch <= '9')) return 1; 391 if((ch >= '0') && (ch <= '9')) return 1;
388 if ((ch == ' ') || strchr("'()+,-./:=?", ch)) return 1; 392 if ((ch == ' ') || strchr("'()+,-./:=?", ch)) return 1;
393#else /*CHARSET_EBCDIC*/
394 if((ch >= os_toascii['a']) && (ch <= os_toascii['z'])) return 1;
395 if((ch >= os_toascii['A']) && (ch <= os_toascii['Z'])) return 1;
396 if((ch >= os_toascii['0']) && (ch <= os_toascii['9'])) return 1;
397 if ((ch == os_toascii[' ']) || strchr("'()+,-./:=?", os_toebcdic[ch])) return 1;
398#endif /*CHARSET_EBCDIC*/
389 return 0; 399 return 0;
390} 400}
diff --git a/src/lib/libcrypto/asn1/a_object.c b/src/lib/libcrypto/asn1/a_object.c
index 09d56fb669..20caa2d3bd 100644
--- a/src/lib/libcrypto/asn1/a_object.c
+++ b/src/lib/libcrypto/asn1/a_object.c
@@ -65,11 +65,12 @@
65int i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp) 65int i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp)
66 { 66 {
67 unsigned char *p; 67 unsigned char *p;
68 int objsize;
68 69
69 if ((a == NULL) || (a->data == NULL)) return(0); 70 if ((a == NULL) || (a->data == NULL)) return(0);
70 71
71 if (pp == NULL) 72 objsize = ASN1_object_size(0,a->length,V_ASN1_OBJECT);
72 return(ASN1_object_size(0,a->length,V_ASN1_OBJECT)); 73 if (pp == NULL) return objsize;
73 74
74 p= *pp; 75 p= *pp;
75 ASN1_put_object(&p,0,a->length,V_ASN1_OBJECT,V_ASN1_UNIVERSAL); 76 ASN1_put_object(&p,0,a->length,V_ASN1_OBJECT,V_ASN1_UNIVERSAL);
@@ -77,7 +78,7 @@ int i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp)
77 p+=a->length; 78 p+=a->length;
78 79
79 *pp=p; 80 *pp=p;
80 return(a->length); 81 return(objsize);
81 } 82 }
82 83
83int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num) 84int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num)
@@ -190,24 +191,13 @@ int i2a_ASN1_OBJECT(BIO *bp, ASN1_OBJECT *a)
190 191
191ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, unsigned char **pp, 192ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, unsigned char **pp,
192 long length) 193 long length)
193 { 194{
194 ASN1_OBJECT *ret=NULL;
195 unsigned char *p; 195 unsigned char *p;
196 long len; 196 long len;
197 int tag,xclass; 197 int tag,xclass;
198 int inf,i; 198 int inf,i;
199 199 ASN1_OBJECT *ret = NULL;
200 /* only the ASN1_OBJECTs from the 'table' will have values
201 * for ->sn or ->ln */
202 if ((a == NULL) || ((*a) == NULL) ||
203 !((*a)->flags & ASN1_OBJECT_FLAG_DYNAMIC))
204 {
205 if ((ret=ASN1_OBJECT_new()) == NULL) return(NULL);
206 }
207 else ret=(*a);
208
209 p= *pp; 200 p= *pp;
210
211 inf=ASN1_get_object(&p,&len,&tag,&xclass,length); 201 inf=ASN1_get_object(&p,&len,&tag,&xclass,length);
212 if (inf & 0x80) 202 if (inf & 0x80)
213 { 203 {
@@ -220,10 +210,36 @@ ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, unsigned char **pp,
220 i=ASN1_R_EXPECTING_AN_OBJECT; 210 i=ASN1_R_EXPECTING_AN_OBJECT;
221 goto err; 211 goto err;
222 } 212 }
213 ret = c2i_ASN1_OBJECT(a, &p, len);
214 if(ret) *pp = p;
215 return ret;
216err:
217 ASN1err(ASN1_F_D2I_ASN1_OBJECT,i);
218 if ((ret != NULL) && ((a == NULL) || (*a != ret)))
219 ASN1_OBJECT_free(ret);
220 return(NULL);
221}
222ASN1_OBJECT *c2i_ASN1_OBJECT(ASN1_OBJECT **a, unsigned char **pp,
223 long len)
224 {
225 ASN1_OBJECT *ret=NULL;
226 unsigned char *p;
227 int i;
228
229 /* only the ASN1_OBJECTs from the 'table' will have values
230 * for ->sn or ->ln */
231 if ((a == NULL) || ((*a) == NULL) ||
232 !((*a)->flags & ASN1_OBJECT_FLAG_DYNAMIC))
233 {
234 if ((ret=ASN1_OBJECT_new()) == NULL) return(NULL);
235 }
236 else ret=(*a);
237
238 p= *pp;
223 if ((ret->data == NULL) || (ret->length < len)) 239 if ((ret->data == NULL) || (ret->length < len))
224 { 240 {
225 if (ret->data != NULL) Free(ret->data); 241 if (ret->data != NULL) OPENSSL_free(ret->data);
226 ret->data=(unsigned char *)Malloc(len ? (int)len : 1); 242 ret->data=(unsigned char *)OPENSSL_malloc(len ? (int)len : 1);
227 ret->flags|=ASN1_OBJECT_FLAG_DYNAMIC_DATA; 243 ret->flags|=ASN1_OBJECT_FLAG_DYNAMIC_DATA;
228 if (ret->data == NULL) 244 if (ret->data == NULL)
229 { i=ERR_R_MALLOC_FAILURE; goto err; } 245 { i=ERR_R_MALLOC_FAILURE; goto err; }
@@ -249,7 +265,7 @@ ASN1_OBJECT *ASN1_OBJECT_new(void)
249 { 265 {
250 ASN1_OBJECT *ret; 266 ASN1_OBJECT *ret;
251 267
252 ret=(ASN1_OBJECT *)Malloc(sizeof(ASN1_OBJECT)); 268 ret=(ASN1_OBJECT *)OPENSSL_malloc(sizeof(ASN1_OBJECT));
253 if (ret == NULL) 269 if (ret == NULL)
254 { 270 {
255 ASN1err(ASN1_F_ASN1_OBJECT_NEW,ERR_R_MALLOC_FAILURE); 271 ASN1err(ASN1_F_ASN1_OBJECT_NEW,ERR_R_MALLOC_FAILURE);
@@ -270,19 +286,19 @@ void ASN1_OBJECT_free(ASN1_OBJECT *a)
270 if (a->flags & ASN1_OBJECT_FLAG_DYNAMIC_STRINGS) 286 if (a->flags & ASN1_OBJECT_FLAG_DYNAMIC_STRINGS)
271 { 287 {
272#ifndef CONST_STRICT /* disable purely for compile-time strict const checking. Doing this on a "real" compile will cause memory leaks */ 288#ifndef CONST_STRICT /* disable purely for compile-time strict const checking. Doing this on a "real" compile will cause memory leaks */
273 if (a->sn != NULL) Free((void *)a->sn); 289 if (a->sn != NULL) OPENSSL_free((void *)a->sn);
274 if (a->ln != NULL) Free((void *)a->ln); 290 if (a->ln != NULL) OPENSSL_free((void *)a->ln);
275#endif 291#endif
276 a->sn=a->ln=NULL; 292 a->sn=a->ln=NULL;
277 } 293 }
278 if (a->flags & ASN1_OBJECT_FLAG_DYNAMIC_DATA) 294 if (a->flags & ASN1_OBJECT_FLAG_DYNAMIC_DATA)
279 { 295 {
280 if (a->data != NULL) Free(a->data); 296 if (a->data != NULL) OPENSSL_free(a->data);
281 a->data=NULL; 297 a->data=NULL;
282 a->length=0; 298 a->length=0;
283 } 299 }
284 if (a->flags & ASN1_OBJECT_FLAG_DYNAMIC) 300 if (a->flags & ASN1_OBJECT_FLAG_DYNAMIC)
285 Free(a); 301 OPENSSL_free(a);
286 } 302 }
287 303
288ASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len, 304ASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len,
diff --git a/src/lib/libcrypto/asn1/a_set.c b/src/lib/libcrypto/asn1/a_set.c
index c2481e7597..caf5a1419c 100644
--- a/src/lib/libcrypto/asn1/a_set.c
+++ b/src/lib/libcrypto/asn1/a_set.c
@@ -116,7 +116,7 @@ int i2d_ASN1_SET(STACK *a, unsigned char **pp, int (*func)(), int ex_tag,
116 } 116 }
117 117
118 pStart = p; /* Catch the beg of Setblobs*/ 118 pStart = p; /* Catch the beg of Setblobs*/
119 rgSetBlob = (MYBLOB *)Malloc( sk_num(a) * sizeof(MYBLOB)); /* In this array 119 rgSetBlob = (MYBLOB *)OPENSSL_malloc( sk_num(a) * sizeof(MYBLOB)); /* In this array
120we will store the SET blobs */ 120we will store the SET blobs */
121 121
122 for (i=0; i<sk_num(a); i++) 122 for (i=0; i<sk_num(a); i++)
@@ -133,7 +133,7 @@ SetBlob
133 /* Now we have to sort the blobs. I am using a simple algo. 133 /* Now we have to sort the blobs. I am using a simple algo.
134 *Sort ptrs *Copy to temp-mem *Copy from temp-mem to user-mem*/ 134 *Sort ptrs *Copy to temp-mem *Copy from temp-mem to user-mem*/
135 qsort( rgSetBlob, sk_num(a), sizeof(MYBLOB), SetBlobCmp); 135 qsort( rgSetBlob, sk_num(a), sizeof(MYBLOB), SetBlobCmp);
136 pTempMem = Malloc(totSize); 136 pTempMem = OPENSSL_malloc(totSize);
137 137
138/* Copy to temp mem */ 138/* Copy to temp mem */
139 p = pTempMem; 139 p = pTempMem;
@@ -145,20 +145,20 @@ SetBlob
145 145
146/* Copy back to user mem*/ 146/* Copy back to user mem*/
147 memcpy(pStart, pTempMem, totSize); 147 memcpy(pStart, pTempMem, totSize);
148 Free(pTempMem); 148 OPENSSL_free(pTempMem);
149 Free(rgSetBlob); 149 OPENSSL_free(rgSetBlob);
150 150
151 return(r); 151 return(r);
152 } 152 }
153 153
154STACK *d2i_ASN1_SET(STACK **a, unsigned char **pp, long length, 154STACK *d2i_ASN1_SET(STACK **a, unsigned char **pp, long length,
155 char *(*func)(), void (*free_func)(), int ex_tag, int ex_class) 155 char *(*func)(), void (*free_func)(void *), int ex_tag, int ex_class)
156 { 156 {
157 ASN1_CTX c; 157 ASN1_CTX c;
158 STACK *ret=NULL; 158 STACK *ret=NULL;
159 159
160 if ((a == NULL) || ((*a) == NULL)) 160 if ((a == NULL) || ((*a) == NULL))
161 { if ((ret=sk_new(NULL)) == NULL) goto err; } 161 { if ((ret=sk_new_null()) == NULL) goto err; }
162 else 162 else
163 ret=(*a); 163 ret=(*a);
164 164
diff --git a/src/lib/libcrypto/asn1/a_sign.c b/src/lib/libcrypto/asn1/a_sign.c
index cfb4bca4f1..4c651706d2 100644
--- a/src/lib/libcrypto/asn1/a_sign.c
+++ b/src/lib/libcrypto/asn1/a_sign.c
@@ -108,9 +108,9 @@ int ASN1_sign(int (*i2d)(), X509_ALGOR *algor1, X509_ALGOR *algor2,
108 } 108 }
109 } 109 }
110 inl=i2d(data,NULL); 110 inl=i2d(data,NULL);
111 buf_in=(unsigned char *)Malloc((unsigned int)inl); 111 buf_in=(unsigned char *)OPENSSL_malloc((unsigned int)inl);
112 outll=outl=EVP_PKEY_size(pkey); 112 outll=outl=EVP_PKEY_size(pkey);
113 buf_out=(unsigned char *)Malloc((unsigned int)outl); 113 buf_out=(unsigned char *)OPENSSL_malloc((unsigned int)outl);
114 if ((buf_in == NULL) || (buf_out == NULL)) 114 if ((buf_in == NULL) || (buf_out == NULL))
115 { 115 {
116 outl=0; 116 outl=0;
@@ -129,7 +129,7 @@ int ASN1_sign(int (*i2d)(), X509_ALGOR *algor1, X509_ALGOR *algor2,
129 ASN1err(ASN1_F_ASN1_SIGN,ERR_R_EVP_LIB); 129 ASN1err(ASN1_F_ASN1_SIGN,ERR_R_EVP_LIB);
130 goto err; 130 goto err;
131 } 131 }
132 if (signature->data != NULL) Free(signature->data); 132 if (signature->data != NULL) OPENSSL_free(signature->data);
133 signature->data=buf_out; 133 signature->data=buf_out;
134 buf_out=NULL; 134 buf_out=NULL;
135 signature->length=outl; 135 signature->length=outl;
@@ -141,8 +141,8 @@ int ASN1_sign(int (*i2d)(), X509_ALGOR *algor1, X509_ALGOR *algor2,
141err: 141err:
142 memset(&ctx,0,sizeof(ctx)); 142 memset(&ctx,0,sizeof(ctx));
143 if (buf_in != NULL) 143 if (buf_in != NULL)
144 { memset((char *)buf_in,0,(unsigned int)inl); Free(buf_in); } 144 { memset((char *)buf_in,0,(unsigned int)inl); OPENSSL_free(buf_in); }
145 if (buf_out != NULL) 145 if (buf_out != NULL)
146 { memset((char *)buf_out,0,outll); Free(buf_out); } 146 { memset((char *)buf_out,0,outll); OPENSSL_free(buf_out); }
147 return(outl); 147 return(outl);
148 } 148 }
diff --git a/src/lib/libcrypto/asn1/a_strex.c b/src/lib/libcrypto/asn1/a_strex.c
new file mode 100644
index 0000000000..569b811998
--- /dev/null
+++ b/src/lib/libcrypto/asn1/a_strex.c
@@ -0,0 +1,533 @@
1/* a_strex.c */
2/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
3 * project 2000.
4 */
5/* ====================================================================
6 * Copyright (c) 2000 The OpenSSL Project. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 *
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in
17 * the documentation and/or other materials provided with the
18 * distribution.
19 *
20 * 3. All advertising materials mentioning features or use of this
21 * software must display the following acknowledgment:
22 * "This product includes software developed by the OpenSSL Project
23 * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
24 *
25 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
26 * endorse or promote products derived from this software without
27 * prior written permission. For written permission, please contact
28 * licensing@OpenSSL.org.
29 *
30 * 5. Products derived from this software may not be called "OpenSSL"
31 * nor may "OpenSSL" appear in their names without prior written
32 * permission of the OpenSSL Project.
33 *
34 * 6. Redistributions of any form whatsoever must retain the following
35 * acknowledgment:
36 * "This product includes software developed by the OpenSSL Project
37 * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
38 *
39 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
40 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
42 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
43 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
46 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
48 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
49 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50 * OF THE POSSIBILITY OF SUCH DAMAGE.
51 * ====================================================================
52 *
53 * This product includes cryptographic software written by Eric Young
54 * (eay@cryptsoft.com). This product includes software written by Tim
55 * Hudson (tjh@cryptsoft.com).
56 *
57 */
58
59#include <stdio.h>
60#include <string.h>
61#include <openssl/crypto.h>
62#include <openssl/x509.h>
63#include <openssl/asn1.h>
64
65#include "charmap.h"
66
67/* ASN1_STRING_print_ex() and X509_NAME_print_ex().
68 * Enhanced string and name printing routines handling
69 * multibyte characters, RFC2253 and a host of other
70 * options.
71 */
72
73
74#define CHARTYPE_BS_ESC (ASN1_STRFLGS_ESC_2253 | CHARTYPE_FIRST_ESC_2253 | CHARTYPE_LAST_ESC_2253)
75
76
77/* Three IO functions for sending data to memory, a BIO and
78 * and a FILE pointer.
79 */
80
81int send_mem_chars(void *arg, const void *buf, int len)
82{
83 unsigned char **out = arg;
84 if(!out) return 1;
85 memcpy(*out, buf, len);
86 *out += len;
87 return 1;
88}
89
90int send_bio_chars(void *arg, const void *buf, int len)
91{
92 if(!arg) return 1;
93 if(BIO_write(arg, buf, len) != len) return 0;
94 return 1;
95}
96
97int send_fp_chars(void *arg, const void *buf, int len)
98{
99 if(!arg) return 1;
100 if(fwrite(buf, 1, len, arg) != (unsigned int)len) return 0;
101 return 1;
102}
103
104typedef int char_io(void *arg, const void *buf, int len);
105
106/* This function handles display of
107 * strings, one character at a time.
108 * It is passed an unsigned long for each
109 * character because it could come from 2 or even
110 * 4 byte forms.
111 */
112
113static int do_esc_char(unsigned long c, unsigned char flags, char *do_quotes, char_io *io_ch, void *arg)
114{
115 unsigned char chflgs, chtmp;
116 char tmphex[11];
117 if(c > 0xffff) {
118 BIO_snprintf(tmphex, 11, "\\W%08lX", c);
119 if(!io_ch(arg, tmphex, 10)) return -1;
120 return 10;
121 }
122 if(c > 0xff) {
123 BIO_snprintf(tmphex, 11, "\\U%04lX", c);
124 if(!io_ch(arg, tmphex, 6)) return -1;
125 return 6;
126 }
127 chtmp = (unsigned char)c;
128 if(chtmp > 0x7f) chflgs = flags & ASN1_STRFLGS_ESC_MSB;
129 else chflgs = char_type[chtmp] & flags;
130 if(chflgs & CHARTYPE_BS_ESC) {
131 /* If we don't escape with quotes, signal we need quotes */
132 if(chflgs & ASN1_STRFLGS_ESC_QUOTE) {
133 if(do_quotes) *do_quotes = 1;
134 if(!io_ch(arg, &chtmp, 1)) return -1;
135 return 1;
136 }
137 if(!io_ch(arg, "\\", 1)) return -1;
138 if(!io_ch(arg, &chtmp, 1)) return -1;
139 return 2;
140 }
141 if(chflgs & (ASN1_STRFLGS_ESC_CTRL|ASN1_STRFLGS_ESC_MSB)) {
142 BIO_snprintf(tmphex, 11, "\\%02X", chtmp);
143 if(!io_ch(arg, tmphex, 3)) return -1;
144 return 3;
145 }
146 if(!io_ch(arg, &chtmp, 1)) return -1;
147 return 1;
148}
149
150#define BUF_TYPE_WIDTH_MASK 0x7
151#define BUF_TYPE_CONVUTF8 0x8
152
153/* This function sends each character in a buffer to
154 * do_esc_char(). It interprets the content formats
155 * and converts to or from UTF8 as appropriate.
156 */
157
158static int do_buf(unsigned char *buf, int buflen,
159 int type, unsigned char flags, char *quotes, char_io *io_ch, void *arg)
160{
161 int i, outlen, len;
162 unsigned char orflags, *p, *q;
163 unsigned long c;
164 p = buf;
165 q = buf + buflen;
166 outlen = 0;
167 while(p != q) {
168 if(p == buf) orflags = CHARTYPE_FIRST_ESC_2253;
169 else orflags = 0;
170 switch(type & BUF_TYPE_WIDTH_MASK) {
171 case 4:
172 c = ((unsigned long)*p++) << 24;
173 c |= ((unsigned long)*p++) << 16;
174 c |= ((unsigned long)*p++) << 8;
175 c |= *p++;
176 break;
177
178 case 2:
179 c = ((unsigned long)*p++) << 8;
180 c |= *p++;
181 break;
182
183 case 1:
184 c = *p++;
185 break;
186
187 case 0:
188 i = UTF8_getc(p, buflen, &c);
189 if(i < 0) return -1; /* Invalid UTF8String */
190 p += i;
191 break;
192 }
193 if (p == q) orflags = CHARTYPE_LAST_ESC_2253;
194 if(type & BUF_TYPE_CONVUTF8) {
195 unsigned char utfbuf[6];
196 int utflen;
197 utflen = UTF8_putc(utfbuf, 6, c);
198 for(i = 0; i < utflen; i++) {
199 /* We don't need to worry about setting orflags correctly
200 * because if utflen==1 its value will be correct anyway
201 * otherwise each character will be > 0x7f and so the
202 * character will never be escaped on first and last.
203 */
204 len = do_esc_char(utfbuf[i], (unsigned char)(flags | orflags), quotes, io_ch, arg);
205 if(len < 0) return -1;
206 outlen += len;
207 }
208 } else {
209 len = do_esc_char(c, (unsigned char)(flags | orflags), quotes, io_ch, arg);
210 if(len < 0) return -1;
211 outlen += len;
212 }
213 }
214 return outlen;
215}
216
217/* This function hex dumps a buffer of characters */
218
219static int do_hex_dump(char_io *io_ch, void *arg, unsigned char *buf, int buflen)
220{
221 const static char hexdig[] = "0123456789ABCDEF";
222 unsigned char *p, *q;
223 char hextmp[2];
224 if(arg) {
225 p = buf;
226 q = buf + buflen;
227 while(p != q) {
228 hextmp[0] = hexdig[*p >> 4];
229 hextmp[1] = hexdig[*p & 0xf];
230 if(!io_ch(arg, hextmp, 2)) return -1;
231 p++;
232 }
233 }
234 return buflen << 1;
235}
236
237/* "dump" a string. This is done when the type is unknown,
238 * or the flags request it. We can either dump the content
239 * octets or the entire DER encoding. This uses the RFC2253
240 * #01234 format.
241 */
242
243int do_dump(unsigned long lflags, char_io *io_ch, void *arg, ASN1_STRING *str)
244{
245 /* Placing the ASN1_STRING in a temp ASN1_TYPE allows
246 * the DER encoding to readily obtained
247 */
248 ASN1_TYPE t;
249 unsigned char *der_buf, *p;
250 int outlen, der_len;
251
252 if(!io_ch(arg, "#", 1)) return -1;
253 /* If we don't dump DER encoding just dump content octets */
254 if(!(lflags & ASN1_STRFLGS_DUMP_DER)) {
255 outlen = do_hex_dump(io_ch, arg, str->data, str->length);
256 if(outlen < 0) return -1;
257 return outlen + 1;
258 }
259 t.type = str->type;
260 t.value.ptr = (char *)str;
261 der_len = i2d_ASN1_TYPE(&t, NULL);
262 der_buf = OPENSSL_malloc(der_len);
263 if(!der_buf) return -1;
264 p = der_buf;
265 i2d_ASN1_TYPE(&t, &p);
266 outlen = do_hex_dump(io_ch, arg, der_buf, der_len);
267 OPENSSL_free(der_buf);
268 if(outlen < 0) return -1;
269 return outlen + 1;
270}
271
272/* Lookup table to convert tags to character widths,
273 * 0 = UTF8 encoded, -1 is used for non string types
274 * otherwise it is the number of bytes per character
275 */
276
277const static char tag2nbyte[] = {
278 -1, -1, -1, -1, -1, /* 0-4 */
279 -1, -1, -1, -1, -1, /* 5-9 */
280 -1, -1, 0, -1, /* 10-13 */
281 -1, -1, -1, -1, /* 15-17 */
282 -1, 1, 1, /* 18-20 */
283 -1, 1, -1,-1, /* 21-24 */
284 -1, 1, -1, /* 25-27 */
285 4, -1, 2 /* 28-30 */
286};
287
288#define ESC_FLAGS (ASN1_STRFLGS_ESC_2253 | \
289 ASN1_STRFLGS_ESC_QUOTE | \
290 ASN1_STRFLGS_ESC_CTRL | \
291 ASN1_STRFLGS_ESC_MSB)
292
293/* This is the main function, print out an
294 * ASN1_STRING taking note of various escape
295 * and display options. Returns number of
296 * characters written or -1 if an error
297 * occurred.
298 */
299
300static int do_print_ex(char_io *io_ch, void *arg, unsigned long lflags, ASN1_STRING *str)
301{
302 int outlen, len;
303 int type;
304 char quotes;
305 unsigned char flags;
306 quotes = 0;
307 /* Keep a copy of escape flags */
308 flags = (unsigned char)(lflags & ESC_FLAGS);
309
310 type = str->type;
311
312 outlen = 0;
313
314
315 if(lflags & ASN1_STRFLGS_SHOW_TYPE) {
316 const char *tagname;
317 tagname = ASN1_tag2str(type);
318 outlen += strlen(tagname);
319 if(!io_ch(arg, tagname, outlen) || !io_ch(arg, ":", 1)) return -1;
320 outlen++;
321 }
322
323 /* Decide what to do with type, either dump content or display it */
324
325 /* Dump everything */
326 if(lflags & ASN1_STRFLGS_DUMP_ALL) type = -1;
327 /* Ignore the string type */
328 else if(lflags & ASN1_STRFLGS_IGNORE_TYPE) type = 1;
329 else {
330 /* Else determine width based on type */
331 if((type > 0) && (type < 31)) type = tag2nbyte[type];
332 else type = -1;
333 if((type == -1) && !(lflags & ASN1_STRFLGS_DUMP_UNKNOWN)) type = 1;
334 }
335
336 if(type == -1) {
337 len = do_dump(lflags, io_ch, arg, str);
338 if(len < 0) return -1;
339 outlen += len;
340 return outlen;
341 }
342
343 if(lflags & ASN1_STRFLGS_UTF8_CONVERT) {
344 /* Note: if string is UTF8 and we want
345 * to convert to UTF8 then we just interpret
346 * it as 1 byte per character to avoid converting
347 * twice.
348 */
349 if(!type) type = 1;
350 else type |= BUF_TYPE_CONVUTF8;
351 }
352
353 len = do_buf(str->data, str->length, type, flags, &quotes, io_ch, NULL);
354 if(outlen < 0) return -1;
355 outlen += len;
356 if(quotes) outlen += 2;
357 if(!arg) return outlen;
358 if(quotes && !io_ch(arg, "\"", 1)) return -1;
359 do_buf(str->data, str->length, type, flags, NULL, io_ch, arg);
360 if(quotes && !io_ch(arg, "\"", 1)) return -1;
361 return outlen;
362}
363
364/* Used for line indenting: print 'indent' spaces */
365
366static int do_indent(char_io *io_ch, void *arg, int indent)
367{
368 int i;
369 for(i = 0; i < indent; i++)
370 if(!io_ch(arg, " ", 1)) return 0;
371 return 1;
372}
373
374
375static int do_name_ex(char_io *io_ch, void *arg, X509_NAME *n,
376 int indent, unsigned long flags)
377{
378 int i, prev = -1, orflags, cnt;
379 int fn_opt, fn_nid;
380 ASN1_OBJECT *fn;
381 ASN1_STRING *val;
382 X509_NAME_ENTRY *ent;
383 char objtmp[80];
384 const char *objbuf;
385 int outlen, len;
386 char *sep_dn, *sep_mv, *sep_eq;
387 int sep_dn_len, sep_mv_len, sep_eq_len;
388 if(indent < 0) indent = 0;
389 outlen = indent;
390 if(!do_indent(io_ch, arg, indent)) return -1;
391 switch (flags & XN_FLAG_SEP_MASK)
392 {
393 case XN_FLAG_SEP_MULTILINE:
394 sep_dn = "\n";
395 sep_dn_len = 1;
396 sep_mv = " + ";
397 sep_mv_len = 3;
398 break;
399
400 case XN_FLAG_SEP_COMMA_PLUS:
401 sep_dn = ",";
402 sep_dn_len = 1;
403 sep_mv = "+";
404 sep_mv_len = 1;
405 indent = 0;
406 break;
407
408 case XN_FLAG_SEP_CPLUS_SPC:
409 sep_dn = ", ";
410 sep_dn_len = 2;
411 sep_mv = " + ";
412 sep_mv_len = 3;
413 indent = 0;
414 break;
415
416 case XN_FLAG_SEP_SPLUS_SPC:
417 sep_dn = "; ";
418 sep_dn_len = 2;
419 sep_mv = " + ";
420 sep_mv_len = 3;
421 indent = 0;
422 break;
423
424 default:
425 return -1;
426 }
427
428 if(flags & XN_FLAG_SPC_EQ) {
429 sep_eq = " = ";
430 sep_eq_len = 3;
431 } else {
432 sep_eq = "=";
433 sep_eq_len = 1;
434 }
435
436 fn_opt = flags & XN_FLAG_FN_MASK;
437
438 cnt = X509_NAME_entry_count(n);
439 for(i = 0; i < cnt; i++) {
440 if(flags & XN_FLAG_DN_REV)
441 ent = X509_NAME_get_entry(n, cnt - i - 1);
442 else ent = X509_NAME_get_entry(n, i);
443 if(prev != -1) {
444 if(prev == ent->set) {
445 if(!io_ch(arg, sep_mv, sep_mv_len)) return -1;
446 outlen += sep_mv_len;
447 } else {
448 if(!io_ch(arg, sep_dn, sep_dn_len)) return -1;
449 outlen += sep_dn_len;
450 if(!do_indent(io_ch, arg, indent)) return -1;
451 outlen += indent;
452 }
453 }
454 prev = ent->set;
455 fn = X509_NAME_ENTRY_get_object(ent);
456 val = X509_NAME_ENTRY_get_data(ent);
457 fn_nid = OBJ_obj2nid(fn);
458 if(fn_opt != XN_FLAG_FN_NONE) {
459 int objlen;
460 if((fn_opt == XN_FLAG_FN_OID) || (fn_nid==NID_undef) ) {
461 OBJ_obj2txt(objtmp, 80, fn, 1);
462 objbuf = objtmp;
463 } else {
464 if(fn_opt == XN_FLAG_FN_SN)
465 objbuf = OBJ_nid2sn(fn_nid);
466 else if(fn_opt == XN_FLAG_FN_LN)
467 objbuf = OBJ_nid2ln(fn_nid);
468 else objbuf = "";
469 }
470 objlen = strlen(objbuf);
471 if(!io_ch(arg, objbuf, objlen)) return -1;
472 if(!io_ch(arg, sep_eq, sep_eq_len)) return -1;
473 outlen += objlen + sep_eq_len;
474 }
475 /* If the field name is unknown then fix up the DER dump
476 * flag. We might want to limit this further so it will
477 * DER dump on anything other than a few 'standard' fields.
478 */
479 if((fn_nid == NID_undef) && (flags & XN_FLAG_DUMP_UNKNOWN_FIELDS))
480 orflags = ASN1_STRFLGS_DUMP_ALL;
481 else orflags = 0;
482
483 len = do_print_ex(io_ch, arg, flags | orflags, val);
484 if(len < 0) return -1;
485 outlen += len;
486 }
487 return outlen;
488}
489
490/* Wrappers round the main functions */
491
492int X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent, unsigned long flags)
493{
494 return do_name_ex(send_bio_chars, out, nm, indent, flags);
495}
496
497
498int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags)
499{
500 return do_name_ex(send_fp_chars, fp, nm, indent, flags);
501}
502
503int ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags)
504{
505 return do_print_ex(send_bio_chars, out, flags, str);
506}
507
508
509int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags)
510{
511 return do_print_ex(send_fp_chars, fp, flags, str);
512}
513
514/* Utility function: convert any string type to UTF8, returns number of bytes
515 * in output string or a negative error code
516 */
517
518int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
519{
520 ASN1_STRING stmp, *str = &stmp;
521 int mbflag, type, ret;
522 if(!*out || !in) return -1;
523 type = in->type;
524 if((type < 0) || (type > 30)) return -1;
525 mbflag = tag2nbyte[type];
526 if(mbflag == -1) return -1;
527 mbflag |= MBSTRING_FLAG;
528 stmp.data = NULL;
529 ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING);
530 if(ret < 0) return ret;
531 if(out) *out = stmp.data;
532 return stmp.length;
533}
diff --git a/src/lib/libcrypto/asn1/a_strnid.c b/src/lib/libcrypto/asn1/a_strnid.c
index ab8417ffab..6b10cff994 100644
--- a/src/lib/libcrypto/asn1/a_strnid.c
+++ b/src/lib/libcrypto/asn1/a_strnid.c
@@ -65,8 +65,9 @@
65 65
66static STACK_OF(ASN1_STRING_TABLE) *stable = NULL; 66static STACK_OF(ASN1_STRING_TABLE) *stable = NULL;
67static void st_free(ASN1_STRING_TABLE *tbl); 67static void st_free(ASN1_STRING_TABLE *tbl);
68static int sk_table_cmp(ASN1_STRING_TABLE **a, ASN1_STRING_TABLE **b); 68static int sk_table_cmp(const ASN1_STRING_TABLE * const *a,
69static int table_cmp(ASN1_STRING_TABLE *a, ASN1_STRING_TABLE *b); 69 const ASN1_STRING_TABLE * const *b);
70static int table_cmp(const void *a, const void *b);
70 71
71 72
72/* This is the global mask for the mbstring functions: this is use to 73/* This is the global mask for the mbstring functions: this is use to
@@ -173,14 +174,16 @@ static ASN1_STRING_TABLE tbl_standard[] = {
173{NID_dnQualifier, -1, -1, B_ASN1_PRINTABLESTRING, STABLE_NO_MASK} 174{NID_dnQualifier, -1, -1, B_ASN1_PRINTABLESTRING, STABLE_NO_MASK}
174}; 175};
175 176
176static int sk_table_cmp(ASN1_STRING_TABLE **a, ASN1_STRING_TABLE **b) 177static int sk_table_cmp(const ASN1_STRING_TABLE * const *a,
178 const ASN1_STRING_TABLE * const *b)
177{ 179{
178 return (*a)->nid - (*b)->nid; 180 return (*a)->nid - (*b)->nid;
179} 181}
180 182
181static int table_cmp(ASN1_STRING_TABLE *a, ASN1_STRING_TABLE *b) 183static int table_cmp(const void *a, const void *b)
182{ 184{
183 return a->nid - b->nid; 185 const ASN1_STRING_TABLE *sa = a, *sb = b;
186 return sa->nid - sb->nid;
184} 187}
185 188
186ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid) 189ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid)
@@ -192,7 +195,7 @@ ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid)
192 ttmp = (ASN1_STRING_TABLE *) OBJ_bsearch((char *)&fnd, 195 ttmp = (ASN1_STRING_TABLE *) OBJ_bsearch((char *)&fnd,
193 (char *)tbl_standard, 196 (char *)tbl_standard,
194 sizeof(tbl_standard)/sizeof(ASN1_STRING_TABLE), 197 sizeof(tbl_standard)/sizeof(ASN1_STRING_TABLE),
195 sizeof(ASN1_STRING_TABLE), (int(*)())table_cmp); 198 sizeof(ASN1_STRING_TABLE), table_cmp);
196 if(ttmp) return ttmp; 199 if(ttmp) return ttmp;
197 if(!stable) return NULL; 200 if(!stable) return NULL;
198 idx = sk_ASN1_STRING_TABLE_find(stable, &fnd); 201 idx = sk_ASN1_STRING_TABLE_find(stable, &fnd);
@@ -213,7 +216,7 @@ int ASN1_STRING_TABLE_add(int nid,
213 return 0; 216 return 0;
214 } 217 }
215 if(!(tmp = ASN1_STRING_TABLE_get(nid))) { 218 if(!(tmp = ASN1_STRING_TABLE_get(nid))) {
216 tmp = Malloc(sizeof(ASN1_STRING_TABLE)); 219 tmp = OPENSSL_malloc(sizeof(ASN1_STRING_TABLE));
217 if(!tmp) { 220 if(!tmp) {
218 ASN1err(ASN1_F_ASN1_STRING_TABLE_ADD, 221 ASN1err(ASN1_F_ASN1_STRING_TABLE_ADD,
219 ERR_R_MALLOC_FAILURE); 222 ERR_R_MALLOC_FAILURE);
@@ -241,7 +244,7 @@ void ASN1_STRING_TABLE_cleanup(void)
241 244
242static void st_free(ASN1_STRING_TABLE *tbl) 245static void st_free(ASN1_STRING_TABLE *tbl)
243{ 246{
244 if(tbl->flags & STABLE_FLAGS_MALLOC) Free(tbl); 247 if(tbl->flags & STABLE_FLAGS_MALLOC) OPENSSL_free(tbl);
245} 248}
246 249
247IMPLEMENT_STACK_OF(ASN1_STRING_TABLE) 250IMPLEMENT_STACK_OF(ASN1_STRING_TABLE)
diff --git a/src/lib/libcrypto/asn1/a_time.c b/src/lib/libcrypto/asn1/a_time.c
index b193f1c71f..8c0ddee4ac 100644
--- a/src/lib/libcrypto/asn1/a_time.c
+++ b/src/lib/libcrypto/asn1/a_time.c
@@ -113,11 +113,9 @@ ASN1_TIME *d2i_ASN1_TIME(ASN1_TIME **a, unsigned char **pp, long length)
113ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t) 113ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)
114 { 114 {
115 struct tm *ts; 115 struct tm *ts;
116#if defined(THREADS) && !defined(WIN32) 116#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__)
117 struct tm data; 117 struct tm data;
118#endif
119 118
120#if defined(THREADS) && !defined(WIN32)
121 gmtime_r(&t,&data); 119 gmtime_r(&t,&data);
122 ts=&data; /* should return &data, but doesn't on some systems, so we don't even look at the return value */ 120 ts=&data; /* should return &data, but doesn't on some systems, so we don't even look at the return value */
123#else 121#else
diff --git a/src/lib/libcrypto/asn1/a_type.c b/src/lib/libcrypto/asn1/a_type.c
index 161ef81197..e72a6b29e0 100644
--- a/src/lib/libcrypto/asn1/a_type.c
+++ b/src/lib/libcrypto/asn1/a_type.c
@@ -123,6 +123,8 @@ int i2d_ASN1_TYPE(ASN1_TYPE *a, unsigned char **pp)
123 break; 123 break;
124 case V_ASN1_SET: 124 case V_ASN1_SET:
125 case V_ASN1_SEQUENCE: 125 case V_ASN1_SEQUENCE:
126 case V_ASN1_OTHER:
127 default:
126 if (a->value.set == NULL) 128 if (a->value.set == NULL)
127 r=0; 129 r=0;
128 else 130 else
@@ -159,6 +161,8 @@ ASN1_TYPE *d2i_ASN1_TYPE(ASN1_TYPE **a, unsigned char **pp, long length)
159 161
160 inf=ASN1_get_object(&q,&len,&tag,&xclass,length); 162 inf=ASN1_get_object(&q,&len,&tag,&xclass,length);
161 if (inf & 0x80) goto err; 163 if (inf & 0x80) goto err;
164 /* If not universal tag we've no idea what it is */
165 if(xclass != V_ASN1_UNIVERSAL) tag = V_ASN1_OTHER;
162 166
163 ASN1_TYPE_component_free(ret); 167 ASN1_TYPE_component_free(ret);
164 168
@@ -245,6 +249,8 @@ ASN1_TYPE *d2i_ASN1_TYPE(ASN1_TYPE **a, unsigned char **pp, long length)
245 break; 249 break;
246 case V_ASN1_SET: 250 case V_ASN1_SET:
247 case V_ASN1_SEQUENCE: 251 case V_ASN1_SEQUENCE:
252 case V_ASN1_OTHER:
253 default:
248 /* Sets and sequences are left complete */ 254 /* Sets and sequences are left complete */
249 if ((ret->value.set=ASN1_STRING_new()) == NULL) goto err; 255 if ((ret->value.set=ASN1_STRING_new()) == NULL) goto err;
250 ret->value.set->type=tag; 256 ret->value.set->type=tag;
@@ -252,9 +258,6 @@ ASN1_TYPE *d2i_ASN1_TYPE(ASN1_TYPE **a, unsigned char **pp, long length)
252 if (!ASN1_STRING_set(ret->value.set,p,(int)len)) goto err; 258 if (!ASN1_STRING_set(ret->value.set,p,(int)len)) goto err;
253 p+=len; 259 p+=len;
254 break; 260 break;
255 default:
256 ASN1err(ASN1_F_D2I_ASN1_TYPE,ASN1_R_BAD_TYPE);
257 goto err;
258 } 261 }
259 262
260 ret->type=tag; 263 ret->type=tag;
@@ -282,7 +285,7 @@ void ASN1_TYPE_free(ASN1_TYPE *a)
282 { 285 {
283 if (a == NULL) return; 286 if (a == NULL) return;
284 ASN1_TYPE_component_free(a); 287 ASN1_TYPE_component_free(a);
285 Free(a); 288 OPENSSL_free(a);
286 } 289 }
287 290
288int ASN1_TYPE_get(ASN1_TYPE *a) 291int ASN1_TYPE_get(ASN1_TYPE *a)
@@ -312,6 +315,8 @@ static void ASN1_TYPE_component_free(ASN1_TYPE *a)
312 case V_ASN1_OBJECT: 315 case V_ASN1_OBJECT:
313 ASN1_OBJECT_free(a->value.object); 316 ASN1_OBJECT_free(a->value.object);
314 break; 317 break;
318 case V_ASN1_NULL:
319 break;
315 case V_ASN1_INTEGER: 320 case V_ASN1_INTEGER:
316 case V_ASN1_NEG_INTEGER: 321 case V_ASN1_NEG_INTEGER:
317 case V_ASN1_ENUMERATED: 322 case V_ASN1_ENUMERATED:
@@ -333,10 +338,9 @@ static void ASN1_TYPE_component_free(ASN1_TYPE *a)
333 case V_ASN1_UNIVERSALSTRING: 338 case V_ASN1_UNIVERSALSTRING:
334 case V_ASN1_BMPSTRING: 339 case V_ASN1_BMPSTRING:
335 case V_ASN1_UTF8STRING: 340 case V_ASN1_UTF8STRING:
336 ASN1_STRING_free((ASN1_STRING *)a->value.ptr); 341 case V_ASN1_OTHER:
337 break;
338 default: 342 default:
339 /* MEMORY LEAK */ 343 ASN1_STRING_free((ASN1_STRING *)a->value.ptr);
340 break; 344 break;
341 } 345 }
342 a->type=0; 346 a->type=0;
diff --git a/src/lib/libcrypto/asn1/a_utctm.c b/src/lib/libcrypto/asn1/a_utctm.c
index 07565974e3..d381c9e0d1 100644
--- a/src/lib/libcrypto/asn1/a_utctm.c
+++ b/src/lib/libcrypto/asn1/a_utctm.c
@@ -193,7 +193,8 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
193 { 193 {
194 char *p; 194 char *p;
195 struct tm *ts; 195 struct tm *ts;
196#if defined(THREADS) && !defined(WIN32) 196#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__)
197
197 struct tm data; 198 struct tm data;
198#endif 199#endif
199 200
@@ -202,7 +203,7 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
202 if (s == NULL) 203 if (s == NULL)
203 return(NULL); 204 return(NULL);
204 205
205#if defined(THREADS) && !defined(WIN32) 206#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__)
206 gmtime_r(&t,&data); /* should return &data, but doesn't on some systems, so we don't even look at the return value */ 207 gmtime_r(&t,&data); /* should return &data, but doesn't on some systems, so we don't even look at the return value */
207 ts=&data; 208 ts=&data;
208#else 209#else
@@ -248,10 +249,10 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
248 p=(char *)s->data; 249 p=(char *)s->data;
249 if ((p == NULL) || (s->length < 14)) 250 if ((p == NULL) || (s->length < 14))
250 { 251 {
251 p=Malloc(20); 252 p=OPENSSL_malloc(20);
252 if (p == NULL) return(NULL); 253 if (p == NULL) return(NULL);
253 if (s->data != NULL) 254 if (s->data != NULL)
254 Free(s->data); 255 OPENSSL_free(s->data);
255 s->data=(unsigned char *)p; 256 s->data=(unsigned char *)p;
256 } 257 }
257 258
@@ -264,3 +265,84 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
264#endif 265#endif
265 return(s); 266 return(s);
266 } 267 }
268
269
270int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t)
271 {
272 struct tm *tm;
273 int offset;
274 int year;
275
276#define g2(p) (((p)[0]-'0')*10+(p)[1]-'0')
277
278 if (s->data[12] == 'Z')
279 offset=0;
280 else
281 {
282 offset = g2(s->data+13)*60+g2(s->data+15);
283 if (s->data[12] == '-')
284 offset = -offset;
285 }
286
287 t -= offset*60; /* FIXME: may overflow in extreme cases */
288
289#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__)
290 { struct tm data; gmtime_r(&t, &data); tm = &data; }
291#else
292 tm = gmtime(&t);
293#endif
294
295#define return_cmp(a,b) if ((a)<(b)) return -1; else if ((a)>(b)) return 1
296 year = g2(s->data);
297 if (year < 50)
298 year += 100;
299 return_cmp(year, tm->tm_year);
300 return_cmp(g2(s->data+2) - 1, tm->tm_mon);
301 return_cmp(g2(s->data+4), tm->tm_mday);
302 return_cmp(g2(s->data+6), tm->tm_hour);
303 return_cmp(g2(s->data+8), tm->tm_min);
304 return_cmp(g2(s->data+10), tm->tm_sec);
305#undef g2
306#undef return_cmp
307
308 return 0;
309 }
310
311
312#if 0
313time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s)
314 {
315 struct tm tm;
316 int offset;
317
318 memset(&tm,'\0',sizeof tm);
319
320#define g2(p) (((p)[0]-'0')*10+(p)[1]-'0')
321 tm.tm_year=g2(s->data);
322 if(tm.tm_year < 50)
323 tm.tm_year+=100;
324 tm.tm_mon=g2(s->data+2)-1;
325 tm.tm_mday=g2(s->data+4);
326 tm.tm_hour=g2(s->data+6);
327 tm.tm_min=g2(s->data+8);
328 tm.tm_sec=g2(s->data+10);
329 if(s->data[12] == 'Z')
330 offset=0;
331 else
332 {
333 offset=g2(s->data+13)*60+g2(s->data+15);
334 if(s->data[12] == '-')
335 offset= -offset;
336 }
337#undef g2
338
339 return mktime(&tm)-offset*60; /* FIXME: mktime assumes the current timezone
340 * instead of UTC, and unless we rewrite OpenSSL
341 * in Lisp we cannot locally change the timezone
342 * without possibly interfering with other parts
343 * of the program. timegm, which uses UTC, is
344 * non-standard.
345 * Also time_t is inappropriate for general
346 * UTC times because it may a 32 bit type. */
347 }
348#endif
diff --git a/src/lib/libcrypto/asn1/a_utf8.c b/src/lib/libcrypto/asn1/a_utf8.c
index b5125af224..854278f136 100644
--- a/src/lib/libcrypto/asn1/a_utf8.c
+++ b/src/lib/libcrypto/asn1/a_utf8.c
@@ -133,7 +133,7 @@ int UTF8_getc(const unsigned char *str, int len, unsigned long *val)
133 if( ((p[1] & 0xc0) != 0x80) 133 if( ((p[1] & 0xc0) != 0x80)
134 || ((p[2] & 0xc0) != 0x80) 134 || ((p[2] & 0xc0) != 0x80)
135 || ((p[3] & 0xc0) != 0x80) ) return -3; 135 || ((p[3] & 0xc0) != 0x80) ) return -3;
136 value = (*p++ & 0x7) << 18; 136 value = ((unsigned long)(*p++ & 0x7)) << 18;
137 value |= (*p++ & 0x3f) << 12; 137 value |= (*p++ & 0x3f) << 12;
138 value |= (*p++ & 0x3f) << 6; 138 value |= (*p++ & 0x3f) << 6;
139 value |= *p++ & 0x3f; 139 value |= *p++ & 0x3f;
@@ -145,9 +145,9 @@ int UTF8_getc(const unsigned char *str, int len, unsigned long *val)
145 || ((p[2] & 0xc0) != 0x80) 145 || ((p[2] & 0xc0) != 0x80)
146 || ((p[3] & 0xc0) != 0x80) 146 || ((p[3] & 0xc0) != 0x80)
147 || ((p[4] & 0xc0) != 0x80) ) return -3; 147 || ((p[4] & 0xc0) != 0x80) ) return -3;
148 value = (*p++ & 0x3) << 24; 148 value = ((unsigned long)(*p++ & 0x3)) << 24;
149 value |= (*p++ & 0x3f) << 18; 149 value |= ((unsigned long)(*p++ & 0x3f)) << 18;
150 value |= (*p++ & 0x3f) << 12; 150 value |= ((unsigned long)(*p++ & 0x3f)) << 12;
151 value |= (*p++ & 0x3f) << 6; 151 value |= (*p++ & 0x3f) << 6;
152 value |= *p++ & 0x3f; 152 value |= *p++ & 0x3f;
153 if(value < 0x200000) return -4; 153 if(value < 0x200000) return -4;
@@ -159,10 +159,10 @@ int UTF8_getc(const unsigned char *str, int len, unsigned long *val)
159 || ((p[3] & 0xc0) != 0x80) 159 || ((p[3] & 0xc0) != 0x80)
160 || ((p[4] & 0xc0) != 0x80) 160 || ((p[4] & 0xc0) != 0x80)
161 || ((p[5] & 0xc0) != 0x80) ) return -3; 161 || ((p[5] & 0xc0) != 0x80) ) return -3;
162 value = (*p++ & 0x1) << 30; 162 value = ((unsigned long)(*p++ & 0x1)) << 30;
163 value |= (*p++ & 0x3f) << 24; 163 value |= ((unsigned long)(*p++ & 0x3f)) << 24;
164 value |= (*p++ & 0x3f) << 18; 164 value |= ((unsigned long)(*p++ & 0x3f)) << 18;
165 value |= (*p++ & 0x3f) << 12; 165 value |= ((unsigned long)(*p++ & 0x3f)) << 12;
166 value |= (*p++ & 0x3f) << 6; 166 value |= (*p++ & 0x3f) << 6;
167 value |= *p++ & 0x3f; 167 value |= *p++ & 0x3f;
168 if(value < 0x4000000) return -4; 168 if(value < 0x4000000) return -4;
diff --git a/src/lib/libcrypto/asn1/a_verify.c b/src/lib/libcrypto/asn1/a_verify.c
index d4aede85c3..2a11927e5c 100644
--- a/src/lib/libcrypto/asn1/a_verify.c
+++ b/src/lib/libcrypto/asn1/a_verify.c
@@ -88,7 +88,7 @@ int ASN1_verify(int (*i2d)(), X509_ALGOR *a, ASN1_BIT_STRING *signature,
88 } 88 }
89 89
90 inl=i2d(data,NULL); 90 inl=i2d(data,NULL);
91 buf_in=Malloc((unsigned int)inl); 91 buf_in=OPENSSL_malloc((unsigned int)inl);
92 if (buf_in == NULL) 92 if (buf_in == NULL)
93 { 93 {
94 ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_MALLOC_FAILURE); 94 ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_MALLOC_FAILURE);
@@ -101,7 +101,7 @@ int ASN1_verify(int (*i2d)(), X509_ALGOR *a, ASN1_BIT_STRING *signature,
101 EVP_VerifyUpdate(&ctx,(unsigned char *)buf_in,inl); 101 EVP_VerifyUpdate(&ctx,(unsigned char *)buf_in,inl);
102 102
103 memset(buf_in,0,(unsigned int)inl); 103 memset(buf_in,0,(unsigned int)inl);
104 Free(buf_in); 104 OPENSSL_free(buf_in);
105 105
106 if (EVP_VerifyFinal(&ctx,(unsigned char *)signature->data, 106 if (EVP_VerifyFinal(&ctx,(unsigned char *)signature->data,
107 (unsigned int)signature->length,pkey) <= 0) 107 (unsigned int)signature->length,pkey) <= 0)
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h
index 99bd64a11e..6f956b1963 100644
--- a/src/lib/libcrypto/asn1/asn1.h
+++ b/src/lib/libcrypto/asn1/asn1.h
@@ -59,17 +59,18 @@
59#ifndef HEADER_ASN1_H 59#ifndef HEADER_ASN1_H
60#define HEADER_ASN1_H 60#define HEADER_ASN1_H
61 61
62#ifdef __cplusplus
63extern "C" {
64#endif
65
66#include <time.h> 62#include <time.h>
63#ifndef NO_BIO
64#include <openssl/bio.h>
65#endif
67#include <openssl/bn.h> 66#include <openssl/bn.h>
68#include <openssl/stack.h> 67#include <openssl/stack.h>
69#include <openssl/safestack.h> 68#include <openssl/safestack.h>
70 69
71#ifdef VMS 70#include <openssl/symhacks.h>
72#include <openssl/vms_idhacks.h> 71
72#ifdef __cplusplus
73extern "C" {
73#endif 74#endif
74 75
75#define V_ASN1_UNIVERSAL 0x00 76#define V_ASN1_UNIVERSAL 0x00
@@ -82,12 +83,15 @@ extern "C" {
82#define V_ASN1_PRIMATIVE_TAG 0x1f 83#define V_ASN1_PRIMATIVE_TAG 0x1f
83 84
84#define V_ASN1_APP_CHOOSE -2 /* let the recipient choose */ 85#define V_ASN1_APP_CHOOSE -2 /* let the recipient choose */
86#define V_ASN1_OTHER -3 /* used in ASN1_TYPE */
87
88#define V_ASN1_NEG 0x100 /* negative flag */
85 89
86#define V_ASN1_UNDEF -1 90#define V_ASN1_UNDEF -1
87#define V_ASN1_EOC 0 91#define V_ASN1_EOC 0
88#define V_ASN1_BOOLEAN 1 /**/ 92#define V_ASN1_BOOLEAN 1 /**/
89#define V_ASN1_INTEGER 2 93#define V_ASN1_INTEGER 2
90#define V_ASN1_NEG_INTEGER (2+0x100) 94#define V_ASN1_NEG_INTEGER (2 | V_ASN1_NEG)
91#define V_ASN1_BIT_STRING 3 95#define V_ASN1_BIT_STRING 3
92#define V_ASN1_OCTET_STRING 4 96#define V_ASN1_OCTET_STRING 4
93#define V_ASN1_NULL 5 97#define V_ASN1_NULL 5
@@ -96,7 +100,7 @@ extern "C" {
96#define V_ASN1_EXTERNAL 8 100#define V_ASN1_EXTERNAL 8
97#define V_ASN1_REAL 9 101#define V_ASN1_REAL 9
98#define V_ASN1_ENUMERATED 10 102#define V_ASN1_ENUMERATED 10
99#define V_ASN1_NEG_ENUMERATED (10+0x100) 103#define V_ASN1_NEG_ENUMERATED (10 | V_ASN1_NEG)
100#define V_ASN1_UTF8STRING 12 104#define V_ASN1_UTF8STRING 12
101#define V_ASN1_SEQUENCE 16 105#define V_ASN1_SEQUENCE 16
102#define V_ASN1_SET 17 106#define V_ASN1_SET 17
@@ -140,32 +144,10 @@ extern "C" {
140#define MBSTRING_UNIV (MBSTRING_FLAG|3) 144#define MBSTRING_UNIV (MBSTRING_FLAG|3)
141#define MBSTRING_UTF8 (MBSTRING_FLAG|4) 145#define MBSTRING_UTF8 (MBSTRING_FLAG|4)
142 146
143#define DECLARE_ASN1_SET_OF(type) \ 147struct X509_algor_st;
144int i2d_ASN1_SET_OF_##type(STACK_OF(type) *a,unsigned char **pp, \ 148
145 int (*func)(type *,unsigned char **), int ex_tag, \ 149#define DECLARE_ASN1_SET_OF(type) /* filled in by mkstack.pl */
146 int ex_class, int is_set); \ 150#define IMPLEMENT_ASN1_SET_OF(type) /* nothing, no longer needed */
147STACK_OF(type) *d2i_ASN1_SET_OF_##type(STACK_OF(type) **a,unsigned char **pp, \
148 long length, \
149 type *(*func)(type **, \
150 unsigned char **,long), \
151 void (*free_func)(type *), \
152 int ex_tag,int ex_class);
153
154#define IMPLEMENT_ASN1_SET_OF(type) \
155int i2d_ASN1_SET_OF_##type(STACK_OF(type) *a,unsigned char **pp, \
156 int (*func)(type *,unsigned char **), int ex_tag, \
157 int ex_class, int is_set) \
158 { return i2d_ASN1_SET((STACK *)a,pp,func,ex_tag,ex_class,is_set); } \
159STACK_OF(type) *d2i_ASN1_SET_OF_##type(STACK_OF(type) **a,unsigned char **pp, \
160 long length, \
161 type *(*func)(type **, \
162 unsigned char **,long), \
163 void (*free_func)(type *), \
164 int ex_tag,int ex_class) \
165 { return (STACK_OF(type) *)d2i_ASN1_SET((STACK **)a,pp,length, \
166 (char *(*)())func, \
167 (void (*)())free_func, \
168 ex_tag,ex_class); }
169 151
170typedef struct asn1_ctx_st 152typedef struct asn1_ctx_st
171 { 153 {
@@ -254,6 +236,7 @@ DECLARE_STACK_OF(ASN1_STRING_TABLE)
254#define ASN1_BMPSTRING ASN1_STRING 236#define ASN1_BMPSTRING ASN1_STRING
255#define ASN1_VISIBLESTRING ASN1_STRING 237#define ASN1_VISIBLESTRING ASN1_STRING
256#define ASN1_UTF8STRING ASN1_STRING 238#define ASN1_UTF8STRING ASN1_STRING
239#define ASN1_BOOLEAN int
257#else 240#else
258typedef struct asn1_string_st ASN1_INTEGER; 241typedef struct asn1_string_st ASN1_INTEGER;
259typedef struct asn1_string_st ASN1_ENUMERATED; 242typedef struct asn1_string_st ASN1_ENUMERATED;
@@ -270,15 +253,99 @@ typedef struct asn1_string_st ASN1_TIME;
270typedef struct asn1_string_st ASN1_GENERALIZEDTIME; 253typedef struct asn1_string_st ASN1_GENERALIZEDTIME;
271typedef struct asn1_string_st ASN1_VISIBLESTRING; 254typedef struct asn1_string_st ASN1_VISIBLESTRING;
272typedef struct asn1_string_st ASN1_UTF8STRING; 255typedef struct asn1_string_st ASN1_UTF8STRING;
256typedef int ASN1_BOOLEAN;
273#endif 257#endif
274 258
275typedef int ASN1_NULL; 259typedef int ASN1_NULL;
276 260
261/* Parameters used by ASN1_STRING_print_ex() */
262
263/* These determine which characters to escape:
264 * RFC2253 special characters, control characters and
265 * MSB set characters
266 */
267
268#define ASN1_STRFLGS_ESC_2253 1
269#define ASN1_STRFLGS_ESC_CTRL 2
270#define ASN1_STRFLGS_ESC_MSB 4
271
272
273/* This flag determines how we do escaping: normally
274 * RC2253 backslash only, set this to use backslash and
275 * quote.
276 */
277
278#define ASN1_STRFLGS_ESC_QUOTE 8
279
280
281/* These three flags are internal use only. */
282
283/* Character is a valid PrintableString character */
284#define CHARTYPE_PRINTABLESTRING 0x10
285/* Character needs escaping if it is the first character */
286#define CHARTYPE_FIRST_ESC_2253 0x20
287/* Character needs escaping if it is the last character */
288#define CHARTYPE_LAST_ESC_2253 0x40
289
290/* NB the internal flags are safely reused below by flags
291 * handled at the top level.
292 */
293
294/* If this is set we convert all character strings
295 * to UTF8 first
296 */
297
298#define ASN1_STRFLGS_UTF8_CONVERT 0x10
299
300/* If this is set we don't attempt to interpret content:
301 * just assume all strings are 1 byte per character. This
302 * will produce some pretty odd looking output!
303 */
304
305#define ASN1_STRFLGS_IGNORE_TYPE 0x20
306
307/* If this is set we include the string type in the output */
308#define ASN1_STRFLGS_SHOW_TYPE 0x40
309
310/* This determines which strings to display and which to
311 * 'dump' (hex dump of content octets or DER encoding). We can
312 * only dump non character strings or everything. If we
313 * don't dump 'unknown' they are interpreted as character
314 * strings with 1 octet per character and are subject to
315 * the usual escaping options.
316 */
317
318#define ASN1_STRFLGS_DUMP_ALL 0x80
319#define ASN1_STRFLGS_DUMP_UNKNOWN 0x100
320
321/* These determine what 'dumping' does, we can dump the
322 * content octets or the DER encoding: both use the
323 * RFC2253 #XXXXX notation.
324 */
325
326#define ASN1_STRFLGS_DUMP_DER 0x200
327
328/* All the string flags consistent with RFC2253,
329 * escaping control characters isn't essential in
330 * RFC2253 but it is advisable anyway.
331 */
332
333#define ASN1_STRFLGS_RFC2253 (ASN1_STRFLGS_ESC_2253 | \
334 ASN1_STRFLGS_ESC_CTRL | \
335 ASN1_STRFLGS_ESC_MSB | \
336 ASN1_STRFLGS_UTF8_CONVERT | \
337 ASN1_STRFLGS_DUMP_UNKNOWN | \
338 ASN1_STRFLGS_DUMP_DER)
339
340DECLARE_STACK_OF(ASN1_INTEGER)
341DECLARE_ASN1_SET_OF(ASN1_INTEGER)
342
277typedef struct asn1_type_st 343typedef struct asn1_type_st
278 { 344 {
279 int type; 345 int type;
280 union { 346 union {
281 char *ptr; 347 char *ptr;
348 ASN1_BOOLEAN boolean;
282 ASN1_STRING * asn1_string; 349 ASN1_STRING * asn1_string;
283 ASN1_OBJECT * object; 350 ASN1_OBJECT * object;
284 ASN1_INTEGER * integer; 351 ASN1_INTEGER * integer;
@@ -520,6 +587,8 @@ void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value);
520ASN1_OBJECT * ASN1_OBJECT_new(void ); 587ASN1_OBJECT * ASN1_OBJECT_new(void );
521void ASN1_OBJECT_free(ASN1_OBJECT *a); 588void ASN1_OBJECT_free(ASN1_OBJECT *a);
522int i2d_ASN1_OBJECT(ASN1_OBJECT *a,unsigned char **pp); 589int i2d_ASN1_OBJECT(ASN1_OBJECT *a,unsigned char **pp);
590ASN1_OBJECT * c2i_ASN1_OBJECT(ASN1_OBJECT **a,unsigned char **pp,
591 long length);
523ASN1_OBJECT * d2i_ASN1_OBJECT(ASN1_OBJECT **a,unsigned char **pp, 592ASN1_OBJECT * d2i_ASN1_OBJECT(ASN1_OBJECT **a,unsigned char **pp,
524 long length); 593 long length);
525 594
@@ -542,14 +611,17 @@ unsigned char * ASN1_STRING_data(ASN1_STRING *x);
542ASN1_BIT_STRING * ASN1_BIT_STRING_new(void); 611ASN1_BIT_STRING * ASN1_BIT_STRING_new(void);
543void ASN1_BIT_STRING_free(ASN1_BIT_STRING *a); 612void ASN1_BIT_STRING_free(ASN1_BIT_STRING *a);
544int i2d_ASN1_BIT_STRING(ASN1_BIT_STRING *a,unsigned char **pp); 613int i2d_ASN1_BIT_STRING(ASN1_BIT_STRING *a,unsigned char **pp);
614int i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a,unsigned char **pp);
545ASN1_BIT_STRING *d2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a,unsigned char **pp, 615ASN1_BIT_STRING *d2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a,unsigned char **pp,
546 long length); 616 long length);
617ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a,unsigned char **pp,
618 long length);
547int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, 619int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d,
548 int length ); 620 int length );
549int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value); 621int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value);
550int ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *a, int n); 622int ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *a, int n);
551 623
552#ifdef HEADER_BIO_H 624#ifndef NO_BIO
553int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs, 625int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs,
554 BIT_STRING_BITNAME *tbl, int indent); 626 BIT_STRING_BITNAME *tbl, int indent);
555#endif 627#endif
@@ -563,8 +635,11 @@ int d2i_ASN1_BOOLEAN(int *a,unsigned char **pp,long length);
563ASN1_INTEGER * ASN1_INTEGER_new(void); 635ASN1_INTEGER * ASN1_INTEGER_new(void);
564void ASN1_INTEGER_free(ASN1_INTEGER *a); 636void ASN1_INTEGER_free(ASN1_INTEGER *a);
565int i2d_ASN1_INTEGER(ASN1_INTEGER *a,unsigned char **pp); 637int i2d_ASN1_INTEGER(ASN1_INTEGER *a,unsigned char **pp);
638int i2c_ASN1_INTEGER(ASN1_INTEGER *a,unsigned char **pp);
566ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a,unsigned char **pp, 639ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a,unsigned char **pp,
567 long length); 640 long length);
641ASN1_INTEGER *c2i_ASN1_INTEGER(ASN1_INTEGER **a,unsigned char **pp,
642 long length);
568ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a,unsigned char **pp, 643ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a,unsigned char **pp,
569 long length); 644 long length);
570ASN1_INTEGER * ASN1_INTEGER_dup(ASN1_INTEGER *x); 645ASN1_INTEGER * ASN1_INTEGER_dup(ASN1_INTEGER *x);
@@ -579,6 +654,10 @@ ASN1_ENUMERATED *d2i_ASN1_ENUMERATED(ASN1_ENUMERATED **a,unsigned char **pp,
579int ASN1_UTCTIME_check(ASN1_UTCTIME *a); 654int ASN1_UTCTIME_check(ASN1_UTCTIME *a);
580ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s,time_t t); 655ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s,time_t t);
581int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, char *str); 656int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, char *str);
657int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t);
658#if 0
659time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s);
660#endif
582 661
583int ASN1_GENERALIZEDTIME_check(ASN1_GENERALIZEDTIME *a); 662int ASN1_GENERALIZEDTIME_check(ASN1_GENERALIZEDTIME *a);
584ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,time_t t); 663ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,time_t t);
@@ -673,10 +752,10 @@ ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s,time_t t);
673int i2d_ASN1_SET(STACK *a, unsigned char **pp, 752int i2d_ASN1_SET(STACK *a, unsigned char **pp,
674 int (*func)(), int ex_tag, int ex_class, int is_set); 753 int (*func)(), int ex_tag, int ex_class, int is_set);
675STACK * d2i_ASN1_SET(STACK **a, unsigned char **pp, long length, 754STACK * d2i_ASN1_SET(STACK **a, unsigned char **pp, long length,
676 char *(*func)(), void (*free_func)(), 755 char *(*func)(), void (*free_func)(void *),
677 int ex_tag, int ex_class); 756 int ex_tag, int ex_class);
678 757
679#ifdef HEADER_BIO_H 758#ifndef NO_BIO
680int i2a_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *a); 759int i2a_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *a);
681int a2i_ASN1_INTEGER(BIO *bp,ASN1_INTEGER *bs,char *buf,int size); 760int a2i_ASN1_INTEGER(BIO *bp,ASN1_INTEGER *bs,char *buf,int size);
682int i2a_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *a); 761int i2a_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *a);
@@ -729,16 +808,21 @@ char *ASN1_dup(int (*i2d)(),char *(*d2i)(),char *x);
729#ifndef NO_FP_API 808#ifndef NO_FP_API
730char *ASN1_d2i_fp(char *(*xnew)(),char *(*d2i)(),FILE *fp,unsigned char **x); 809char *ASN1_d2i_fp(char *(*xnew)(),char *(*d2i)(),FILE *fp,unsigned char **x);
731int ASN1_i2d_fp(int (*i2d)(),FILE *out,unsigned char *x); 810int ASN1_i2d_fp(int (*i2d)(),FILE *out,unsigned char *x);
811int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags);
732#endif 812#endif
733 813
734#ifdef HEADER_BIO_H 814int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in);
815
816#ifndef NO_BIO
735char *ASN1_d2i_bio(char *(*xnew)(),char *(*d2i)(),BIO *bp,unsigned char **x); 817char *ASN1_d2i_bio(char *(*xnew)(),char *(*d2i)(),BIO *bp,unsigned char **x);
736int ASN1_i2d_bio(int (*i2d)(),BIO *out,unsigned char *x); 818int ASN1_i2d_bio(int (*i2d)(),BIO *out,unsigned char *x);
737int ASN1_UTCTIME_print(BIO *fp,ASN1_UTCTIME *a); 819int ASN1_UTCTIME_print(BIO *fp,ASN1_UTCTIME *a);
738int ASN1_GENERALIZEDTIME_print(BIO *fp,ASN1_GENERALIZEDTIME *a); 820int ASN1_GENERALIZEDTIME_print(BIO *fp,ASN1_GENERALIZEDTIME *a);
739int ASN1_TIME_print(BIO *fp,ASN1_TIME *a); 821int ASN1_TIME_print(BIO *fp,ASN1_TIME *a);
740int ASN1_STRING_print(BIO *bp,ASN1_STRING *v); 822int ASN1_STRING_print(BIO *bp,ASN1_STRING *v);
823int ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags);
741int ASN1_parse(BIO *bp,unsigned char *pp,long len,int indent); 824int ASN1_parse(BIO *bp,unsigned char *pp,long len,int indent);
825int ASN1_parse_dump(BIO *bp,unsigned char *pp,long len,int indent,int dump);
742#endif 826#endif
743const char *ASN1_tag2str(int tag); 827const char *ASN1_tag2str(int tag);
744 828
@@ -768,9 +852,9 @@ int ASN1_TYPE_get_int_octetstring(ASN1_TYPE *a,long *num,
768 unsigned char *data, int max_len); 852 unsigned char *data, int max_len);
769 853
770STACK *ASN1_seq_unpack(unsigned char *buf, int len, char *(*d2i)(), 854STACK *ASN1_seq_unpack(unsigned char *buf, int len, char *(*d2i)(),
771 void (*free_func)() ); 855 void (*free_func)(void *) );
772unsigned char *ASN1_seq_pack(STACK *safes, int (*i2d)(), unsigned char **buf, 856unsigned char *ASN1_seq_pack(STACK *safes, int (*i2d)(), unsigned char **buf,
773 int *len ); 857 int *len );
774void *ASN1_unpack_string(ASN1_STRING *oct, char *(*d2i)()); 858void *ASN1_unpack_string(ASN1_STRING *oct, char *(*d2i)());
775ASN1_STRING *ASN1_pack_string(void *obj, int (*i2d)(), ASN1_OCTET_STRING **oct); 859ASN1_STRING *ASN1_pack_string(void *obj, int (*i2d)(), ASN1_OCTET_STRING **oct);
776 860
diff --git a/src/lib/libcrypto/asn1/asn1_lib.c b/src/lib/libcrypto/asn1/asn1_lib.c
index be8daa8688..77447a5240 100644
--- a/src/lib/libcrypto/asn1/asn1_lib.c
+++ b/src/lib/libcrypto/asn1/asn1_lib.c
@@ -181,7 +181,7 @@ void ASN1_put_object(unsigned char **pp, int constructed, int length, int tag,
181 int xclass) 181 int xclass)
182 { 182 {
183 unsigned char *p= *pp; 183 unsigned char *p= *pp;
184 int i; 184 int i, ttag;
185 185
186 i=(constructed)?V_ASN1_CONSTRUCTED:0; 186 i=(constructed)?V_ASN1_CONSTRUCTED:0;
187 i|=(xclass&V_ASN1_PRIVATE); 187 i|=(xclass&V_ASN1_PRIVATE);
@@ -190,12 +190,15 @@ void ASN1_put_object(unsigned char **pp, int constructed, int length, int tag,
190 else 190 else
191 { 191 {
192 *(p++)=i|V_ASN1_PRIMITIVE_TAG; 192 *(p++)=i|V_ASN1_PRIMITIVE_TAG;
193 while (tag > 0x7f) 193 for(i = 0, ttag = tag; ttag > 0; i++) ttag >>=7;
194 ttag = i;
195 while(i-- > 0)
194 { 196 {
195 *(p++)=(tag&0x7f)|0x80; 197 p[i] = tag & 0x7f;
196 tag>>=7; 198 if(i != (ttag - 1)) p[i] |= 0x80;
199 tag >>= 7;
197 } 200 }
198 *(p++)=(tag&0x7f); 201 p += ttag;
199 } 202 }
200 if ((constructed == 2) && (length == 0)) 203 if ((constructed == 2) && (length == 0))
201 *(p++)=0x80; /* der_put_length would output 0 instead */ 204 *(p++)=0x80; /* der_put_length would output 0 instead */
@@ -335,9 +338,9 @@ int ASN1_STRING_set(ASN1_STRING *str, const void *_data, int len)
335 { 338 {
336 c=str->data; 339 c=str->data;
337 if (c == NULL) 340 if (c == NULL)
338 str->data=Malloc(len+1); 341 str->data=OPENSSL_malloc(len+1);
339 else 342 else
340 str->data=Realloc(c,len+1); 343 str->data=OPENSSL_realloc(c,len+1);
341 344
342 if (str->data == NULL) 345 if (str->data == NULL)
343 { 346 {
@@ -365,7 +368,7 @@ ASN1_STRING *ASN1_STRING_type_new(int type)
365 { 368 {
366 ASN1_STRING *ret; 369 ASN1_STRING *ret;
367 370
368 ret=(ASN1_STRING *)Malloc(sizeof(ASN1_STRING)); 371 ret=(ASN1_STRING *)OPENSSL_malloc(sizeof(ASN1_STRING));
369 if (ret == NULL) 372 if (ret == NULL)
370 { 373 {
371 ASN1err(ASN1_F_ASN1_STRING_TYPE_NEW,ERR_R_MALLOC_FAILURE); 374 ASN1err(ASN1_F_ASN1_STRING_TYPE_NEW,ERR_R_MALLOC_FAILURE);
@@ -381,8 +384,8 @@ ASN1_STRING *ASN1_STRING_type_new(int type)
381void ASN1_STRING_free(ASN1_STRING *a) 384void ASN1_STRING_free(ASN1_STRING *a)
382 { 385 {
383 if (a == NULL) return; 386 if (a == NULL) return;
384 if (a->data != NULL) Free(a->data); 387 if (a->data != NULL) OPENSSL_free(a->data);
385 Free(a); 388 OPENSSL_free(a);
386 } 389 }
387 390
388int ASN1_STRING_cmp(ASN1_STRING *a, ASN1_STRING *b) 391int ASN1_STRING_cmp(ASN1_STRING *a, ASN1_STRING *b)
diff --git a/src/lib/libcrypto/asn1/asn1_mac.h b/src/lib/libcrypto/asn1/asn1_mac.h
index 4f2a82d340..4512ba6cc6 100644
--- a/src/lib/libcrypto/asn1/asn1_mac.h
+++ b/src/lib/libcrypto/asn1/asn1_mac.h
@@ -59,12 +59,12 @@
59#ifndef HEADER_ASN1_MAC_H 59#ifndef HEADER_ASN1_MAC_H
60#define HEADER_ASN1_MAC_H 60#define HEADER_ASN1_MAC_H
61 61
62#include <openssl/asn1.h>
63
62#ifdef __cplusplus 64#ifdef __cplusplus
63extern "C" { 65extern "C" {
64#endif 66#endif
65 67
66#include <openssl/asn1.h>
67
68#ifndef ASN1_MAC_ERR_LIB 68#ifndef ASN1_MAC_ERR_LIB
69#define ASN1_MAC_ERR_LIB ERR_LIB_ASN1 69#define ASN1_MAC_ERR_LIB ERR_LIB_ASN1
70#endif 70#endif
@@ -340,7 +340,7 @@ err:\
340 340
341/* New macros */ 341/* New macros */
342#define M_ASN1_New_Malloc(ret,type) \ 342#define M_ASN1_New_Malloc(ret,type) \
343 if ((ret=(type *)Malloc(sizeof(type))) == NULL) \ 343 if ((ret=(type *)OPENSSL_malloc(sizeof(type))) == NULL) \
344 { c.line=__LINE__; goto err2; } 344 { c.line=__LINE__; goto err2; }
345 345
346#define M_ASN1_New(arg,func) \ 346#define M_ASN1_New(arg,func) \
diff --git a/src/lib/libcrypto/asn1/asn1_par.c b/src/lib/libcrypto/asn1/asn1_par.c
index d1e9816bad..facfdd27fc 100644
--- a/src/lib/libcrypto/asn1/asn1_par.c
+++ b/src/lib/libcrypto/asn1/asn1_par.c
@@ -65,7 +65,7 @@
65static int asn1_print_info(BIO *bp, int tag, int xclass,int constructed, 65static int asn1_print_info(BIO *bp, int tag, int xclass,int constructed,
66 int indent); 66 int indent);
67static int asn1_parse2(BIO *bp, unsigned char **pp, long length, 67static int asn1_parse2(BIO *bp, unsigned char **pp, long length,
68 int offset, int depth, int indent); 68 int offset, int depth, int indent, int dump);
69static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed, 69static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
70 int indent) 70 int indent)
71 { 71 {
@@ -110,11 +110,16 @@ err:
110 110
111int ASN1_parse(BIO *bp, unsigned char *pp, long len, int indent) 111int ASN1_parse(BIO *bp, unsigned char *pp, long len, int indent)
112 { 112 {
113 return(asn1_parse2(bp,&pp,len,0,0,indent)); 113 return(asn1_parse2(bp,&pp,len,0,0,indent,0));
114 }
115
116int ASN1_parse_dump(BIO *bp, unsigned char *pp, long len, int indent, int dump)
117 {
118 return(asn1_parse2(bp,&pp,len,0,0,indent,dump));
114 } 119 }
115 120
116static int asn1_parse2(BIO *bp, unsigned char **pp, long length, int offset, 121static int asn1_parse2(BIO *bp, unsigned char **pp, long length, int offset,
117 int depth, int indent) 122 int depth, int indent, int dump)
118 { 123 {
119 unsigned char *p,*ep,*tot,*op,*opp; 124 unsigned char *p,*ep,*tot,*op,*opp;
120 long len; 125 long len;
@@ -123,7 +128,13 @@ static int asn1_parse2(BIO *bp, unsigned char **pp, long length, int offset,
123 ASN1_OBJECT *o=NULL; 128 ASN1_OBJECT *o=NULL;
124 ASN1_OCTET_STRING *os=NULL; 129 ASN1_OCTET_STRING *os=NULL;
125 /* ASN1_BMPSTRING *bmp=NULL;*/ 130 /* ASN1_BMPSTRING *bmp=NULL;*/
131 int dump_indent;
126 132
133#if 0
134 dump_indent = indent;
135#else
136 dump_indent = 6; /* Because we know BIO_dump_indent() */
137#endif
127 p= *pp; 138 p= *pp;
128 tot=p+length; 139 tot=p+length;
129 op=p-1; 140 op=p-1;
@@ -178,7 +189,7 @@ static int asn1_parse2(BIO *bp, unsigned char **pp, long length, int offset,
178 { 189 {
179 r=asn1_parse2(bp,&p,(long)(tot-p), 190 r=asn1_parse2(bp,&p,(long)(tot-p),
180 offset+(p - *pp),depth+1, 191 offset+(p - *pp),depth+1,
181 indent); 192 indent,dump);
182 if (r == 0) { ret=0; goto end; } 193 if (r == 0) { ret=0; goto end; }
183 if ((r == 2) || (p >= tot)) break; 194 if ((r == 2) || (p >= tot)) break;
184 } 195 }
@@ -188,7 +199,7 @@ static int asn1_parse2(BIO *bp, unsigned char **pp, long length, int offset,
188 { 199 {
189 r=asn1_parse2(bp,&p,(long)len, 200 r=asn1_parse2(bp,&p,(long)len,
190 offset+(p - *pp),depth+1, 201 offset+(p - *pp),depth+1,
191 indent); 202 indent,dump);
192 if (r == 0) { ret=0; goto end; } 203 if (r == 0) { ret=0; goto end; }
193 } 204 }
194 } 205 }
@@ -273,6 +284,20 @@ static int asn1_parse2(BIO *bp, unsigned char **pp, long length, int offset,
273 os->length) <= 0) 284 os->length) <= 0)
274 goto end; 285 goto end;
275 } 286 }
287 if (!printable && (os->length > 0)
288 && dump)
289 {
290 if (!nl)
291 {
292 if (BIO_write(bp,"\n",1) <= 0)
293 goto end;
294 }
295 if (BIO_dump_indent(bp,(char *)opp,
296 ((dump == -1 || dump > os->length)?os->length:dump),
297 dump_indent) <= 0)
298 goto end;
299 nl=1;
300 }
276 M_ASN1_OCTET_STRING_free(os); 301 M_ASN1_OCTET_STRING_free(os);
277 os=NULL; 302 os=NULL;
278 } 303 }
@@ -341,6 +366,19 @@ static int asn1_parse2(BIO *bp, unsigned char **pp, long length, int offset,
341 } 366 }
342 M_ASN1_ENUMERATED_free(bs); 367 M_ASN1_ENUMERATED_free(bs);
343 } 368 }
369 else if (len > 0 && dump)
370 {
371 if (!nl)
372 {
373 if (BIO_write(bp,"\n",1) <= 0)
374 goto end;
375 }
376 if (BIO_dump_indent(bp,(char *)p,
377 ((dump == -1 || dump > len)?len:dump),
378 dump_indent) <= 0)
379 goto end;
380 nl=1;
381 }
344 382
345 if (!nl) 383 if (!nl)
346 { 384 {
diff --git a/src/lib/libcrypto/asn1/asn_pack.c b/src/lib/libcrypto/asn1/asn_pack.c
index 662a2626a1..bdf5f130b3 100644
--- a/src/lib/libcrypto/asn1/asn_pack.c
+++ b/src/lib/libcrypto/asn1/asn_pack.c
@@ -65,7 +65,7 @@
65/* Turn an ASN1 encoded SEQUENCE OF into a STACK of structures */ 65/* Turn an ASN1 encoded SEQUENCE OF into a STACK of structures */
66 66
67STACK *ASN1_seq_unpack(unsigned char *buf, int len, char *(*d2i)(), 67STACK *ASN1_seq_unpack(unsigned char *buf, int len, char *(*d2i)(),
68 void (*free_func)()) 68 void (*free_func)(void *))
69{ 69{
70 STACK *sk; 70 STACK *sk;
71 unsigned char *pbuf; 71 unsigned char *pbuf;
@@ -77,7 +77,7 @@ STACK *ASN1_seq_unpack(unsigned char *buf, int len, char *(*d2i)(),
77} 77}
78 78
79/* Turn a STACK structures into an ASN1 encoded SEQUENCE OF structure in a 79/* Turn a STACK structures into an ASN1 encoded SEQUENCE OF structure in a
80 * Malloc'ed buffer 80 * OPENSSL_malloc'ed buffer
81 */ 81 */
82 82
83unsigned char *ASN1_seq_pack(STACK *safes, int (*i2d)(), unsigned char **buf, 83unsigned char *ASN1_seq_pack(STACK *safes, int (*i2d)(), unsigned char **buf,
@@ -90,7 +90,7 @@ unsigned char *ASN1_seq_pack(STACK *safes, int (*i2d)(), unsigned char **buf,
90 ASN1err(ASN1_F_ASN1_SEQ_PACK,ASN1_R_ENCODE_ERROR); 90 ASN1err(ASN1_F_ASN1_SEQ_PACK,ASN1_R_ENCODE_ERROR);
91 return NULL; 91 return NULL;
92 } 92 }
93 if (!(safe = Malloc (safelen))) { 93 if (!(safe = OPENSSL_malloc (safelen))) {
94 ASN1err(ASN1_F_ASN1_SEQ_PACK,ERR_R_MALLOC_FAILURE); 94 ASN1err(ASN1_F_ASN1_SEQ_PACK,ERR_R_MALLOC_FAILURE);
95 return NULL; 95 return NULL;
96 } 96 }
@@ -134,7 +134,7 @@ ASN1_STRING *ASN1_pack_string (void *obj, int (*i2d)(), ASN1_STRING **oct)
134 ASN1err(ASN1_F_ASN1_PACK_STRING,ASN1_R_ENCODE_ERROR); 134 ASN1err(ASN1_F_ASN1_PACK_STRING,ASN1_R_ENCODE_ERROR);
135 return NULL; 135 return NULL;
136 } 136 }
137 if (!(p = Malloc (octmp->length))) { 137 if (!(p = OPENSSL_malloc (octmp->length))) {
138 ASN1err(ASN1_F_ASN1_PACK_STRING,ERR_R_MALLOC_FAILURE); 138 ASN1err(ASN1_F_ASN1_PACK_STRING,ERR_R_MALLOC_FAILURE);
139 return NULL; 139 return NULL;
140 } 140 }
diff --git a/src/lib/libcrypto/asn1/charmap.h b/src/lib/libcrypto/asn1/charmap.h
new file mode 100644
index 0000000000..bd020a9562
--- /dev/null
+++ b/src/lib/libcrypto/asn1/charmap.h
@@ -0,0 +1,15 @@
1/* Auto generated with chartype.pl script.
2 * Mask of various character properties
3 */
4
5static unsigned char char_type[] = {
6 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
7 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
8120, 0, 1,40, 0, 0, 0,16,16,16, 0,25,25,16,16,16,
916,16,16,16,16,16,16,16,16,16,16, 9, 9,16, 9,16,
10 0,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,
1116,16,16,16,16,16,16,16,16,16,16, 0, 1, 0, 0, 0,
12 0,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,
1316,16,16,16,16,16,16,16,16,16,16, 0, 0, 0, 0, 2
14};
15
diff --git a/src/lib/libcrypto/asn1/charmap.pl b/src/lib/libcrypto/asn1/charmap.pl
new file mode 100644
index 0000000000..2875c59867
--- /dev/null
+++ b/src/lib/libcrypto/asn1/charmap.pl
@@ -0,0 +1,80 @@
1#!/usr/local/bin/perl -w
2
3use strict;
4
5my ($i, @arr);
6
7# Set up an array with the type of ASCII characters
8# Each set bit represents a character property.
9
10# RFC2253 character properties
11my $RFC2253_ESC = 1; # Character escaped with \
12my $ESC_CTRL = 2; # Escaped control character
13# These are used with RFC1779 quoting using "
14my $NOESC_QUOTE = 8; # Not escaped if quoted
15my $PSTRING_CHAR = 0x10; # Valid PrintableString character
16my $RFC2253_FIRST_ESC = 0x20; # Escaped with \ if first character
17my $RFC2253_LAST_ESC = 0x40; # Escaped with \ if last character
18
19for($i = 0; $i < 128; $i++) {
20 # Set the RFC2253 escape characters (control)
21 $arr[$i] = 0;
22 if(($i < 32) || ($i > 126)) {
23 $arr[$i] |= $ESC_CTRL;
24 }
25
26 # Some PrintableString characters
27 if( ( ( $i >= ord("a")) && ( $i <= ord("z")) )
28 || ( ( $i >= ord("A")) && ( $i <= ord("Z")) )
29 || ( ( $i >= ord("0")) && ( $i <= ord("9")) ) ) {
30 $arr[$i] |= $PSTRING_CHAR;
31 }
32}
33
34# Now setup the rest
35
36# Remaining RFC2253 escaped characters
37
38$arr[ord(" ")] |= $NOESC_QUOTE | $RFC2253_FIRST_ESC | $RFC2253_LAST_ESC;
39$arr[ord("#")] |= $NOESC_QUOTE | $RFC2253_FIRST_ESC;
40
41$arr[ord(",")] |= $NOESC_QUOTE | $RFC2253_ESC;
42$arr[ord("+")] |= $NOESC_QUOTE | $RFC2253_ESC;
43$arr[ord("\"")] |= $RFC2253_ESC;
44$arr[ord("\\")] |= $RFC2253_ESC;
45$arr[ord("<")] |= $NOESC_QUOTE | $RFC2253_ESC;
46$arr[ord(">")] |= $NOESC_QUOTE | $RFC2253_ESC;
47$arr[ord(";")] |= $NOESC_QUOTE | $RFC2253_ESC;
48
49# Remaining PrintableString characters
50
51$arr[ord(" ")] |= $PSTRING_CHAR;
52$arr[ord("'")] |= $PSTRING_CHAR;
53$arr[ord("(")] |= $PSTRING_CHAR;
54$arr[ord(")")] |= $PSTRING_CHAR;
55$arr[ord("+")] |= $PSTRING_CHAR;
56$arr[ord(",")] |= $PSTRING_CHAR;
57$arr[ord("-")] |= $PSTRING_CHAR;
58$arr[ord(".")] |= $PSTRING_CHAR;
59$arr[ord("/")] |= $PSTRING_CHAR;
60$arr[ord(":")] |= $PSTRING_CHAR;
61$arr[ord("=")] |= $PSTRING_CHAR;
62$arr[ord("?")] |= $PSTRING_CHAR;
63
64# Now generate the C code
65
66print <<EOF;
67/* Auto generated with chartype.pl script.
68 * Mask of various character properties
69 */
70
71static unsigned char char_type[] = {
72EOF
73
74for($i = 0; $i < 128; $i++) {
75 print("\n") if($i && (($i % 16) == 0));
76 printf("%2d", $arr[$i]);
77 print(",") if ($i != 127);
78}
79print("\n};\n\n");
80
diff --git a/src/lib/libcrypto/asn1/d2i_dsap.c b/src/lib/libcrypto/asn1/d2i_dsap.c
index 6d1c297133..9d4dea6145 100644
--- a/src/lib/libcrypto/asn1/d2i_dsap.c
+++ b/src/lib/libcrypto/asn1/d2i_dsap.c
@@ -64,7 +64,7 @@
64#include <openssl/objects.h> 64#include <openssl/objects.h>
65#include <openssl/asn1_mac.h> 65#include <openssl/asn1_mac.h>
66 66
67#ifdef NEG_PUBKEY_BUG 67#ifndef NO_NEG_PUBKEY_BUG
68#define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER 68#define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER
69#endif 69#endif
70 70
diff --git a/src/lib/libcrypto/asn1/d2i_r_pu.c b/src/lib/libcrypto/asn1/d2i_r_pu.c
index d1289f160e..9e5d41cf53 100644
--- a/src/lib/libcrypto/asn1/d2i_r_pu.c
+++ b/src/lib/libcrypto/asn1/d2i_r_pu.c
@@ -64,7 +64,7 @@
64#include <openssl/objects.h> 64#include <openssl/objects.h>
65#include <openssl/asn1_mac.h> 65#include <openssl/asn1_mac.h>
66 66
67#ifdef NEG_PUBKEY_BUG 67#ifndef NO_NEG_PUBKEY_BUG
68#define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER 68#define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER
69#endif 69#endif
70 70
diff --git a/src/lib/libcrypto/asn1/d2i_s_pr.c b/src/lib/libcrypto/asn1/d2i_s_pr.c
index dec2a2ebd3..55d5802d70 100644
--- a/src/lib/libcrypto/asn1/d2i_s_pr.c
+++ b/src/lib/libcrypto/asn1/d2i_s_pr.c
@@ -92,6 +92,7 @@ DSA *d2i_DSAPrivateKey(DSA **a, unsigned char **pp, long length)
92 == NULL) goto err_bn; 92 == NULL) goto err_bn;
93 93
94 M_ASN1_INTEGER_free(bs); 94 M_ASN1_INTEGER_free(bs);
95 bs = NULL;
95 96
96 M_ASN1_D2I_Finish_2(a); 97 M_ASN1_D2I_Finish_2(a);
97err_bn: 98err_bn:
diff --git a/src/lib/libcrypto/asn1/d2i_s_pu.c b/src/lib/libcrypto/asn1/d2i_s_pu.c
index e0adaa0393..0b7d2fafcc 100644
--- a/src/lib/libcrypto/asn1/d2i_s_pu.c
+++ b/src/lib/libcrypto/asn1/d2i_s_pu.c
@@ -66,7 +66,7 @@
66#include <openssl/objects.h> 66#include <openssl/objects.h>
67#include <openssl/asn1_mac.h> 67#include <openssl/asn1_mac.h>
68 68
69#ifdef NEG_PUBKEY_BUG 69#ifndef NO_NEG_PUBKEY_BUG
70#define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER 70#define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER
71#endif 71#endif
72 72
diff --git a/src/lib/libcrypto/asn1/f_enum.c b/src/lib/libcrypto/asn1/f_enum.c
index 3d0b1107cb..56e3cc8df2 100644
--- a/src/lib/libcrypto/asn1/f_enum.c
+++ b/src/lib/libcrypto/asn1/f_enum.c
@@ -153,15 +153,15 @@ int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size)
153 if (num+i > slen) 153 if (num+i > slen)
154 { 154 {
155 if (s == NULL) 155 if (s == NULL)
156 sp=(unsigned char *)Malloc( 156 sp=(unsigned char *)OPENSSL_malloc(
157 (unsigned int)num+i*2); 157 (unsigned int)num+i*2);
158 else 158 else
159 sp=(unsigned char *)Realloc(s, 159 sp=(unsigned char *)OPENSSL_realloc(s,
160 (unsigned int)num+i*2); 160 (unsigned int)num+i*2);
161 if (sp == NULL) 161 if (sp == NULL)
162 { 162 {
163 ASN1err(ASN1_F_A2I_ASN1_ENUMERATED,ERR_R_MALLOC_FAILURE); 163 ASN1err(ASN1_F_A2I_ASN1_ENUMERATED,ERR_R_MALLOC_FAILURE);
164 if (s != NULL) Free(s); 164 if (s != NULL) OPENSSL_free(s);
165 goto err; 165 goto err;
166 } 166 }
167 s=sp; 167 s=sp;
diff --git a/src/lib/libcrypto/asn1/f_int.c b/src/lib/libcrypto/asn1/f_int.c
index cd57331c3f..6b090f6740 100644
--- a/src/lib/libcrypto/asn1/f_int.c
+++ b/src/lib/libcrypto/asn1/f_int.c
@@ -160,15 +160,15 @@ int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size)
160 if (num+i > slen) 160 if (num+i > slen)
161 { 161 {
162 if (s == NULL) 162 if (s == NULL)
163 sp=(unsigned char *)Malloc( 163 sp=(unsigned char *)OPENSSL_malloc(
164 (unsigned int)num+i*2); 164 (unsigned int)num+i*2);
165 else 165 else
166 sp=(unsigned char *)Realloc(s, 166 sp=(unsigned char *)OPENSSL_realloc(s,
167 (unsigned int)num+i*2); 167 (unsigned int)num+i*2);
168 if (sp == NULL) 168 if (sp == NULL)
169 { 169 {
170 ASN1err(ASN1_F_A2I_ASN1_INTEGER,ERR_R_MALLOC_FAILURE); 170 ASN1err(ASN1_F_A2I_ASN1_INTEGER,ERR_R_MALLOC_FAILURE);
171 if (s != NULL) Free(s); 171 if (s != NULL) OPENSSL_free(s);
172 goto err; 172 goto err;
173 } 173 }
174 s=sp; 174 s=sp;
diff --git a/src/lib/libcrypto/asn1/f_string.c b/src/lib/libcrypto/asn1/f_string.c
index 088313689a..968698a798 100644
--- a/src/lib/libcrypto/asn1/f_string.c
+++ b/src/lib/libcrypto/asn1/f_string.c
@@ -158,15 +158,15 @@ int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size)
158 if (num+i > slen) 158 if (num+i > slen)
159 { 159 {
160 if (s == NULL) 160 if (s == NULL)
161 sp=(unsigned char *)Malloc( 161 sp=(unsigned char *)OPENSSL_malloc(
162 (unsigned int)num+i*2); 162 (unsigned int)num+i*2);
163 else 163 else
164 sp=(unsigned char *)Realloc(s, 164 sp=(unsigned char *)OPENSSL_realloc(s,
165 (unsigned int)num+i*2); 165 (unsigned int)num+i*2);
166 if (sp == NULL) 166 if (sp == NULL)
167 { 167 {
168 ASN1err(ASN1_F_A2I_ASN1_STRING,ERR_R_MALLOC_FAILURE); 168 ASN1err(ASN1_F_A2I_ASN1_STRING,ERR_R_MALLOC_FAILURE);
169 if (s != NULL) Free(s); 169 if (s != NULL) OPENSSL_free(s);
170 goto err; 170 goto err;
171 } 171 }
172 s=sp; 172 s=sp;
diff --git a/src/lib/libcrypto/asn1/i2d_dhp.c b/src/lib/libcrypto/asn1/i2d_dhp.c
index 61eeb646f9..b1de17fe07 100644
--- a/src/lib/libcrypto/asn1/i2d_dhp.c
+++ b/src/lib/libcrypto/asn1/i2d_dhp.c
@@ -105,7 +105,7 @@ int i2d_DHparams(DH *a, unsigned char **pp)
105 ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL); 105 ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
106 106
107 bs.type=V_ASN1_INTEGER; 107 bs.type=V_ASN1_INTEGER;
108 bs.data=(unsigned char *)Malloc(max+4); 108 bs.data=(unsigned char *)OPENSSL_malloc(max+4);
109 if (bs.data == NULL) 109 if (bs.data == NULL)
110 { 110 {
111 ASN1err(ASN1_F_I2D_DHPARAMS,ERR_R_MALLOC_FAILURE); 111 ASN1err(ASN1_F_I2D_DHPARAMS,ERR_R_MALLOC_FAILURE);
@@ -118,7 +118,7 @@ int i2d_DHparams(DH *a, unsigned char **pp)
118 bs.length=BN_bn2bin(num[i],bs.data); 118 bs.length=BN_bn2bin(num[i],bs.data);
119 i2d_ASN1_INTEGER(&bs,&p); 119 i2d_ASN1_INTEGER(&bs,&p);
120 } 120 }
121 Free(bs.data); 121 OPENSSL_free(bs.data);
122 ret=t; 122 ret=t;
123err: 123err:
124 if (num[2] != NULL) BN_free(num[2]); 124 if (num[2] != NULL) BN_free(num[2]);
diff --git a/src/lib/libcrypto/asn1/i2d_dsap.c b/src/lib/libcrypto/asn1/i2d_dsap.c
index 4021123ba3..157fb43893 100644
--- a/src/lib/libcrypto/asn1/i2d_dsap.c
+++ b/src/lib/libcrypto/asn1/i2d_dsap.c
@@ -94,7 +94,7 @@ int i2d_DSAparams(DSA *a, unsigned char **pp)
94 ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL); 94 ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
95 95
96 bs.type=V_ASN1_INTEGER; 96 bs.type=V_ASN1_INTEGER;
97 bs.data=(unsigned char *)Malloc(max+4); 97 bs.data=(unsigned char *)OPENSSL_malloc(max+4);
98 if (bs.data == NULL) 98 if (bs.data == NULL)
99 { 99 {
100 ASN1err(ASN1_F_I2D_DSAPARAMS,ERR_R_MALLOC_FAILURE); 100 ASN1err(ASN1_F_I2D_DSAPARAMS,ERR_R_MALLOC_FAILURE);
@@ -107,7 +107,7 @@ int i2d_DSAparams(DSA *a, unsigned char **pp)
107 bs.length=BN_bn2bin(num[i],bs.data); 107 bs.length=BN_bn2bin(num[i],bs.data);
108 i2d_ASN1_INTEGER(&bs,&p); 108 i2d_ASN1_INTEGER(&bs,&p);
109 } 109 }
110 Free(bs.data); 110 OPENSSL_free(bs.data);
111 ret=t; 111 ret=t;
112err: 112err:
113 *pp=p; 113 *pp=p;
diff --git a/src/lib/libcrypto/asn1/i2d_r_pr.c b/src/lib/libcrypto/asn1/i2d_r_pr.c
index 1250fa4b2d..88b1aac989 100644
--- a/src/lib/libcrypto/asn1/i2d_r_pr.c
+++ b/src/lib/libcrypto/asn1/i2d_r_pr.c
@@ -107,7 +107,7 @@ int i2d_RSAPrivateKey(RSA *a, unsigned char **pp)
107 107
108 i2d_ASN1_INTEGER(&bs,&p); 108 i2d_ASN1_INTEGER(&bs,&p);
109 109
110 bs.data=(unsigned char *)Malloc(max+4); 110 bs.data=(unsigned char *)OPENSSL_malloc(max+4);
111 if (bs.data == NULL) 111 if (bs.data == NULL)
112 { 112 {
113 ASN1err(ASN1_F_I2D_RSAPRIVATEKEY,ERR_R_MALLOC_FAILURE); 113 ASN1err(ASN1_F_I2D_RSAPRIVATEKEY,ERR_R_MALLOC_FAILURE);
@@ -119,7 +119,7 @@ int i2d_RSAPrivateKey(RSA *a, unsigned char **pp)
119 bs.length=BN_bn2bin(num[i],bs.data); 119 bs.length=BN_bn2bin(num[i],bs.data);
120 i2d_ASN1_INTEGER(&bs,&p); 120 i2d_ASN1_INTEGER(&bs,&p);
121 } 121 }
122 Free(bs.data); 122 OPENSSL_free(bs.data);
123 *pp=p; 123 *pp=p;
124 return(t); 124 return(t);
125 } 125 }
diff --git a/src/lib/libcrypto/asn1/i2d_r_pu.c b/src/lib/libcrypto/asn1/i2d_r_pu.c
index 582b92ee4c..8178c2c3b3 100644
--- a/src/lib/libcrypto/asn1/i2d_r_pu.c
+++ b/src/lib/libcrypto/asn1/i2d_r_pu.c
@@ -93,7 +93,7 @@ int i2d_RSAPublicKey(RSA *a, unsigned char **pp)
93 ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL); 93 ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
94 94
95 bs.type=V_ASN1_INTEGER; 95 bs.type=V_ASN1_INTEGER;
96 bs.data=(unsigned char *)Malloc(max+4); 96 bs.data=(unsigned char *)OPENSSL_malloc(max+4);
97 if (bs.data == NULL) 97 if (bs.data == NULL)
98 { 98 {
99 ASN1err(ASN1_F_I2D_RSAPUBLICKEY,ERR_R_MALLOC_FAILURE); 99 ASN1err(ASN1_F_I2D_RSAPUBLICKEY,ERR_R_MALLOC_FAILURE);
@@ -105,7 +105,7 @@ int i2d_RSAPublicKey(RSA *a, unsigned char **pp)
105 bs.length=BN_bn2bin(num[i],bs.data); 105 bs.length=BN_bn2bin(num[i],bs.data);
106 i2d_ASN1_INTEGER(&bs,&p); 106 i2d_ASN1_INTEGER(&bs,&p);
107 } 107 }
108 Free(bs.data); 108 OPENSSL_free(bs.data);
109 *pp=p; 109 *pp=p;
110 return(t); 110 return(t);
111 } 111 }
diff --git a/src/lib/libcrypto/asn1/i2d_s_pr.c b/src/lib/libcrypto/asn1/i2d_s_pr.c
index e399ceaeb9..9922952ad7 100644
--- a/src/lib/libcrypto/asn1/i2d_s_pr.c
+++ b/src/lib/libcrypto/asn1/i2d_s_pr.c
@@ -104,7 +104,7 @@ int i2d_DSAPrivateKey(DSA *a, unsigned char **pp)
104 104
105 i2d_ASN1_INTEGER(&bs,&p); 105 i2d_ASN1_INTEGER(&bs,&p);
106 106
107 bs.data=(unsigned char *)Malloc(max+4); 107 bs.data=(unsigned char *)OPENSSL_malloc(max+4);
108 if (bs.data == NULL) 108 if (bs.data == NULL)
109 { 109 {
110 ASN1err(ASN1_F_I2D_DSAPRIVATEKEY,ERR_R_MALLOC_FAILURE); 110 ASN1err(ASN1_F_I2D_DSAPRIVATEKEY,ERR_R_MALLOC_FAILURE);
@@ -116,7 +116,7 @@ int i2d_DSAPrivateKey(DSA *a, unsigned char **pp)
116 bs.length=BN_bn2bin(num[i],bs.data); 116 bs.length=BN_bn2bin(num[i],bs.data);
117 i2d_ASN1_INTEGER(&bs,&p); 117 i2d_ASN1_INTEGER(&bs,&p);
118 } 118 }
119 Free(bs.data); 119 OPENSSL_free(bs.data);
120 *pp=p; 120 *pp=p;
121 return(t); 121 return(t);
122 } 122 }
diff --git a/src/lib/libcrypto/asn1/i2d_s_pu.c b/src/lib/libcrypto/asn1/i2d_s_pu.c
index ca7f251b71..e6014b82a8 100644
--- a/src/lib/libcrypto/asn1/i2d_s_pu.c
+++ b/src/lib/libcrypto/asn1/i2d_s_pu.c
@@ -109,7 +109,7 @@ int i2d_DSAPublicKey(DSA *a, unsigned char **pp)
109 ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL); 109 ASN1_put_object(&p,1,tot,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
110 110
111 bs.type=V_ASN1_INTEGER; 111 bs.type=V_ASN1_INTEGER;
112 bs.data=(unsigned char *)Malloc(max+4); 112 bs.data=(unsigned char *)OPENSSL_malloc(max+4);
113 if (bs.data == NULL) 113 if (bs.data == NULL)
114 { 114 {
115 ASN1err(ASN1_F_I2D_DSAPUBLICKEY,ERR_R_MALLOC_FAILURE); 115 ASN1err(ASN1_F_I2D_DSAPUBLICKEY,ERR_R_MALLOC_FAILURE);
@@ -121,7 +121,7 @@ int i2d_DSAPublicKey(DSA *a, unsigned char **pp)
121 bs.length=BN_bn2bin(num[i],bs.data); 121 bs.length=BN_bn2bin(num[i],bs.data);
122 i2d_ASN1_INTEGER(&bs,&p); 122 i2d_ASN1_INTEGER(&bs,&p);
123 } 123 }
124 Free(bs.data); 124 OPENSSL_free(bs.data);
125 *pp=p; 125 *pp=p;
126 if(all) return(t); 126 if(all) return(t);
127 else return(tot); 127 else return(tot);
diff --git a/src/lib/libcrypto/asn1/n_pkey.c b/src/lib/libcrypto/asn1/n_pkey.c
index d804986b73..9840193538 100644
--- a/src/lib/libcrypto/asn1/n_pkey.c
+++ b/src/lib/libcrypto/asn1/n_pkey.c
@@ -81,6 +81,11 @@ static NETSCAPE_PKEY *NETSCAPE_PKEY_new(void);
81static void NETSCAPE_PKEY_free(NETSCAPE_PKEY *); 81static void NETSCAPE_PKEY_free(NETSCAPE_PKEY *);
82 82
83int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)()) 83int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)())
84{
85 return i2d_RSA_NET(a, pp, cb, 0);
86}
87
88int i2d_RSA_NET(RSA *a, unsigned char **pp, int (*cb)(), int sgckey)
84 { 89 {
85 int i,j,l[6]; 90 int i,j,l[6];
86 NETSCAPE_PKEY *pkey; 91 NETSCAPE_PKEY *pkey;
@@ -139,8 +144,8 @@ int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)())
139 } 144 }
140 145
141 if (pkey->private_key->data != NULL) 146 if (pkey->private_key->data != NULL)
142 Free(pkey->private_key->data); 147 OPENSSL_free(pkey->private_key->data);
143 if ((pkey->private_key->data=(unsigned char *)Malloc(l[0])) == NULL) 148 if ((pkey->private_key->data=(unsigned char *)OPENSSL_malloc(l[0])) == NULL)
144 { 149 {
145 ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE); 150 ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE);
146 goto err; 151 goto err;
@@ -148,7 +153,7 @@ int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)())
148 zz=pkey->private_key->data; 153 zz=pkey->private_key->data;
149 i2d_RSAPrivateKey(a,&zz); 154 i2d_RSAPrivateKey(a,&zz);
150 155
151 if ((os2.data=(unsigned char *)Malloc(os2.length)) == NULL) 156 if ((os2.data=(unsigned char *)OPENSSL_malloc(os2.length)) == NULL)
152 { 157 {
153 ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE); 158 ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE);
154 goto err; 159 goto err;
@@ -164,8 +169,18 @@ int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)())
164 ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ASN1_R_BAD_PASSWORD_READ); 169 ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ASN1_R_BAD_PASSWORD_READ);
165 goto err; 170 goto err;
166 } 171 }
167 EVP_BytesToKey(EVP_rc4(),EVP_md5(),NULL,buf, 172 i = strlen((char *)buf);
168 strlen((char *)buf),1,key,NULL); 173 /* If the key is used for SGC the algorithm is modified a little. */
174 if(sgckey){
175 EVP_MD_CTX mctx;
176 EVP_DigestInit(&mctx, EVP_md5());
177 EVP_DigestUpdate(&mctx, buf, i);
178 EVP_DigestFinal(&mctx, buf, NULL);
179 memcpy(buf + 16, "SGCKEYSALT", 10);
180 i = 26;
181 }
182
183 EVP_BytesToKey(EVP_rc4(),EVP_md5(),NULL,buf,i,1,key,NULL);
169 memset(buf,0,256); 184 memset(buf,0,256);
170 185
171 EVP_CIPHER_CTX_init(&ctx); 186 EVP_CIPHER_CTX_init(&ctx);
@@ -182,14 +197,20 @@ int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)())
182 i2d_ASN1_OCTET_STRING(&os2,&p); 197 i2d_ASN1_OCTET_STRING(&os2,&p);
183 ret=l[5]; 198 ret=l[5];
184err: 199err:
185 if (os2.data != NULL) Free(os2.data); 200 if (os2.data != NULL) OPENSSL_free(os2.data);
186 if (alg != NULL) X509_ALGOR_free(alg); 201 if (alg != NULL) X509_ALGOR_free(alg);
187 if (pkey != NULL) NETSCAPE_PKEY_free(pkey); 202 if (pkey != NULL) NETSCAPE_PKEY_free(pkey);
188 r=r; 203 r=r;
189 return(ret); 204 return(ret);
190 } 205 }
191 206
207
192RSA *d2i_Netscape_RSA(RSA **a, unsigned char **pp, long length, int (*cb)()) 208RSA *d2i_Netscape_RSA(RSA **a, unsigned char **pp, long length, int (*cb)())
209{
210 return d2i_RSA_NET(a, pp, length, cb, 0);
211}
212
213RSA *d2i_RSA_NET(RSA **a, unsigned char **pp, long length, int (*cb)(), int sgckey)
193 { 214 {
194 RSA *ret=NULL; 215 RSA *ret=NULL;
195 ASN1_OCTET_STRING *os=NULL; 216 ASN1_OCTET_STRING *os=NULL;
@@ -210,14 +231,24 @@ RSA *d2i_Netscape_RSA(RSA **a, unsigned char **pp, long length, int (*cb)())
210 } 231 }
211 M_ASN1_BIT_STRING_free(os); 232 M_ASN1_BIT_STRING_free(os);
212 c.q=c.p; 233 c.q=c.p;
213 if ((ret=d2i_Netscape_RSA_2(a,&c.p,c.slen,cb)) == NULL) goto err; 234 if ((ret=d2i_RSA_NET_2(a,&c.p,c.slen,cb, sgckey)) == NULL) goto err;
214 c.slen-=(c.p-c.q); 235 /* Note: some versions of IIS key files use length values that are
236 * too small for the surrounding SEQUENCEs. This following line
237 * effectively disable length checking.
238 */
239 c.slen = 0;
215 240
216 M_ASN1_D2I_Finish(a,RSA_free,ASN1_F_D2I_NETSCAPE_RSA); 241 M_ASN1_D2I_Finish(a,RSA_free,ASN1_F_D2I_NETSCAPE_RSA);
217 } 242 }
218 243
219RSA *d2i_Netscape_RSA_2(RSA **a, unsigned char **pp, long length, 244RSA *d2i_Netscape_RSA_2(RSA **a, unsigned char **pp, long length,
220 int (*cb)()) 245 int (*cb)())
246{
247 return d2i_RSA_NET_2(a, pp, length, cb, 0);
248}
249
250RSA *d2i_RSA_NET_2(RSA **a, unsigned char **pp, long length,
251 int (*cb)(), int sgckey)
221 { 252 {
222 NETSCAPE_PKEY *pkey=NULL; 253 NETSCAPE_PKEY *pkey=NULL;
223 RSA *ret=NULL; 254 RSA *ret=NULL;
@@ -250,8 +281,17 @@ RSA *d2i_Netscape_RSA_2(RSA **a, unsigned char **pp, long length,
250 goto err; 281 goto err;
251 } 282 }
252 283
253 EVP_BytesToKey(EVP_rc4(),EVP_md5(),NULL,buf, 284 i = strlen((char *)buf);
254 strlen((char *)buf),1,key,NULL); 285 if(sgckey){
286 EVP_MD_CTX mctx;
287 EVP_DigestInit(&mctx, EVP_md5());
288 EVP_DigestUpdate(&mctx, buf, i);
289 EVP_DigestFinal(&mctx, buf, NULL);
290 memcpy(buf + 16, "SGCKEYSALT", 10);
291 i = 26;
292 }
293
294 EVP_BytesToKey(EVP_rc4(),EVP_md5(),NULL,buf,i,1,key,NULL);
255 memset(buf,0,256); 295 memset(buf,0,256);
256 296
257 EVP_CIPHER_CTX_init(&ctx); 297 EVP_CIPHER_CTX_init(&ctx);
@@ -334,7 +374,7 @@ static void NETSCAPE_PKEY_free(NETSCAPE_PKEY *a)
334 M_ASN1_INTEGER_free(a->version); 374 M_ASN1_INTEGER_free(a->version);
335 X509_ALGOR_free(a->algor); 375 X509_ALGOR_free(a->algor);
336 M_ASN1_OCTET_STRING_free(a->private_key); 376 M_ASN1_OCTET_STRING_free(a->private_key);
337 Free(a); 377 OPENSSL_free(a);
338 } 378 }
339 379
340#endif /* NO_RC4 */ 380#endif /* NO_RC4 */
diff --git a/src/lib/libcrypto/asn1/nsseq.c b/src/lib/libcrypto/asn1/nsseq.c
index 417d024b81..6e7f09ba23 100644
--- a/src/lib/libcrypto/asn1/nsseq.c
+++ b/src/lib/libcrypto/asn1/nsseq.c
@@ -114,5 +114,5 @@ void NETSCAPE_CERT_SEQUENCE_free (NETSCAPE_CERT_SEQUENCE *a)
114 ASN1_OBJECT_free(a->type); 114 ASN1_OBJECT_free(a->type);
115 if(a->certs) 115 if(a->certs)
116 sk_X509_pop_free(a->certs, X509_free); 116 sk_X509_pop_free(a->certs, X509_free);
117 Free (a); 117 OPENSSL_free (a);
118} 118}
diff --git a/src/lib/libcrypto/asn1/p5_pbe.c b/src/lib/libcrypto/asn1/p5_pbe.c
index a147ac3295..b7ed538eb2 100644
--- a/src/lib/libcrypto/asn1/p5_pbe.c
+++ b/src/lib/libcrypto/asn1/p5_pbe.c
@@ -103,7 +103,7 @@ void PBEPARAM_free (PBEPARAM *a)
103 if(a==NULL) return; 103 if(a==NULL) return;
104 M_ASN1_OCTET_STRING_free(a->salt); 104 M_ASN1_OCTET_STRING_free(a->salt);
105 M_ASN1_INTEGER_free (a->iter); 105 M_ASN1_INTEGER_free (a->iter);
106 Free (a); 106 OPENSSL_free (a);
107} 107}
108 108
109/* Return an algorithm identifier for a PKCS#5 PBE algorithm */ 109/* Return an algorithm identifier for a PKCS#5 PBE algorithm */
@@ -123,7 +123,7 @@ X509_ALGOR *PKCS5_pbe_set(int alg, int iter, unsigned char *salt,
123 if(iter <= 0) iter = PKCS5_DEFAULT_ITER; 123 if(iter <= 0) iter = PKCS5_DEFAULT_ITER;
124 ASN1_INTEGER_set (pbe->iter, iter); 124 ASN1_INTEGER_set (pbe->iter, iter);
125 if (!saltlen) saltlen = PKCS5_SALT_LEN; 125 if (!saltlen) saltlen = PKCS5_SALT_LEN;
126 if (!(pbe->salt->data = Malloc (saltlen))) { 126 if (!(pbe->salt->data = OPENSSL_malloc (saltlen))) {
127 ASN1err(ASN1_F_ASN1_PBE_SET,ERR_R_MALLOC_FAILURE); 127 ASN1err(ASN1_F_ASN1_PBE_SET,ERR_R_MALLOC_FAILURE);
128 return NULL; 128 return NULL;
129 } 129 }
diff --git a/src/lib/libcrypto/asn1/p5_pbev2.c b/src/lib/libcrypto/asn1/p5_pbev2.c
index 1bbdb10c71..6a7b578c0e 100644
--- a/src/lib/libcrypto/asn1/p5_pbev2.c
+++ b/src/lib/libcrypto/asn1/p5_pbev2.c
@@ -104,7 +104,7 @@ void PBE2PARAM_free (PBE2PARAM *a)
104 if(a==NULL) return; 104 if(a==NULL) return;
105 X509_ALGOR_free(a->keyfunc); 105 X509_ALGOR_free(a->keyfunc);
106 X509_ALGOR_free(a->encryption); 106 X509_ALGOR_free(a->encryption);
107 Free (a); 107 OPENSSL_free (a);
108} 108}
109 109
110int i2d_PBKDF2PARAM(PBKDF2PARAM *a, unsigned char **pp) 110int i2d_PBKDF2PARAM(PBKDF2PARAM *a, unsigned char **pp)
@@ -158,7 +158,7 @@ void PBKDF2PARAM_free (PBKDF2PARAM *a)
158 M_ASN1_INTEGER_free(a->iter); 158 M_ASN1_INTEGER_free(a->iter);
159 M_ASN1_INTEGER_free(a->keylength); 159 M_ASN1_INTEGER_free(a->keylength);
160 X509_ALGOR_free(a->prf); 160 X509_ALGOR_free(a->prf);
161 Free (a); 161 OPENSSL_free (a);
162} 162}
163 163
164/* Return an algorithm identifier for a PKCS#5 v2.0 PBE algorithm: 164/* Return an algorithm identifier for a PKCS#5 v2.0 PBE algorithm:
@@ -210,7 +210,7 @@ X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,
210 if(!(osalt = M_ASN1_OCTET_STRING_new())) goto merr; 210 if(!(osalt = M_ASN1_OCTET_STRING_new())) goto merr;
211 211
212 if (!saltlen) saltlen = PKCS5_SALT_LEN; 212 if (!saltlen) saltlen = PKCS5_SALT_LEN;
213 if (!(osalt->data = Malloc (saltlen))) goto merr; 213 if (!(osalt->data = OPENSSL_malloc (saltlen))) goto merr;
214 osalt->length = saltlen; 214 osalt->length = saltlen;
215 if (salt) memcpy (osalt->data, salt, saltlen); 215 if (salt) memcpy (osalt->data, salt, saltlen);
216 else if (RAND_pseudo_bytes (osalt->data, saltlen) < 0) goto merr; 216 else if (RAND_pseudo_bytes (osalt->data, saltlen) < 0) goto merr;
diff --git a/src/lib/libcrypto/asn1/p7_dgst.c b/src/lib/libcrypto/asn1/p7_dgst.c
index cba90e94a1..c170244616 100644
--- a/src/lib/libcrypto/asn1/p7_dgst.c
+++ b/src/lib/libcrypto/asn1/p7_dgst.c
@@ -116,6 +116,6 @@ void PKCS7_DIGEST_free(PKCS7_DIGEST *a)
116 X509_ALGOR_free(a->md); 116 X509_ALGOR_free(a->md);
117 PKCS7_free(a->contents); 117 PKCS7_free(a->contents);
118 M_ASN1_OCTET_STRING_free(a->digest); 118 M_ASN1_OCTET_STRING_free(a->digest);
119 Free(a); 119 OPENSSL_free(a);
120 } 120 }
121 121
diff --git a/src/lib/libcrypto/asn1/p7_enc.c b/src/lib/libcrypto/asn1/p7_enc.c
index 83b0e15faa..38ccafbdb0 100644
--- a/src/lib/libcrypto/asn1/p7_enc.c
+++ b/src/lib/libcrypto/asn1/p7_enc.c
@@ -106,6 +106,6 @@ void PKCS7_ENCRYPT_free(PKCS7_ENCRYPT *a)
106 if (a == NULL) return; 106 if (a == NULL) return;
107 M_ASN1_INTEGER_free(a->version); 107 M_ASN1_INTEGER_free(a->version);
108 PKCS7_ENC_CONTENT_free(a->enc_data); 108 PKCS7_ENC_CONTENT_free(a->enc_data);
109 Free(a); 109 OPENSSL_free(a);
110 } 110 }
111 111
diff --git a/src/lib/libcrypto/asn1/p7_enc_c.c b/src/lib/libcrypto/asn1/p7_enc_c.c
index 582cc78b06..031178ab52 100644
--- a/src/lib/libcrypto/asn1/p7_enc_c.c
+++ b/src/lib/libcrypto/asn1/p7_enc_c.c
@@ -115,6 +115,6 @@ void PKCS7_ENC_CONTENT_free(PKCS7_ENC_CONTENT *a)
115 ASN1_OBJECT_free(a->content_type); 115 ASN1_OBJECT_free(a->content_type);
116 X509_ALGOR_free(a->algorithm); 116 X509_ALGOR_free(a->algorithm);
117 M_ASN1_OCTET_STRING_free(a->enc_data); 117 M_ASN1_OCTET_STRING_free(a->enc_data);
118 Free(a); 118 OPENSSL_free(a);
119 } 119 }
120 120
diff --git a/src/lib/libcrypto/asn1/p7_evp.c b/src/lib/libcrypto/asn1/p7_evp.c
index 4e734fdd28..60be3e5f66 100644
--- a/src/lib/libcrypto/asn1/p7_evp.c
+++ b/src/lib/libcrypto/asn1/p7_evp.c
@@ -114,6 +114,6 @@ void PKCS7_ENVELOPE_free(PKCS7_ENVELOPE *a)
114 M_ASN1_INTEGER_free(a->version); 114 M_ASN1_INTEGER_free(a->version);
115 sk_PKCS7_RECIP_INFO_pop_free(a->recipientinfo,PKCS7_RECIP_INFO_free); 115 sk_PKCS7_RECIP_INFO_pop_free(a->recipientinfo,PKCS7_RECIP_INFO_free);
116 PKCS7_ENC_CONTENT_free(a->enc_data); 116 PKCS7_ENC_CONTENT_free(a->enc_data);
117 Free(a); 117 OPENSSL_free(a);
118 } 118 }
119 119
diff --git a/src/lib/libcrypto/asn1/p7_i_s.c b/src/lib/libcrypto/asn1/p7_i_s.c
index d21f7ddb84..4a7260a5c8 100644
--- a/src/lib/libcrypto/asn1/p7_i_s.c
+++ b/src/lib/libcrypto/asn1/p7_i_s.c
@@ -106,6 +106,6 @@ void PKCS7_ISSUER_AND_SERIAL_free(PKCS7_ISSUER_AND_SERIAL *a)
106 if (a == NULL) return; 106 if (a == NULL) return;
107 X509_NAME_free(a->issuer); 107 X509_NAME_free(a->issuer);
108 M_ASN1_INTEGER_free(a->serial); 108 M_ASN1_INTEGER_free(a->serial);
109 Free(a); 109 OPENSSL_free(a);
110 } 110 }
111 111
diff --git a/src/lib/libcrypto/asn1/p7_lib.c b/src/lib/libcrypto/asn1/p7_lib.c
index 86db82cfa1..b1196ef581 100644
--- a/src/lib/libcrypto/asn1/p7_lib.c
+++ b/src/lib/libcrypto/asn1/p7_lib.c
@@ -62,6 +62,8 @@
62#include <openssl/pkcs7.h> 62#include <openssl/pkcs7.h>
63#include <openssl/objects.h> 63#include <openssl/objects.h>
64 64
65#ifdef PKCS7_INDEFINITE_ENCODING
66
65int i2d_PKCS7(PKCS7 *a, unsigned char **pp) 67int i2d_PKCS7(PKCS7 *a, unsigned char **pp)
66 { 68 {
67 M_ASN1_I2D_vars(a); 69 M_ASN1_I2D_vars(a);
@@ -102,6 +104,7 @@ int i2d_PKCS7(PKCS7 *a, unsigned char **pp)
102 M_ASN1_I2D_len(a->d.encrypted,i2d_PKCS7_ENCRYPT); 104 M_ASN1_I2D_len(a->d.encrypted,i2d_PKCS7_ENCRYPT);
103 break; 105 break;
104 default: 106 default:
107 M_ASN1_I2D_len(a->d.other,i2d_ASN1_TYPE);
105 break; 108 break;
106 } 109 }
107 } 110 }
@@ -136,6 +139,7 @@ int i2d_PKCS7(PKCS7 *a, unsigned char **pp)
136 M_ASN1_I2D_put(a->d.encrypted,i2d_PKCS7_ENCRYPT); 139 M_ASN1_I2D_put(a->d.encrypted,i2d_PKCS7_ENCRYPT);
137 break; 140 break;
138 default: 141 default:
142 M_ASN1_I2D_put(a->d.other,i2d_ASN1_TYPE);
139 break; 143 break;
140 } 144 }
141 M_ASN1_I2D_INF_seq_end(); 145 M_ASN1_I2D_INF_seq_end();
@@ -144,6 +148,98 @@ int i2d_PKCS7(PKCS7 *a, unsigned char **pp)
144 M_ASN1_I2D_finish(); 148 M_ASN1_I2D_finish();
145 } 149 }
146 150
151#else
152
153int i2d_PKCS7(PKCS7 *a, unsigned char **pp)
154 {
155 int explen = 0;
156 M_ASN1_I2D_vars(a);
157
158 if (a->asn1 != NULL)
159 {
160 if (pp == NULL)
161 return((int)a->length);
162 memcpy(*pp,a->asn1,(int)a->length);
163 *pp+=a->length;
164 return((int)a->length);
165 }
166
167 M_ASN1_I2D_len(a->type,i2d_ASN1_OBJECT);
168 if (a->d.ptr != NULL)
169 {
170 /* Save current length */
171 r = ret;
172 switch (OBJ_obj2nid(a->type))
173 {
174 case NID_pkcs7_data:
175 M_ASN1_I2D_len(a->d.data,i2d_ASN1_OCTET_STRING);
176 break;
177 case NID_pkcs7_signed:
178 M_ASN1_I2D_len(a->d.sign,i2d_PKCS7_SIGNED);
179 break;
180 case NID_pkcs7_enveloped:
181 M_ASN1_I2D_len(a->d.enveloped,i2d_PKCS7_ENVELOPE);
182 break;
183 case NID_pkcs7_signedAndEnveloped:
184 M_ASN1_I2D_len(a->d.signed_and_enveloped,
185 i2d_PKCS7_SIGN_ENVELOPE);
186 break;
187 case NID_pkcs7_digest:
188 M_ASN1_I2D_len(a->d.digest,i2d_PKCS7_DIGEST);
189 break;
190 case NID_pkcs7_encrypted:
191 M_ASN1_I2D_len(a->d.encrypted,i2d_PKCS7_ENCRYPT);
192 break;
193 default:
194 M_ASN1_I2D_len(a->d.other,i2d_ASN1_TYPE);
195 break;
196 }
197 /* Work out explicit tag content size */
198 explen = ret - r;
199 /* Work out explicit tag size: Note: ASN1_object_size
200 * includes the content length.
201 */
202 ret = r + ASN1_object_size(1, explen, 0);
203 }
204
205 M_ASN1_I2D_seq_total();
206
207 M_ASN1_I2D_put(a->type,i2d_ASN1_OBJECT);
208
209 if (a->d.ptr != NULL)
210 {
211 ASN1_put_object(&p, 1, explen, 0, V_ASN1_CONTEXT_SPECIFIC);
212 switch (OBJ_obj2nid(a->type))
213 {
214 case NID_pkcs7_data:
215 M_ASN1_I2D_put(a->d.data,i2d_ASN1_OCTET_STRING);
216 break;
217 case NID_pkcs7_signed:
218 M_ASN1_I2D_put(a->d.sign,i2d_PKCS7_SIGNED);
219 break;
220 case NID_pkcs7_enveloped:
221 M_ASN1_I2D_put(a->d.enveloped,i2d_PKCS7_ENVELOPE);
222 break;
223 case NID_pkcs7_signedAndEnveloped:
224 M_ASN1_I2D_put(a->d.signed_and_enveloped,
225 i2d_PKCS7_SIGN_ENVELOPE);
226 break;
227 case NID_pkcs7_digest:
228 M_ASN1_I2D_put(a->d.digest,i2d_PKCS7_DIGEST);
229 break;
230 case NID_pkcs7_encrypted:
231 M_ASN1_I2D_put(a->d.encrypted,i2d_PKCS7_ENCRYPT);
232 break;
233 default:
234 M_ASN1_I2D_put(a->d.other,i2d_ASN1_TYPE);
235 break;
236 }
237 }
238 M_ASN1_I2D_finish();
239 }
240
241#endif
242
147PKCS7 *d2i_PKCS7(PKCS7 **a, unsigned char **pp, long length) 243PKCS7 *d2i_PKCS7(PKCS7 **a, unsigned char **pp, long length)
148 { 244 {
149 M_ASN1_D2I_vars(a,PKCS7 *,PKCS7_new); 245 M_ASN1_D2I_vars(a,PKCS7 *,PKCS7_new);
@@ -152,7 +248,7 @@ PKCS7 *d2i_PKCS7(PKCS7 **a, unsigned char **pp, long length)
152 { 248 {
153 if ((*a)->asn1 != NULL) 249 if ((*a)->asn1 != NULL)
154 { 250 {
155 Free((*a)->asn1); 251 OPENSSL_free((*a)->asn1);
156 (*a)->asn1=NULL; 252 (*a)->asn1=NULL;
157 } 253 }
158 (*a)->length=0; 254 (*a)->length=0;
@@ -206,10 +302,8 @@ PKCS7 *d2i_PKCS7(PKCS7 **a, unsigned char **pp, long length)
206 M_ASN1_D2I_get(ret->d.encrypted,d2i_PKCS7_ENCRYPT); 302 M_ASN1_D2I_get(ret->d.encrypted,d2i_PKCS7_ENCRYPT);
207 break; 303 break;
208 default: 304 default:
209 c.error=ASN1_R_BAD_PKCS7_TYPE; 305 M_ASN1_D2I_get(ret->d.other,d2i_ASN1_TYPE);
210 c.line=__LINE__; 306 break;
211 goto err;
212 /* break; */
213 } 307 }
214 if (Tinf == (1|V_ASN1_CONSTRUCTED)) 308 if (Tinf == (1|V_ASN1_CONSTRUCTED))
215 { 309 {
@@ -251,7 +345,7 @@ void PKCS7_free(PKCS7 *a)
251 { 345 {
252 ASN1_OBJECT_free(a->type); 346 ASN1_OBJECT_free(a->type);
253 } 347 }
254 Free(a); 348 OPENSSL_free(a);
255 } 349 }
256 350
257void PKCS7_content_free(PKCS7 *a) 351void PKCS7_content_free(PKCS7 *a)
@@ -259,7 +353,7 @@ void PKCS7_content_free(PKCS7 *a)
259 if(a == NULL) 353 if(a == NULL)
260 return; 354 return;
261 355
262 if (a->asn1 != NULL) Free(a->asn1); 356 if (a->asn1 != NULL) OPENSSL_free(a->asn1);
263 357
264 if (a->d.ptr != NULL) 358 if (a->d.ptr != NULL)
265 { 359 {
@@ -286,10 +380,12 @@ void PKCS7_content_free(PKCS7 *a)
286 PKCS7_ENCRYPT_free(a->d.encrypted); 380 PKCS7_ENCRYPT_free(a->d.encrypted);
287 break; 381 break;
288 default: 382 default:
289 /* MEMORY LEAK */ 383 ASN1_TYPE_free(a->d.other);
290 break; 384 break;
291 } 385 }
292 } 386 }
293 a->d.ptr=NULL; 387 a->d.ptr=NULL;
294 } 388 }
295 389
390IMPLEMENT_STACK_OF(PKCS7)
391IMPLEMENT_ASN1_SET_OF(PKCS7)
diff --git a/src/lib/libcrypto/asn1/p7_recip.c b/src/lib/libcrypto/asn1/p7_recip.c
index b1abfa3b8f..5f6c88a2fa 100644
--- a/src/lib/libcrypto/asn1/p7_recip.c
+++ b/src/lib/libcrypto/asn1/p7_recip.c
@@ -118,7 +118,7 @@ void PKCS7_RECIP_INFO_free(PKCS7_RECIP_INFO *a)
118 X509_ALGOR_free(a->key_enc_algor); 118 X509_ALGOR_free(a->key_enc_algor);
119 M_ASN1_OCTET_STRING_free(a->enc_key); 119 M_ASN1_OCTET_STRING_free(a->enc_key);
120 if (a->cert != NULL) X509_free(a->cert); 120 if (a->cert != NULL) X509_free(a->cert);
121 Free(a); 121 OPENSSL_free(a);
122 } 122 }
123 123
124IMPLEMENT_STACK_OF(PKCS7_RECIP_INFO) 124IMPLEMENT_STACK_OF(PKCS7_RECIP_INFO)
diff --git a/src/lib/libcrypto/asn1/p7_s_e.c b/src/lib/libcrypto/asn1/p7_s_e.c
index 3d18fedf8e..709eb24b27 100644
--- a/src/lib/libcrypto/asn1/p7_s_e.c
+++ b/src/lib/libcrypto/asn1/p7_s_e.c
@@ -140,6 +140,6 @@ void PKCS7_SIGN_ENVELOPE_free(PKCS7_SIGN_ENVELOPE *a)
140 sk_X509_pop_free(a->cert,X509_free); 140 sk_X509_pop_free(a->cert,X509_free);
141 sk_X509_CRL_pop_free(a->crl,X509_CRL_free); 141 sk_X509_CRL_pop_free(a->crl,X509_CRL_free);
142 sk_PKCS7_SIGNER_INFO_pop_free(a->signer_info,PKCS7_SIGNER_INFO_free); 142 sk_PKCS7_SIGNER_INFO_pop_free(a->signer_info,PKCS7_SIGNER_INFO_free);
143 Free(a); 143 OPENSSL_free(a);
144 } 144 }
145 145
diff --git a/src/lib/libcrypto/asn1/p7_signd.c b/src/lib/libcrypto/asn1/p7_signd.c
index f6f16a8715..c835f5475f 100644
--- a/src/lib/libcrypto/asn1/p7_signd.c
+++ b/src/lib/libcrypto/asn1/p7_signd.c
@@ -131,5 +131,5 @@ void PKCS7_SIGNED_free(PKCS7_SIGNED *a)
131 sk_X509_pop_free(a->cert,X509_free); 131 sk_X509_pop_free(a->cert,X509_free);
132 sk_X509_CRL_pop_free(a->crl,X509_CRL_free); 132 sk_X509_CRL_pop_free(a->crl,X509_CRL_free);
133 sk_PKCS7_SIGNER_INFO_pop_free(a->signer_info,PKCS7_SIGNER_INFO_free); 133 sk_PKCS7_SIGNER_INFO_pop_free(a->signer_info,PKCS7_SIGNER_INFO_free);
134 Free(a); 134 OPENSSL_free(a);
135 } 135 }
diff --git a/src/lib/libcrypto/asn1/p7_signi.c b/src/lib/libcrypto/asn1/p7_signi.c
index f74658ffe6..248bf00945 100644
--- a/src/lib/libcrypto/asn1/p7_signi.c
+++ b/src/lib/libcrypto/asn1/p7_signi.c
@@ -143,7 +143,7 @@ void PKCS7_SIGNER_INFO_free(PKCS7_SIGNER_INFO *a)
143 sk_X509_ATTRIBUTE_pop_free(a->unauth_attr,X509_ATTRIBUTE_free); 143 sk_X509_ATTRIBUTE_pop_free(a->unauth_attr,X509_ATTRIBUTE_free);
144 if (a->pkey != NULL) 144 if (a->pkey != NULL)
145 EVP_PKEY_free(a->pkey); 145 EVP_PKEY_free(a->pkey);
146 Free(a); 146 OPENSSL_free(a);
147 } 147 }
148 148
149IMPLEMENT_STACK_OF(PKCS7_SIGNER_INFO) 149IMPLEMENT_STACK_OF(PKCS7_SIGNER_INFO)
diff --git a/src/lib/libcrypto/asn1/p8_key.c b/src/lib/libcrypto/asn1/p8_key.c
index 0b24374627..3a31248e14 100644
--- a/src/lib/libcrypto/asn1/p8_key.c
+++ b/src/lib/libcrypto/asn1/p8_key.c
@@ -94,7 +94,7 @@ X509 *X509_KEY_new(void)
94 { 94 {
95 X509_KEY *ret=NULL; 95 X509_KEY *ret=NULL;
96 96
97 M_ASN1_New_Malloc(ret,X509_KEY); 97 M_ASN1_New_OPENSSL_malloc(ret,X509_KEY);
98 ret->references=1; 98 ret->references=1;
99 ret->type=NID 99 ret->type=NID
100 M_ASN1_New(ret->cert_info,X509_CINF_new); 100 M_ASN1_New(ret->cert_info,X509_CINF_new);
@@ -126,6 +126,6 @@ void X509_KEY_free(X509 *a)
126 X509_CINF_free(a->cert_info); 126 X509_CINF_free(a->cert_info);
127 X509_ALGOR_free(a->sig_alg); 127 X509_ALGOR_free(a->sig_alg);
128 ASN1_BIT_STRING_free(a->signature); 128 ASN1_BIT_STRING_free(a->signature);
129 Free(a); 129 OPENSSL_free(a);
130 } 130 }
131 131
diff --git a/src/lib/libcrypto/asn1/p8_pkey.c b/src/lib/libcrypto/asn1/p8_pkey.c
index 59cfbe7f28..fa6cbfb6f8 100644
--- a/src/lib/libcrypto/asn1/p8_pkey.c
+++ b/src/lib/libcrypto/asn1/p8_pkey.c
@@ -123,5 +123,5 @@ void PKCS8_PRIV_KEY_INFO_free (PKCS8_PRIV_KEY_INFO *a)
123 0, a->pkey->value.octet_string->length); 123 0, a->pkey->value.octet_string->length);
124 ASN1_TYPE_free (a->pkey); 124 ASN1_TYPE_free (a->pkey);
125 sk_X509_ATTRIBUTE_pop_free (a->attributes, X509_ATTRIBUTE_free); 125 sk_X509_ATTRIBUTE_pop_free (a->attributes, X509_ATTRIBUTE_free);
126 Free (a); 126 OPENSSL_free (a);
127} 127}
diff --git a/src/lib/libcrypto/asn1/t_pkey.c b/src/lib/libcrypto/asn1/t_pkey.c
index e570ed1c47..ae18da96e3 100644
--- a/src/lib/libcrypto/asn1/t_pkey.c
+++ b/src/lib/libcrypto/asn1/t_pkey.c
@@ -99,7 +99,7 @@ int RSA_print(BIO *bp, RSA *x, int off)
99 int i,ret=0; 99 int i,ret=0;
100 100
101 i=RSA_size(x); 101 i=RSA_size(x);
102 m=(unsigned char *)Malloc((unsigned int)i+10); 102 m=(unsigned char *)OPENSSL_malloc((unsigned int)i+10);
103 if (m == NULL) 103 if (m == NULL)
104 { 104 {
105 RSAerr(RSA_F_RSA_PRINT,ERR_R_MALLOC_FAILURE); 105 RSAerr(RSA_F_RSA_PRINT,ERR_R_MALLOC_FAILURE);
@@ -133,7 +133,7 @@ int RSA_print(BIO *bp, RSA *x, int off)
133 if (!print(bp,"coefficient:",x->iqmp,m,off)) goto err; 133 if (!print(bp,"coefficient:",x->iqmp,m,off)) goto err;
134 ret=1; 134 ret=1;
135err: 135err:
136 if (m != NULL) Free(m); 136 if (m != NULL) OPENSSL_free(m);
137 return(ret); 137 return(ret);
138 } 138 }
139#endif /* NO_RSA */ 139#endif /* NO_RSA */
@@ -176,7 +176,7 @@ int DSA_print(BIO *bp, DSA *x, int off)
176 i=BN_num_bytes(bn)*2; 176 i=BN_num_bytes(bn)*2;
177 else 177 else
178 i=256; 178 i=256;
179 m=(unsigned char *)Malloc((unsigned int)i+10); 179 m=(unsigned char *)OPENSSL_malloc((unsigned int)i+10);
180 if (m == NULL) 180 if (m == NULL)
181 { 181 {
182 DSAerr(DSA_F_DSA_PRINT,ERR_R_MALLOC_FAILURE); 182 DSAerr(DSA_F_DSA_PRINT,ERR_R_MALLOC_FAILURE);
@@ -204,7 +204,7 @@ int DSA_print(BIO *bp, DSA *x, int off)
204 if ((x->g != NULL) && !print(bp,"G: ",x->g,m,off)) goto err; 204 if ((x->g != NULL) && !print(bp,"G: ",x->g,m,off)) goto err;
205 ret=1; 205 ret=1;
206err: 206err:
207 if (m != NULL) Free(m); 207 if (m != NULL) OPENSSL_free(m);
208 return(ret); 208 return(ret);
209 } 209 }
210#endif /* !NO_DSA */ 210#endif /* !NO_DSA */
@@ -284,7 +284,7 @@ int DHparams_print(BIO *bp, DH *x)
284 int reason=ERR_R_BUF_LIB,i,ret=0; 284 int reason=ERR_R_BUF_LIB,i,ret=0;
285 285
286 i=BN_num_bytes(x->p); 286 i=BN_num_bytes(x->p);
287 m=(unsigned char *)Malloc((unsigned int)i+10); 287 m=(unsigned char *)OPENSSL_malloc((unsigned int)i+10);
288 if (m == NULL) 288 if (m == NULL)
289 { 289 {
290 reason=ERR_R_MALLOC_FAILURE; 290 reason=ERR_R_MALLOC_FAILURE;
@@ -307,7 +307,7 @@ int DHparams_print(BIO *bp, DH *x)
307err: 307err:
308 DHerr(DH_F_DHPARAMS_PRINT,reason); 308 DHerr(DH_F_DHPARAMS_PRINT,reason);
309 } 309 }
310 if (m != NULL) Free(m); 310 if (m != NULL) OPENSSL_free(m);
311 return(ret); 311 return(ret);
312 } 312 }
313#endif 313#endif
@@ -337,7 +337,7 @@ int DSAparams_print(BIO *bp, DSA *x)
337 int reason=ERR_R_BUF_LIB,i,ret=0; 337 int reason=ERR_R_BUF_LIB,i,ret=0;
338 338
339 i=BN_num_bytes(x->p); 339 i=BN_num_bytes(x->p);
340 m=(unsigned char *)Malloc((unsigned int)i+10); 340 m=(unsigned char *)OPENSSL_malloc((unsigned int)i+10);
341 if (m == NULL) 341 if (m == NULL)
342 { 342 {
343 reason=ERR_R_MALLOC_FAILURE; 343 reason=ERR_R_MALLOC_FAILURE;
@@ -352,7 +352,7 @@ int DSAparams_print(BIO *bp, DSA *x)
352 if (!print(bp,"g:",x->g,m,4)) goto err; 352 if (!print(bp,"g:",x->g,m,4)) goto err;
353 ret=1; 353 ret=1;
354err: 354err:
355 if (m != NULL) Free(m); 355 if (m != NULL) OPENSSL_free(m);
356 DSAerr(DSA_F_DSAPARAMS_PRINT,reason); 356 DSAerr(DSA_F_DSAPARAMS_PRINT,reason);
357 return(ret); 357 return(ret);
358 } 358 }
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c
index 6ee1065ce9..314bdfb1c7 100644
--- a/src/lib/libcrypto/asn1/t_x509.c
+++ b/src/lib/libcrypto/asn1/t_x509.c
@@ -223,7 +223,7 @@ int X509_print(BIO *bp, X509 *x)
223 ret=1; 223 ret=1;
224err: 224err:
225 if (str != NULL) ASN1_STRING_free(str); 225 if (str != NULL) ASN1_STRING_free(str);
226 if (m != NULL) Free(m); 226 if (m != NULL) OPENSSL_free(m);
227 return(ret); 227 return(ret);
228 } 228 }
229 229
diff --git a/src/lib/libcrypto/asn1/t_x509a.c b/src/lib/libcrypto/asn1/t_x509a.c
index a18ebb586c..f06af5b576 100644
--- a/src/lib/libcrypto/asn1/t_x509a.c
+++ b/src/lib/libcrypto/asn1/t_x509a.c
@@ -98,5 +98,13 @@ int X509_CERT_AUX_print(BIO *out, X509_CERT_AUX *aux, int indent)
98 } else BIO_printf(out, "%*sNo Rejected Uses.\n", indent, ""); 98 } else BIO_printf(out, "%*sNo Rejected Uses.\n", indent, "");
99 if(aux->alias) BIO_printf(out, "%*sAlias: %s\n", indent, "", 99 if(aux->alias) BIO_printf(out, "%*sAlias: %s\n", indent, "",
100 aux->alias->data); 100 aux->alias->data);
101 if(aux->keyid) {
102 BIO_printf(out, "%*sKey Id: ", indent, "");
103 for(i = 0; i < aux->keyid->length; i++)
104 BIO_printf(out, "%s%02X",
105 i ? ":" : "",
106 aux->keyid->data[i]);
107 BIO_write(out,"\n",1);
108 }
101 return 1; 109 return 1;
102} 110}
diff --git a/src/lib/libcrypto/asn1/x_algor.c b/src/lib/libcrypto/asn1/x_algor.c
index fe023842f8..853a8dfeef 100644
--- a/src/lib/libcrypto/asn1/x_algor.c
+++ b/src/lib/libcrypto/asn1/x_algor.c
@@ -111,7 +111,7 @@ void X509_ALGOR_free(X509_ALGOR *a)
111 if (a == NULL) return; 111 if (a == NULL) return;
112 ASN1_OBJECT_free(a->algorithm); 112 ASN1_OBJECT_free(a->algorithm);
113 ASN1_TYPE_free(a->parameter); 113 ASN1_TYPE_free(a->parameter);
114 Free(a); 114 OPENSSL_free(a);
115 } 115 }
116 116
117IMPLEMENT_STACK_OF(X509_ALGOR) 117IMPLEMENT_STACK_OF(X509_ALGOR)
diff --git a/src/lib/libcrypto/asn1/x_attrib.c b/src/lib/libcrypto/asn1/x_attrib.c
index a874df79db..14e5ea27aa 100644
--- a/src/lib/libcrypto/asn1/x_attrib.c
+++ b/src/lib/libcrypto/asn1/x_attrib.c
@@ -160,6 +160,6 @@ void X509_ATTRIBUTE_free(X509_ATTRIBUTE *a)
160 sk_ASN1_TYPE_pop_free(a->value.set,ASN1_TYPE_free); 160 sk_ASN1_TYPE_pop_free(a->value.set,ASN1_TYPE_free);
161 else 161 else
162 ASN1_TYPE_free(a->value.single); 162 ASN1_TYPE_free(a->value.single);
163 Free(a); 163 OPENSSL_free(a);
164 } 164 }
165 165
diff --git a/src/lib/libcrypto/asn1/x_cinf.c b/src/lib/libcrypto/asn1/x_cinf.c
index b87c8fff17..339a110eef 100644
--- a/src/lib/libcrypto/asn1/x_cinf.c
+++ b/src/lib/libcrypto/asn1/x_cinf.c
@@ -196,6 +196,6 @@ void X509_CINF_free(X509_CINF *a)
196 M_ASN1_BIT_STRING_free(a->issuerUID); 196 M_ASN1_BIT_STRING_free(a->issuerUID);
197 M_ASN1_BIT_STRING_free(a->subjectUID); 197 M_ASN1_BIT_STRING_free(a->subjectUID);
198 sk_X509_EXTENSION_pop_free(a->extensions,X509_EXTENSION_free); 198 sk_X509_EXTENSION_pop_free(a->extensions,X509_EXTENSION_free);
199 Free(a); 199 OPENSSL_free(a);
200 } 200 }
201 201
diff --git a/src/lib/libcrypto/asn1/x_crl.c b/src/lib/libcrypto/asn1/x_crl.c
index 12a42d04c7..1f302d0e01 100644
--- a/src/lib/libcrypto/asn1/x_crl.c
+++ b/src/lib/libcrypto/asn1/x_crl.c
@@ -61,8 +61,10 @@
61#include <openssl/asn1_mac.h> 61#include <openssl/asn1_mac.h>
62#include <openssl/x509.h> 62#include <openssl/x509.h>
63 63
64static int X509_REVOKED_cmp(X509_REVOKED **a,X509_REVOKED **b); 64static int X509_REVOKED_cmp(const X509_REVOKED * const *a,
65static int X509_REVOKED_seq_cmp(X509_REVOKED **a,X509_REVOKED **b); 65 const X509_REVOKED * const *b);
66static int X509_REVOKED_seq_cmp(const X509_REVOKED * const *a,
67 const X509_REVOKED * const *b);
66int i2d_X509_REVOKED(X509_REVOKED *a, unsigned char **pp) 68int i2d_X509_REVOKED(X509_REVOKED *a, unsigned char **pp)
67 { 69 {
68 M_ASN1_I2D_vars(a); 70 M_ASN1_I2D_vars(a);
@@ -100,7 +102,8 @@ int i2d_X509_CRL_INFO(X509_CRL_INFO *a, unsigned char **pp)
100 { 102 {
101 int v1=0; 103 int v1=0;
102 long l=0; 104 long l=0;
103 int (*old_cmp)(X509_REVOKED **,X509_REVOKED **); 105 int (*old_cmp)(const X509_REVOKED * const *,
106 const X509_REVOKED * const *);
104 M_ASN1_I2D_vars(a); 107 M_ASN1_I2D_vars(a);
105 108
106 old_cmp=sk_X509_REVOKED_set_cmp_func(a->revoked,X509_REVOKED_seq_cmp); 109 old_cmp=sk_X509_REVOKED_set_cmp_func(a->revoked,X509_REVOKED_seq_cmp);
@@ -283,7 +286,7 @@ void X509_REVOKED_free(X509_REVOKED *a)
283 M_ASN1_INTEGER_free(a->serialNumber); 286 M_ASN1_INTEGER_free(a->serialNumber);
284 M_ASN1_UTCTIME_free(a->revocationDate); 287 M_ASN1_UTCTIME_free(a->revocationDate);
285 sk_X509_EXTENSION_pop_free(a->extensions,X509_EXTENSION_free); 288 sk_X509_EXTENSION_pop_free(a->extensions,X509_EXTENSION_free);
286 Free(a); 289 OPENSSL_free(a);
287 } 290 }
288 291
289void X509_CRL_INFO_free(X509_CRL_INFO *a) 292void X509_CRL_INFO_free(X509_CRL_INFO *a)
@@ -297,7 +300,7 @@ void X509_CRL_INFO_free(X509_CRL_INFO *a)
297 M_ASN1_UTCTIME_free(a->nextUpdate); 300 M_ASN1_UTCTIME_free(a->nextUpdate);
298 sk_X509_REVOKED_pop_free(a->revoked,X509_REVOKED_free); 301 sk_X509_REVOKED_pop_free(a->revoked,X509_REVOKED_free);
299 sk_X509_EXTENSION_pop_free(a->extensions,X509_EXTENSION_free); 302 sk_X509_EXTENSION_pop_free(a->extensions,X509_EXTENSION_free);
300 Free(a); 303 OPENSSL_free(a);
301 } 304 }
302 305
303void X509_CRL_free(X509_CRL *a) 306void X509_CRL_free(X509_CRL *a)
@@ -322,17 +325,19 @@ void X509_CRL_free(X509_CRL *a)
322 X509_CRL_INFO_free(a->crl); 325 X509_CRL_INFO_free(a->crl);
323 X509_ALGOR_free(a->sig_alg); 326 X509_ALGOR_free(a->sig_alg);
324 M_ASN1_BIT_STRING_free(a->signature); 327 M_ASN1_BIT_STRING_free(a->signature);
325 Free(a); 328 OPENSSL_free(a);
326 } 329 }
327 330
328static int X509_REVOKED_cmp(X509_REVOKED **a, X509_REVOKED **b) 331static int X509_REVOKED_cmp(const X509_REVOKED * const *a,
332 const X509_REVOKED * const *b)
329 { 333 {
330 return(ASN1_STRING_cmp( 334 return(ASN1_STRING_cmp(
331 (ASN1_STRING *)(*a)->serialNumber, 335 (ASN1_STRING *)(*a)->serialNumber,
332 (ASN1_STRING *)(*b)->serialNumber)); 336 (ASN1_STRING *)(*b)->serialNumber));
333 } 337 }
334 338
335static int X509_REVOKED_seq_cmp(X509_REVOKED **a, X509_REVOKED **b) 339static int X509_REVOKED_seq_cmp(const X509_REVOKED * const *a,
340 const X509_REVOKED * const *b)
336 { 341 {
337 return((*a)->sequence-(*b)->sequence); 342 return((*a)->sequence-(*b)->sequence);
338 } 343 }
diff --git a/src/lib/libcrypto/asn1/x_exten.c b/src/lib/libcrypto/asn1/x_exten.c
index 185cbd78a0..fbfd963b40 100644
--- a/src/lib/libcrypto/asn1/x_exten.c
+++ b/src/lib/libcrypto/asn1/x_exten.c
@@ -134,6 +134,6 @@ void X509_EXTENSION_free(X509_EXTENSION *a)
134 if (a == NULL) return; 134 if (a == NULL) return;
135 ASN1_OBJECT_free(a->object); 135 ASN1_OBJECT_free(a->object);
136 M_ASN1_OCTET_STRING_free(a->value); 136 M_ASN1_OCTET_STRING_free(a->value);
137 Free(a); 137 OPENSSL_free(a);
138 } 138 }
139 139
diff --git a/src/lib/libcrypto/asn1/x_info.c b/src/lib/libcrypto/asn1/x_info.c
index 7fdc6f9dc8..5e62fc2f6f 100644
--- a/src/lib/libcrypto/asn1/x_info.c
+++ b/src/lib/libcrypto/asn1/x_info.c
@@ -66,7 +66,7 @@ X509_INFO *X509_INFO_new(void)
66 { 66 {
67 X509_INFO *ret=NULL; 67 X509_INFO *ret=NULL;
68 68
69 ret=(X509_INFO *)Malloc(sizeof(X509_INFO)); 69 ret=(X509_INFO *)OPENSSL_malloc(sizeof(X509_INFO));
70 if (ret == NULL) 70 if (ret == NULL)
71 { 71 {
72 ASN1err(ASN1_F_X509_INFO_NEW,ERR_R_MALLOC_FAILURE); 72 ASN1err(ASN1_F_X509_INFO_NEW,ERR_R_MALLOC_FAILURE);
@@ -106,8 +106,8 @@ void X509_INFO_free(X509_INFO *x)
106 if (x->x509 != NULL) X509_free(x->x509); 106 if (x->x509 != NULL) X509_free(x->x509);
107 if (x->crl != NULL) X509_CRL_free(x->crl); 107 if (x->crl != NULL) X509_CRL_free(x->crl);
108 if (x->x_pkey != NULL) X509_PKEY_free(x->x_pkey); 108 if (x->x_pkey != NULL) X509_PKEY_free(x->x_pkey);
109 if (x->enc_data != NULL) Free(x->enc_data); 109 if (x->enc_data != NULL) OPENSSL_free(x->enc_data);
110 Free(x); 110 OPENSSL_free(x);
111 } 111 }
112 112
113IMPLEMENT_STACK_OF(X509_INFO) 113IMPLEMENT_STACK_OF(X509_INFO)
diff --git a/src/lib/libcrypto/asn1/x_name.c b/src/lib/libcrypto/asn1/x_name.c
index 64baf5719d..b832deb928 100644
--- a/src/lib/libcrypto/asn1/x_name.c
+++ b/src/lib/libcrypto/asn1/x_name.c
@@ -217,7 +217,7 @@ X509_NAME *X509_NAME_new(void)
217 ASN1_CTX c; 217 ASN1_CTX c;
218 218
219 M_ASN1_New_Malloc(ret,X509_NAME); 219 M_ASN1_New_Malloc(ret,X509_NAME);
220 if ((ret->entries=sk_X509_NAME_ENTRY_new(NULL)) == NULL) 220 if ((ret->entries=sk_X509_NAME_ENTRY_new_null()) == NULL)
221 { c.line=__LINE__; goto err2; } 221 { c.line=__LINE__; goto err2; }
222 M_ASN1_New(ret->bytes,BUF_MEM_new); 222 M_ASN1_New(ret->bytes,BUF_MEM_new);
223 ret->modified=1; 223 ret->modified=1;
@@ -246,7 +246,7 @@ void X509_NAME_free(X509_NAME *a)
246 246
247 BUF_MEM_free(a->bytes); 247 BUF_MEM_free(a->bytes);
248 sk_X509_NAME_ENTRY_pop_free(a->entries,X509_NAME_ENTRY_free); 248 sk_X509_NAME_ENTRY_pop_free(a->entries,X509_NAME_ENTRY_free);
249 Free(a); 249 OPENSSL_free(a);
250 } 250 }
251 251
252void X509_NAME_ENTRY_free(X509_NAME_ENTRY *a) 252void X509_NAME_ENTRY_free(X509_NAME_ENTRY *a)
@@ -254,7 +254,7 @@ void X509_NAME_ENTRY_free(X509_NAME_ENTRY *a)
254 if (a == NULL) return; 254 if (a == NULL) return;
255 ASN1_OBJECT_free(a->object); 255 ASN1_OBJECT_free(a->object);
256 M_ASN1_BIT_STRING_free(a->value); 256 M_ASN1_BIT_STRING_free(a->value);
257 Free(a); 257 OPENSSL_free(a);
258 } 258 }
259 259
260int X509_NAME_set(X509_NAME **xn, X509_NAME *name) 260int X509_NAME_set(X509_NAME **xn, X509_NAME *name)
diff --git a/src/lib/libcrypto/asn1/x_pkey.c b/src/lib/libcrypto/asn1/x_pkey.c
index fe58919dbb..f1c6221ac3 100644
--- a/src/lib/libcrypto/asn1/x_pkey.c
+++ b/src/lib/libcrypto/asn1/x_pkey.c
@@ -146,6 +146,6 @@ void X509_PKEY_free(X509_PKEY *x)
146 if (x->enc_algor != NULL) X509_ALGOR_free(x->enc_algor); 146 if (x->enc_algor != NULL) X509_ALGOR_free(x->enc_algor);
147 if (x->enc_pkey != NULL) M_ASN1_OCTET_STRING_free(x->enc_pkey); 147 if (x->enc_pkey != NULL) M_ASN1_OCTET_STRING_free(x->enc_pkey);
148 if (x->dec_pkey != NULL)EVP_PKEY_free(x->dec_pkey); 148 if (x->dec_pkey != NULL)EVP_PKEY_free(x->dec_pkey);
149 if ((x->key_data != NULL) && (x->key_free)) Free(x->key_data); 149 if ((x->key_data != NULL) && (x->key_free)) OPENSSL_free(x->key_data);
150 Free(x); 150 OPENSSL_free(x);
151 } 151 }
diff --git a/src/lib/libcrypto/asn1/x_pubkey.c b/src/lib/libcrypto/asn1/x_pubkey.c
index 7a05d575c9..b2e2a51477 100644
--- a/src/lib/libcrypto/asn1/x_pubkey.c
+++ b/src/lib/libcrypto/asn1/x_pubkey.c
@@ -112,7 +112,7 @@ void X509_PUBKEY_free(X509_PUBKEY *a)
112 X509_ALGOR_free(a->algor); 112 X509_ALGOR_free(a->algor);
113 M_ASN1_BIT_STRING_free(a->public_key); 113 M_ASN1_BIT_STRING_free(a->public_key);
114 if (a->pkey != NULL) EVP_PKEY_free(a->pkey); 114 if (a->pkey != NULL) EVP_PKEY_free(a->pkey);
115 Free(a); 115 OPENSSL_free(a);
116 } 116 }
117 117
118int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey) 118int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
@@ -156,14 +156,14 @@ int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
156 dsa->write_params=0; 156 dsa->write_params=0;
157 ASN1_TYPE_free(a->parameter); 157 ASN1_TYPE_free(a->parameter);
158 i=i2d_DSAparams(dsa,NULL); 158 i=i2d_DSAparams(dsa,NULL);
159 p=(unsigned char *)Malloc(i); 159 p=(unsigned char *)OPENSSL_malloc(i);
160 pp=p; 160 pp=p;
161 i2d_DSAparams(dsa,&pp); 161 i2d_DSAparams(dsa,&pp);
162 a->parameter=ASN1_TYPE_new(); 162 a->parameter=ASN1_TYPE_new();
163 a->parameter->type=V_ASN1_SEQUENCE; 163 a->parameter->type=V_ASN1_SEQUENCE;
164 a->parameter->value.sequence=ASN1_STRING_new(); 164 a->parameter->value.sequence=ASN1_STRING_new();
165 ASN1_STRING_set(a->parameter->value.sequence,p,i); 165 ASN1_STRING_set(a->parameter->value.sequence,p,i);
166 Free(p); 166 OPENSSL_free(p);
167 } 167 }
168 else 168 else
169#endif 169#endif
@@ -173,7 +173,7 @@ int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
173 } 173 }
174 174
175 if ((i=i2d_PublicKey(pkey,NULL)) <= 0) goto err; 175 if ((i=i2d_PublicKey(pkey,NULL)) <= 0) goto err;
176 if ((s=(unsigned char *)Malloc(i+1)) == NULL) goto err; 176 if ((s=(unsigned char *)OPENSSL_malloc(i+1)) == NULL) goto err;
177 p=s; 177 p=s;
178 i2d_PublicKey(pkey,&p); 178 i2d_PublicKey(pkey,&p);
179 if (!M_ASN1_BIT_STRING_set(pk->public_key,s,i)) goto err; 179 if (!M_ASN1_BIT_STRING_set(pk->public_key,s,i)) goto err;
@@ -181,7 +181,7 @@ int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
181 pk->public_key->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); 181 pk->public_key->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07);
182 pk->public_key->flags|=ASN1_STRING_FLAG_BITS_LEFT; 182 pk->public_key->flags|=ASN1_STRING_FLAG_BITS_LEFT;
183 183
184 Free(s); 184 OPENSSL_free(s);
185 185
186#if 0 186#if 0
187 CRYPTO_add(&pkey->references,1,CRYPTO_LOCK_EVP_PKEY); 187 CRYPTO_add(&pkey->references,1,CRYPTO_LOCK_EVP_PKEY);
diff --git a/src/lib/libcrypto/asn1/x_req.c b/src/lib/libcrypto/asn1/x_req.c
index 0cd572ee73..6dddd4f653 100644
--- a/src/lib/libcrypto/asn1/x_req.c
+++ b/src/lib/libcrypto/asn1/x_req.c
@@ -65,6 +65,14 @@ int i2d_X509_REQ_INFO(X509_REQ_INFO *a, unsigned char **pp)
65 { 65 {
66 M_ASN1_I2D_vars(a); 66 M_ASN1_I2D_vars(a);
67 67
68 if(a->asn1) {
69 if(pp) {
70 memcpy(*pp, a->asn1, a->length);
71 *pp += a->length;
72 }
73 return a->length;
74 }
75
68 M_ASN1_I2D_len(a->version, i2d_ASN1_INTEGER); 76 M_ASN1_I2D_len(a->version, i2d_ASN1_INTEGER);
69 M_ASN1_I2D_len(a->subject, i2d_X509_NAME); 77 M_ASN1_I2D_len(a->subject, i2d_X509_NAME);
70 M_ASN1_I2D_len(a->pubkey, i2d_X509_PUBKEY); 78 M_ASN1_I2D_len(a->pubkey, i2d_X509_PUBKEY);
@@ -152,6 +160,7 @@ X509_REQ_INFO *X509_REQ_INFO_new(void)
152 M_ASN1_New(ret->pubkey,X509_PUBKEY_new); 160 M_ASN1_New(ret->pubkey,X509_PUBKEY_new);
153 M_ASN1_New(ret->attributes,sk_X509_ATTRIBUTE_new_null); 161 M_ASN1_New(ret->attributes,sk_X509_ATTRIBUTE_new_null);
154 ret->req_kludge=0; 162 ret->req_kludge=0;
163 ret->asn1 = NULL;
155 return(ret); 164 return(ret);
156 M_ASN1_New_Error(ASN1_F_X509_REQ_INFO_NEW); 165 M_ASN1_New_Error(ASN1_F_X509_REQ_INFO_NEW);
157 } 166 }
@@ -159,11 +168,12 @@ X509_REQ_INFO *X509_REQ_INFO_new(void)
159void X509_REQ_INFO_free(X509_REQ_INFO *a) 168void X509_REQ_INFO_free(X509_REQ_INFO *a)
160 { 169 {
161 if (a == NULL) return; 170 if (a == NULL) return;
171 if(a->asn1) OPENSSL_free(a->asn1);
162 M_ASN1_INTEGER_free(a->version); 172 M_ASN1_INTEGER_free(a->version);
163 X509_NAME_free(a->subject); 173 X509_NAME_free(a->subject);
164 X509_PUBKEY_free(a->pubkey); 174 X509_PUBKEY_free(a->pubkey);
165 sk_X509_ATTRIBUTE_pop_free(a->attributes,X509_ATTRIBUTE_free); 175 sk_X509_ATTRIBUTE_pop_free(a->attributes,X509_ATTRIBUTE_free);
166 Free(a); 176 OPENSSL_free(a);
167 } 177 }
168 178
169int i2d_X509_REQ(X509_REQ *a, unsigned char **pp) 179int i2d_X509_REQ(X509_REQ *a, unsigned char **pp)
@@ -189,6 +199,17 @@ X509_REQ *d2i_X509_REQ(X509_REQ **a, unsigned char **pp, long length)
189 M_ASN1_D2I_Init(); 199 M_ASN1_D2I_Init();
190 M_ASN1_D2I_start_sequence(); 200 M_ASN1_D2I_start_sequence();
191 M_ASN1_D2I_get(ret->req_info,d2i_X509_REQ_INFO); 201 M_ASN1_D2I_get(ret->req_info,d2i_X509_REQ_INFO);
202
203 /* Keep a copy of the original encoding for signature checking */
204 ret->req_info->length = c.p - c.q;
205 if(!(ret->req_info->asn1 = OPENSSL_malloc(ret->req_info->length))) {
206 c.line=__LINE__;
207 c.error = ERR_R_MALLOC_FAILURE;
208 goto err;
209 }
210
211 memcpy(ret->req_info->asn1, c.q, ret->req_info->length);
212
192 M_ASN1_D2I_get(ret->sig_alg,d2i_X509_ALGOR); 213 M_ASN1_D2I_get(ret->sig_alg,d2i_X509_ALGOR);
193 M_ASN1_D2I_get(ret->signature,d2i_ASN1_BIT_STRING); 214 M_ASN1_D2I_get(ret->signature,d2i_ASN1_BIT_STRING);
194 M_ASN1_D2I_Finish(a,X509_REQ_free,ASN1_F_D2I_X509_REQ); 215 M_ASN1_D2I_Finish(a,X509_REQ_free,ASN1_F_D2I_X509_REQ);
@@ -230,7 +251,7 @@ void X509_REQ_free(X509_REQ *a)
230 X509_REQ_INFO_free(a->req_info); 251 X509_REQ_INFO_free(a->req_info);
231 X509_ALGOR_free(a->sig_alg); 252 X509_ALGOR_free(a->sig_alg);
232 M_ASN1_BIT_STRING_free(a->signature); 253 M_ASN1_BIT_STRING_free(a->signature);
233 Free(a); 254 OPENSSL_free(a);
234 } 255 }
235 256
236 257
diff --git a/src/lib/libcrypto/asn1/x_sig.c b/src/lib/libcrypto/asn1/x_sig.c
index 3559bd5368..d79f147647 100644
--- a/src/lib/libcrypto/asn1/x_sig.c
+++ b/src/lib/libcrypto/asn1/x_sig.c
@@ -104,7 +104,7 @@ void X509_SIG_free(X509_SIG *a)
104 if (a == NULL) return; 104 if (a == NULL) return;
105 X509_ALGOR_free(a->algor); 105 X509_ALGOR_free(a->algor);
106 M_ASN1_OCTET_STRING_free(a->digest); 106 M_ASN1_OCTET_STRING_free(a->digest);
107 Free(a); 107 OPENSSL_free(a);
108 } 108 }
109 109
110 110
diff --git a/src/lib/libcrypto/asn1/x_spki.c b/src/lib/libcrypto/asn1/x_spki.c
index 8f5e7e6380..4f01888f7d 100644
--- a/src/lib/libcrypto/asn1/x_spki.c
+++ b/src/lib/libcrypto/asn1/x_spki.c
@@ -109,7 +109,7 @@ void NETSCAPE_SPKAC_free(NETSCAPE_SPKAC *a)
109 if (a == NULL) return; 109 if (a == NULL) return;
110 X509_PUBKEY_free(a->pubkey); 110 X509_PUBKEY_free(a->pubkey);
111 M_ASN1_IA5STRING_free(a->challenge); 111 M_ASN1_IA5STRING_free(a->challenge);
112 Free(a); 112 OPENSSL_free(a);
113 } 113 }
114 114
115int i2d_NETSCAPE_SPKI(NETSCAPE_SPKI *a, unsigned char **pp) 115int i2d_NETSCAPE_SPKI(NETSCAPE_SPKI *a, unsigned char **pp)
@@ -161,6 +161,6 @@ void NETSCAPE_SPKI_free(NETSCAPE_SPKI *a)
161 NETSCAPE_SPKAC_free(a->spkac); 161 NETSCAPE_SPKAC_free(a->spkac);
162 X509_ALGOR_free(a->sig_algor); 162 X509_ALGOR_free(a->sig_algor);
163 M_ASN1_BIT_STRING_free(a->signature); 163 M_ASN1_BIT_STRING_free(a->signature);
164 Free(a); 164 OPENSSL_free(a);
165 } 165 }
166 166
diff --git a/src/lib/libcrypto/asn1/x_val.c b/src/lib/libcrypto/asn1/x_val.c
index 1a2f49ffdf..0f8f020b57 100644
--- a/src/lib/libcrypto/asn1/x_val.c
+++ b/src/lib/libcrypto/asn1/x_val.c
@@ -104,6 +104,6 @@ void X509_VAL_free(X509_VAL *a)
104 if (a == NULL) return; 104 if (a == NULL) return;
105 M_ASN1_TIME_free(a->notBefore); 105 M_ASN1_TIME_free(a->notBefore);
106 M_ASN1_TIME_free(a->notAfter); 106 M_ASN1_TIME_free(a->notAfter);
107 Free(a); 107 OPENSSL_free(a);
108 } 108 }
109 109
diff --git a/src/lib/libcrypto/asn1/x_x509.c b/src/lib/libcrypto/asn1/x_x509.c
index 11e564ea30..61ba856b17 100644
--- a/src/lib/libcrypto/asn1/x_x509.c
+++ b/src/lib/libcrypto/asn1/x_x509.c
@@ -61,6 +61,7 @@
61#include <openssl/evp.h> 61#include <openssl/evp.h>
62#include <openssl/asn1_mac.h> 62#include <openssl/asn1_mac.h>
63#include <openssl/x509.h> 63#include <openssl/x509.h>
64#include <openssl/x509v3.h>
64 65
65static int x509_meth_num = 0; 66static int x509_meth_num = 0;
66static STACK_OF(CRYPTO_EX_DATA_FUNCS) *x509_meth = NULL; 67static STACK_OF(CRYPTO_EX_DATA_FUNCS) *x509_meth = NULL;
@@ -102,7 +103,7 @@ X509 *d2i_X509(X509 **a, unsigned char **pp, long length)
102 M_ASN1_D2I_get(ret->cert_info,d2i_X509_CINF); 103 M_ASN1_D2I_get(ret->cert_info,d2i_X509_CINF);
103 M_ASN1_D2I_get(ret->sig_alg,d2i_X509_ALGOR); 104 M_ASN1_D2I_get(ret->sig_alg,d2i_X509_ALGOR);
104 M_ASN1_D2I_get(ret->signature,d2i_ASN1_BIT_STRING); 105 M_ASN1_D2I_get(ret->signature,d2i_ASN1_BIT_STRING);
105 if (ret->name != NULL) Free(ret->name); 106 if (ret->name != NULL) OPENSSL_free(ret->name);
106 ret->name=X509_NAME_oneline(ret->cert_info->subject,NULL,0); 107 ret->name=X509_NAME_oneline(ret->cert_info->subject,NULL,0);
107 108
108 M_ASN1_D2I_Finish(a,X509_free,ASN1_F_D2I_X509); 109 M_ASN1_D2I_Finish(a,X509_free,ASN1_F_D2I_X509);
@@ -114,11 +115,14 @@ X509 *X509_new(void)
114 ASN1_CTX c; 115 ASN1_CTX c;
115 116
116 M_ASN1_New_Malloc(ret,X509); 117 M_ASN1_New_Malloc(ret,X509);
117 ret->references=1;
118 ret->valid=0; 118 ret->valid=0;
119 ret->references=1;
120 ret->name = NULL;
119 ret->ex_flags = 0; 121 ret->ex_flags = 0;
120 ret->name=NULL; 122 ret->ex_pathlen = -1;
121 ret->aux=NULL; 123 ret->skid = NULL;
124 ret->akid = NULL;
125 ret->aux = NULL;
122 M_ASN1_New(ret->cert_info,X509_CINF_new); 126 M_ASN1_New(ret->cert_info,X509_CINF_new);
123 M_ASN1_New(ret->sig_alg,X509_ALGOR_new); 127 M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
124 M_ASN1_New(ret->signature,M_ASN1_BIT_STRING_new); 128 M_ASN1_New(ret->signature,M_ASN1_BIT_STRING_new);
@@ -151,9 +155,11 @@ void X509_free(X509 *a)
151 X509_ALGOR_free(a->sig_alg); 155 X509_ALGOR_free(a->sig_alg);
152 M_ASN1_BIT_STRING_free(a->signature); 156 M_ASN1_BIT_STRING_free(a->signature);
153 X509_CERT_AUX_free(a->aux); 157 X509_CERT_AUX_free(a->aux);
158 ASN1_OCTET_STRING_free(a->skid);
159 AUTHORITY_KEYID_free(a->akid);
154 160
155 if (a->name != NULL) Free(a->name); 161 if (a->name != NULL) OPENSSL_free(a->name);
156 Free(a); 162 OPENSSL_free(a);
157 } 163 }
158 164
159int X509_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, 165int X509_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
diff --git a/src/lib/libcrypto/asn1/x_x509a.c b/src/lib/libcrypto/asn1/x_x509a.c
index b9987ea968..ebcce87bf2 100644
--- a/src/lib/libcrypto/asn1/x_x509a.c
+++ b/src/lib/libcrypto/asn1/x_x509a.c
@@ -112,7 +112,7 @@ void X509_CERT_AUX_free(X509_CERT_AUX *a)
112 ASN1_UTF8STRING_free(a->alias); 112 ASN1_UTF8STRING_free(a->alias);
113 ASN1_OCTET_STRING_free(a->keyid); 113 ASN1_OCTET_STRING_free(a->keyid);
114 sk_X509_ALGOR_pop_free(a->other, X509_ALGOR_free); 114 sk_X509_ALGOR_pop_free(a->other, X509_ALGOR_free);
115 Free(a); 115 OPENSSL_free(a);
116} 116}
117 117
118int i2d_X509_CERT_AUX(X509_CERT_AUX *a, unsigned char **pp) 118int i2d_X509_CERT_AUX(X509_CERT_AUX *a, unsigned char **pp)
@@ -153,6 +153,14 @@ int X509_alias_set1(X509 *x, unsigned char *name, int len)
153 return ASN1_STRING_set(aux->alias, name, len); 153 return ASN1_STRING_set(aux->alias, name, len);
154} 154}
155 155
156int X509_keyid_set1(X509 *x, unsigned char *id, int len)
157{
158 X509_CERT_AUX *aux;
159 if(!(aux = aux_get(x))) return 0;
160 if(!aux->keyid && !(aux->keyid = ASN1_OCTET_STRING_new())) return 0;
161 return ASN1_STRING_set(aux->keyid, id, len);
162}
163
156unsigned char *X509_alias_get0(X509 *x, int *len) 164unsigned char *X509_alias_get0(X509 *x, int *len)
157{ 165{
158 if(!x->aux || !x->aux->alias) return NULL; 166 if(!x->aux || !x->aux->alias) return NULL;