diff options
Diffstat (limited to '')
32 files changed, 1493 insertions, 838 deletions
diff --git a/src/lib/libcrypto/x509/Makefile.ssl b/src/lib/libcrypto/x509/Makefile.ssl index 48937b43af..4619693733 100644 --- a/src/lib/libcrypto/x509/Makefile.ssl +++ b/src/lib/libcrypto/x509/Makefile.ssl | |||
| @@ -96,15 +96,17 @@ by_dir.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | |||
| 96 | by_dir.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 96 | by_dir.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 97 | by_dir.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 97 | by_dir.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 98 | by_dir.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 98 | by_dir.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 99 | by_dir.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 99 | by_dir.o: ../../include/openssl/md2.h ../../include/openssl/md4.h |
| 100 | by_dir.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 100 | by_dir.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 101 | by_dir.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 101 | by_dir.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 102 | by_dir.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 102 | by_dir.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | 103 | by_dir.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 103 | by_dir.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | 104 | by_dir.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 104 | by_dir.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | 105 | by_dir.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 105 | by_dir.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 106 | by_dir.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 106 | by_dir.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | 107 | by_dir.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
| 107 | by_dir.o: ../../include/openssl/x509_vfy.h ../cryptlib.h | 108 | by_dir.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 109 | by_dir.o: ../cryptlib.h | ||
| 108 | by_file.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 110 | by_file.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 109 | by_file.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 111 | by_file.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 110 | by_file.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 112 | by_file.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -113,52 +115,60 @@ by_file.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | |||
| 113 | by_file.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 115 | by_file.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 114 | by_file.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 116 | by_file.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 115 | by_file.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 117 | by_file.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 116 | by_file.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 118 | by_file.o: ../../include/openssl/md2.h ../../include/openssl/md4.h |
| 117 | by_file.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 119 | by_file.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 120 | by_file.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 118 | by_file.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 121 | by_file.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 119 | by_file.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h | 122 | by_file.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h |
| 120 | by_file.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | 123 | by_file.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 121 | by_file.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | 124 | by_file.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 122 | by_file.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | 125 | by_file.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 123 | by_file.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 126 | by_file.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 124 | by_file.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | 127 | by_file.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
| 125 | by_file.o: ../../include/openssl/x509_vfy.h ../cryptlib.h | 128 | by_file.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 129 | by_file.o: ../cryptlib.h | ||
| 126 | x509_att.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 130 | x509_att.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 127 | x509_att.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 131 | x509_att.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 128 | x509_att.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 132 | x509_att.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| 129 | x509_att.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 133 | x509_att.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 130 | x509_att.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 134 | x509_att.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 131 | x509_att.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 135 | x509_att.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 132 | x509_att.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 136 | x509_att.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 133 | x509_att.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 137 | x509_att.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 134 | x509_att.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 138 | x509_att.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 139 | x509_att.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 135 | x509_att.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 140 | x509_att.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 136 | x509_att.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 141 | x509_att.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 142 | x509_att.o: ../../include/openssl/opensslconf.h | ||
| 137 | x509_att.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 143 | x509_att.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 138 | x509_att.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 144 | x509_att.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 139 | x509_att.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 145 | x509_att.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 140 | x509_att.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 146 | x509_att.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 141 | x509_att.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 147 | x509_att.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 142 | x509_att.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 148 | x509_att.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 143 | x509_att.o: ../../include/openssl/x509v3.h ../cryptlib.h | 149 | x509_att.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 150 | x509_att.o: ../cryptlib.h | ||
| 144 | x509_cmp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 151 | x509_cmp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 145 | x509_cmp.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 152 | x509_cmp.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 146 | x509_cmp.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 153 | x509_cmp.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| 147 | x509_cmp.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 154 | x509_cmp.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 148 | x509_cmp.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 155 | x509_cmp.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 149 | x509_cmp.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 156 | x509_cmp.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 150 | x509_cmp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 157 | x509_cmp.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 151 | x509_cmp.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 158 | x509_cmp.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 152 | x509_cmp.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 159 | x509_cmp.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 160 | x509_cmp.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 153 | x509_cmp.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 161 | x509_cmp.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 154 | x509_cmp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 162 | x509_cmp.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 163 | x509_cmp.o: ../../include/openssl/opensslconf.h | ||
| 155 | x509_cmp.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 164 | x509_cmp.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 156 | x509_cmp.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 165 | x509_cmp.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 157 | x509_cmp.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 166 | x509_cmp.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 158 | x509_cmp.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 167 | x509_cmp.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 159 | x509_cmp.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 168 | x509_cmp.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 160 | x509_cmp.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 169 | x509_cmp.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 161 | x509_cmp.o: ../../include/openssl/x509v3.h ../cryptlib.h | 170 | x509_cmp.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 171 | x509_cmp.o: ../cryptlib.h | ||
| 162 | x509_d2.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 172 | x509_d2.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 163 | x509_d2.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 173 | x509_d2.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 164 | x509_d2.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 174 | x509_d2.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -166,14 +176,16 @@ x509_d2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |||
| 166 | x509_d2.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 176 | x509_d2.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 167 | x509_d2.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 177 | x509_d2.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 168 | x509_d2.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 178 | x509_d2.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 169 | x509_d2.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | 179 | x509_d2.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 180 | x509_d2.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 170 | x509_d2.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 181 | x509_d2.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 171 | x509_d2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 182 | x509_d2.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 172 | x509_d2.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 183 | x509_d2.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 173 | x509_d2.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 184 | x509_d2.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 174 | x509_d2.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 185 | x509_d2.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 175 | x509_d2.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 186 | x509_d2.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 176 | x509_d2.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 187 | x509_d2.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 188 | x509_d2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 177 | x509_d2.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 189 | x509_d2.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 178 | x509_d2.o: ../cryptlib.h | 190 | x509_d2.o: ../cryptlib.h |
| 179 | x509_def.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 191 | x509_def.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -183,49 +195,57 @@ x509_def.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |||
| 183 | x509_def.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 195 | x509_def.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 184 | x509_def.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 196 | x509_def.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 185 | x509_def.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 197 | x509_def.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 186 | x509_def.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | 198 | x509_def.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 199 | x509_def.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 187 | x509_def.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 200 | x509_def.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 188 | x509_def.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 201 | x509_def.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 202 | x509_def.o: ../../include/openssl/opensslconf.h | ||
| 189 | x509_def.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 203 | x509_def.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 190 | x509_def.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 204 | x509_def.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 191 | x509_def.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 205 | x509_def.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 192 | x509_def.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 206 | x509_def.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 193 | x509_def.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 207 | x509_def.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 194 | x509_def.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 208 | x509_def.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 195 | x509_def.o: ../cryptlib.h | 209 | x509_def.o: ../../include/openssl/x509_vfy.h ../cryptlib.h |
| 196 | x509_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 210 | x509_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 197 | x509_err.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 211 | x509_err.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 198 | x509_err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | 212 | x509_err.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| 199 | x509_err.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 213 | x509_err.o: ../../include/openssl/crypto.h ../../include/openssl/des.h |
| 200 | x509_err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | 214 | x509_err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 201 | x509_err.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 215 | x509_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 202 | x509_err.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | 216 | x509_err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 203 | x509_err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 217 | x509_err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 218 | x509_err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h | ||
| 219 | x509_err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 204 | x509_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 220 | x509_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
| 205 | x509_err.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 221 | x509_err.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 206 | x509_err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 222 | x509_err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 207 | x509_err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 223 | x509_err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 208 | x509_err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 224 | x509_err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 209 | x509_err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 225 | x509_err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 210 | x509_err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 226 | x509_err.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 227 | x509_err.o: ../../include/openssl/x509_vfy.h | ||
| 211 | x509_ext.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 228 | x509_ext.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 212 | x509_ext.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 229 | x509_ext.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 213 | x509_ext.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 230 | x509_ext.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| 214 | x509_ext.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 231 | x509_ext.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 215 | x509_ext.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 232 | x509_ext.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 216 | x509_ext.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 233 | x509_ext.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 217 | x509_ext.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 234 | x509_ext.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 218 | x509_ext.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 235 | x509_ext.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 219 | x509_ext.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 236 | x509_ext.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 237 | x509_ext.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 220 | x509_ext.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 238 | x509_ext.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 221 | x509_ext.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 239 | x509_ext.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 240 | x509_ext.o: ../../include/openssl/opensslconf.h | ||
| 222 | x509_ext.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 241 | x509_ext.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 223 | x509_ext.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 242 | x509_ext.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 224 | x509_ext.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 243 | x509_ext.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 225 | x509_ext.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 244 | x509_ext.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 226 | x509_ext.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 245 | x509_ext.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 227 | x509_ext.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 246 | x509_ext.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 228 | x509_ext.o: ../../include/openssl/x509v3.h ../cryptlib.h | 247 | x509_ext.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 248 | x509_ext.o: ../cryptlib.h | ||
| 229 | x509_lu.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 249 | x509_lu.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 230 | x509_lu.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 250 | x509_lu.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 231 | x509_lu.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 251 | x509_lu.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -234,15 +254,17 @@ x509_lu.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | |||
| 234 | x509_lu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 254 | x509_lu.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 235 | x509_lu.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 255 | x509_lu.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 236 | x509_lu.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 256 | x509_lu.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 237 | x509_lu.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 257 | x509_lu.o: ../../include/openssl/md2.h ../../include/openssl/md4.h |
| 238 | x509_lu.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 258 | x509_lu.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 259 | x509_lu.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 239 | x509_lu.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 260 | x509_lu.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 240 | x509_lu.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | 261 | x509_lu.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 241 | x509_lu.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | 262 | x509_lu.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 242 | x509_lu.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | 263 | x509_lu.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 243 | x509_lu.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 264 | x509_lu.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 244 | x509_lu.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | 265 | x509_lu.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
| 245 | x509_lu.o: ../../include/openssl/x509_vfy.h ../cryptlib.h | 266 | x509_lu.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 267 | x509_lu.o: ../cryptlib.h | ||
| 246 | x509_obj.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 268 | x509_obj.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 247 | x509_obj.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 269 | x509_obj.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 248 | x509_obj.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 270 | x509_obj.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -251,16 +273,17 @@ x509_obj.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | |||
| 251 | x509_obj.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 273 | x509_obj.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 252 | x509_obj.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 274 | x509_obj.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 253 | x509_obj.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 275 | x509_obj.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 254 | x509_obj.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 276 | x509_obj.o: ../../include/openssl/md2.h ../../include/openssl/md4.h |
| 255 | x509_obj.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 277 | x509_obj.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 278 | x509_obj.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 256 | x509_obj.o: ../../include/openssl/opensslconf.h | 279 | x509_obj.o: ../../include/openssl/opensslconf.h |
| 257 | x509_obj.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 280 | x509_obj.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 258 | x509_obj.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 281 | x509_obj.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 259 | x509_obj.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 282 | x509_obj.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 260 | x509_obj.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 283 | x509_obj.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 261 | x509_obj.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 284 | x509_obj.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 262 | x509_obj.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 285 | x509_obj.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 263 | x509_obj.o: ../cryptlib.h | 286 | x509_obj.o: ../../include/openssl/x509_vfy.h ../cryptlib.h |
| 264 | x509_r2x.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 287 | x509_r2x.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 265 | x509_r2x.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 288 | x509_r2x.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 266 | x509_r2x.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 289 | x509_r2x.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -268,16 +291,18 @@ x509_r2x.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |||
| 268 | x509_r2x.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 291 | x509_r2x.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 269 | x509_r2x.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 292 | x509_r2x.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 270 | x509_r2x.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 293 | x509_r2x.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 271 | x509_r2x.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | 294 | x509_r2x.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 295 | x509_r2x.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 272 | x509_r2x.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 296 | x509_r2x.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 273 | x509_r2x.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 297 | x509_r2x.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 298 | x509_r2x.o: ../../include/openssl/opensslconf.h | ||
| 274 | x509_r2x.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 299 | x509_r2x.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 275 | x509_r2x.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 300 | x509_r2x.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 276 | x509_r2x.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 301 | x509_r2x.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 277 | x509_r2x.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 302 | x509_r2x.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 278 | x509_r2x.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 303 | x509_r2x.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 279 | x509_r2x.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 304 | x509_r2x.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 280 | x509_r2x.o: ../cryptlib.h | 305 | x509_r2x.o: ../../include/openssl/x509_vfy.h ../cryptlib.h |
| 281 | x509_req.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 306 | x509_req.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 282 | x509_req.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 307 | x509_req.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 283 | x509_req.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 308 | x509_req.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -285,17 +310,19 @@ x509_req.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |||
| 285 | x509_req.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 310 | x509_req.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 286 | x509_req.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 311 | x509_req.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 287 | x509_req.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 312 | x509_req.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 288 | x509_req.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | 313 | x509_req.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 314 | x509_req.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 289 | x509_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 315 | x509_req.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 290 | x509_req.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 316 | x509_req.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 317 | x509_req.o: ../../include/openssl/opensslconf.h | ||
| 291 | x509_req.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h | 318 | x509_req.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h |
| 292 | x509_req.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | 319 | x509_req.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h |
| 293 | x509_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 320 | x509_req.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 294 | x509_req.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 321 | x509_req.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 295 | x509_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 322 | x509_req.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 296 | x509_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 323 | x509_req.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 297 | x509_req.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 324 | x509_req.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 298 | x509_req.o: ../cryptlib.h | 325 | x509_req.o: ../../include/openssl/x509_vfy.h ../cryptlib.h |
| 299 | x509_set.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 326 | x509_set.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 300 | x509_set.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 327 | x509_set.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 301 | x509_set.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 328 | x509_set.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -303,34 +330,39 @@ x509_set.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |||
| 303 | x509_set.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 330 | x509_set.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 304 | x509_set.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 331 | x509_set.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 305 | x509_set.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 332 | x509_set.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 306 | x509_set.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | 333 | x509_set.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 334 | x509_set.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 307 | x509_set.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 335 | x509_set.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 308 | x509_set.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 336 | x509_set.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 337 | x509_set.o: ../../include/openssl/opensslconf.h | ||
| 309 | x509_set.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 338 | x509_set.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 310 | x509_set.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 339 | x509_set.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 311 | x509_set.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 340 | x509_set.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 312 | x509_set.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 341 | x509_set.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 313 | x509_set.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 342 | x509_set.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 314 | x509_set.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 343 | x509_set.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 315 | x509_set.o: ../cryptlib.h | 344 | x509_set.o: ../../include/openssl/x509_vfy.h ../cryptlib.h |
| 316 | x509_trs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 345 | x509_trs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 317 | x509_trs.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 346 | x509_trs.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 318 | x509_trs.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 347 | x509_trs.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| 319 | x509_trs.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 348 | x509_trs.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 320 | x509_trs.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 349 | x509_trs.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 321 | x509_trs.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 350 | x509_trs.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 322 | x509_trs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 351 | x509_trs.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 323 | x509_trs.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 352 | x509_trs.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 324 | x509_trs.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 353 | x509_trs.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 354 | x509_trs.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 325 | x509_trs.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 355 | x509_trs.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 326 | x509_trs.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 356 | x509_trs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 357 | x509_trs.o: ../../include/openssl/opensslconf.h | ||
| 327 | x509_trs.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 358 | x509_trs.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 328 | x509_trs.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 359 | x509_trs.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 329 | x509_trs.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 360 | x509_trs.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 330 | x509_trs.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 361 | x509_trs.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 331 | x509_trs.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 362 | x509_trs.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 332 | x509_trs.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 363 | x509_trs.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 333 | x509_trs.o: ../../include/openssl/x509v3.h ../cryptlib.h | 364 | x509_trs.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 365 | x509_trs.o: ../cryptlib.h | ||
| 334 | x509_txt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 366 | x509_txt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 335 | x509_txt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 367 | x509_txt.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 336 | x509_txt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 368 | x509_txt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -339,32 +371,35 @@ x509_txt.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | |||
| 339 | x509_txt.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 371 | x509_txt.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 340 | x509_txt.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 372 | x509_txt.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 341 | x509_txt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 373 | x509_txt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 342 | x509_txt.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 374 | x509_txt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h |
| 343 | x509_txt.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 375 | x509_txt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 376 | x509_txt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 344 | x509_txt.o: ../../include/openssl/opensslconf.h | 377 | x509_txt.o: ../../include/openssl/opensslconf.h |
| 345 | x509_txt.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 378 | x509_txt.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 346 | x509_txt.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 379 | x509_txt.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 347 | x509_txt.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 380 | x509_txt.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 348 | x509_txt.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 381 | x509_txt.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 349 | x509_txt.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 382 | x509_txt.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 350 | x509_txt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 383 | x509_txt.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 351 | x509_txt.o: ../cryptlib.h | 384 | x509_txt.o: ../../include/openssl/x509_vfy.h ../cryptlib.h |
| 352 | x509_v3.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 385 | x509_v3.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 353 | x509_v3.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 386 | x509_v3.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 354 | x509_v3.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 387 | x509_v3.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| 355 | x509_v3.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 388 | x509_v3.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 356 | x509_v3.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 389 | x509_v3.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 357 | x509_v3.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 390 | x509_v3.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 358 | x509_v3.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 391 | x509_v3.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 359 | x509_v3.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 392 | x509_v3.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 360 | x509_v3.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 393 | x509_v3.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 394 | x509_v3.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 361 | x509_v3.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 395 | x509_v3.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 362 | x509_v3.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 396 | x509_v3.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 363 | x509_v3.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 397 | x509_v3.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 364 | x509_v3.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 398 | x509_v3.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 365 | x509_v3.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 399 | x509_v3.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 366 | x509_v3.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 400 | x509_v3.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 367 | x509_v3.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 401 | x509_v3.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 402 | x509_v3.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 368 | x509_v3.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 403 | x509_v3.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 369 | x509_v3.o: ../../include/openssl/x509v3.h ../cryptlib.h | 404 | x509_v3.o: ../../include/openssl/x509v3.h ../cryptlib.h |
| 370 | x509_vfy.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 405 | x509_vfy.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -373,18 +408,21 @@ x509_vfy.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | |||
| 373 | x509_vfy.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 408 | x509_vfy.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 374 | x509_vfy.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 409 | x509_vfy.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 375 | x509_vfy.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 410 | x509_vfy.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 376 | x509_vfy.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 411 | x509_vfy.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 377 | x509_vfy.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 412 | x509_vfy.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 378 | x509_vfy.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 413 | x509_vfy.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 414 | x509_vfy.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 379 | x509_vfy.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 415 | x509_vfy.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 380 | x509_vfy.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 416 | x509_vfy.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 417 | x509_vfy.o: ../../include/openssl/opensslconf.h | ||
| 381 | x509_vfy.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 418 | x509_vfy.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 382 | x509_vfy.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 419 | x509_vfy.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 383 | x509_vfy.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 420 | x509_vfy.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 384 | x509_vfy.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 421 | x509_vfy.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 385 | x509_vfy.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 422 | x509_vfy.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 386 | x509_vfy.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 423 | x509_vfy.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 387 | x509_vfy.o: ../../include/openssl/x509v3.h ../cryptlib.h | 424 | x509_vfy.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 425 | x509_vfy.o: ../cryptlib.h | ||
| 388 | x509name.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 426 | x509name.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 389 | x509name.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 427 | x509name.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 390 | x509name.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 428 | x509name.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -392,16 +430,18 @@ x509name.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |||
| 392 | x509name.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 430 | x509name.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 393 | x509name.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 431 | x509name.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 394 | x509name.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 432 | x509name.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 395 | x509name.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | 433 | x509name.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 434 | x509name.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 396 | x509name.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 435 | x509name.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 397 | x509name.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 436 | x509name.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 437 | x509name.o: ../../include/openssl/opensslconf.h | ||
| 398 | x509name.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 438 | x509name.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 399 | x509name.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 439 | x509name.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 400 | x509name.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 440 | x509name.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 401 | x509name.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 441 | x509name.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 402 | x509name.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 442 | x509name.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 403 | x509name.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 443 | x509name.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 404 | x509name.o: ../cryptlib.h | 444 | x509name.o: ../../include/openssl/x509_vfy.h ../cryptlib.h |
| 405 | x509rset.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 445 | x509rset.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 406 | x509rset.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 446 | x509rset.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 407 | x509rset.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 447 | x509rset.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -409,16 +449,18 @@ x509rset.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |||
| 409 | x509rset.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 449 | x509rset.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 410 | x509rset.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 450 | x509rset.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 411 | x509rset.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 451 | x509rset.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 412 | x509rset.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | 452 | x509rset.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 453 | x509rset.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 413 | x509rset.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 454 | x509rset.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 414 | x509rset.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 455 | x509rset.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 456 | x509rset.o: ../../include/openssl/opensslconf.h | ||
| 415 | x509rset.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 457 | x509rset.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 416 | x509rset.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 458 | x509rset.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 417 | x509rset.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 459 | x509rset.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 418 | x509rset.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 460 | x509rset.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 419 | x509rset.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 461 | x509rset.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 420 | x509rset.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 462 | x509rset.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 421 | x509rset.o: ../cryptlib.h | 463 | x509rset.o: ../../include/openssl/x509_vfy.h ../cryptlib.h |
| 422 | x509spki.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h | 464 | x509spki.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h |
| 423 | x509spki.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | 465 | x509spki.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h |
| 424 | x509spki.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | 466 | x509spki.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h |
| @@ -427,16 +469,17 @@ x509spki.o: ../../include/openssl/des.h ../../include/openssl/dh.h | |||
| 427 | x509spki.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 469 | x509spki.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 428 | x509spki.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 470 | x509spki.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 429 | x509spki.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 471 | x509spki.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 430 | x509spki.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 472 | x509spki.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 431 | x509spki.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 473 | x509spki.o: ../../include/openssl/md4.h ../../include/openssl/md5.h |
| 432 | x509spki.o: ../../include/openssl/opensslconf.h | 474 | x509spki.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h |
| 475 | x509spki.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 433 | x509spki.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 476 | x509spki.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 434 | x509spki.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 477 | x509spki.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 435 | x509spki.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 478 | x509spki.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 436 | x509spki.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 479 | x509spki.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 437 | x509spki.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 480 | x509spki.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 438 | x509spki.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 481 | x509spki.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 439 | x509spki.o: ../cryptlib.h | 482 | x509spki.o: ../../include/openssl/x509_vfy.h ../cryptlib.h |
| 440 | x509type.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 483 | x509type.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 441 | x509type.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 484 | x509type.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 442 | x509type.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 485 | x509type.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -444,16 +487,18 @@ x509type.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |||
| 444 | x509type.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 487 | x509type.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 445 | x509type.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 488 | x509type.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 446 | x509type.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 489 | x509type.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 447 | x509type.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | 490 | x509type.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 491 | x509type.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 448 | x509type.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 492 | x509type.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 449 | x509type.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 493 | x509type.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 494 | x509type.o: ../../include/openssl/opensslconf.h | ||
| 450 | x509type.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 495 | x509type.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 451 | x509type.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 496 | x509type.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 452 | x509type.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 497 | x509type.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 453 | x509type.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 498 | x509type.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 454 | x509type.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 499 | x509type.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 455 | x509type.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 500 | x509type.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 456 | x509type.o: ../cryptlib.h | 501 | x509type.o: ../../include/openssl/x509_vfy.h ../cryptlib.h |
| 457 | x_all.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 502 | x_all.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 458 | x_all.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 503 | x_all.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 459 | x_all.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 504 | x_all.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| @@ -461,13 +506,15 @@ x_all.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | |||
| 461 | x_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 506 | x_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 462 | x_all.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 507 | x_all.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 463 | x_all.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 508 | x_all.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 464 | x_all.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | 509 | x_all.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 510 | x_all.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 465 | x_all.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 511 | x_all.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 466 | x_all.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 512 | x_all.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 467 | x_all.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 513 | x_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 468 | x_all.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 514 | x_all.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 469 | x_all.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 515 | x_all.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 470 | x_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 516 | x_all.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 471 | x_all.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 517 | x_all.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 518 | x_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 472 | x_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 519 | x_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 473 | x_all.o: ../cryptlib.h | 520 | x_all.o: ../cryptlib.h |
diff --git a/src/lib/libcrypto/x509/by_dir.c b/src/lib/libcrypto/x509/by_dir.c index 14d12c56bd..cac64a6f40 100644 --- a/src/lib/libcrypto/x509/by_dir.c +++ b/src/lib/libcrypto/x509/by_dir.c | |||
| @@ -146,11 +146,11 @@ static int new_dir(X509_LOOKUP *lu) | |||
| 146 | { | 146 | { |
| 147 | BY_DIR *a; | 147 | BY_DIR *a; |
| 148 | 148 | ||
| 149 | if ((a=(BY_DIR *)Malloc(sizeof(BY_DIR))) == NULL) | 149 | if ((a=(BY_DIR *)OPENSSL_malloc(sizeof(BY_DIR))) == NULL) |
| 150 | return(0); | 150 | return(0); |
| 151 | if ((a->buffer=BUF_MEM_new()) == NULL) | 151 | if ((a->buffer=BUF_MEM_new()) == NULL) |
| 152 | { | 152 | { |
| 153 | Free(a); | 153 | OPENSSL_free(a); |
| 154 | return(0); | 154 | return(0); |
| 155 | } | 155 | } |
| 156 | a->num_dirs=0; | 156 | a->num_dirs=0; |
| @@ -168,11 +168,11 @@ static void free_dir(X509_LOOKUP *lu) | |||
| 168 | 168 | ||
| 169 | a=(BY_DIR *)lu->method_data; | 169 | a=(BY_DIR *)lu->method_data; |
| 170 | for (i=0; i<a->num_dirs; i++) | 170 | for (i=0; i<a->num_dirs; i++) |
| 171 | if (a->dirs[i] != NULL) Free(a->dirs[i]); | 171 | if (a->dirs[i] != NULL) OPENSSL_free(a->dirs[i]); |
| 172 | if (a->dirs != NULL) Free(a->dirs); | 172 | if (a->dirs != NULL) OPENSSL_free(a->dirs); |
| 173 | if (a->dirs_type != NULL) Free(a->dirs_type); | 173 | if (a->dirs_type != NULL) OPENSSL_free(a->dirs_type); |
| 174 | if (a->buffer != NULL) BUF_MEM_free(a->buffer); | 174 | if (a->buffer != NULL) BUF_MEM_free(a->buffer); |
| 175 | Free(a); | 175 | OPENSSL_free(a); |
| 176 | } | 176 | } |
| 177 | 177 | ||
| 178 | static int add_cert_dir(BY_DIR *ctx, const char *dir, int type) | 178 | static int add_cert_dir(BY_DIR *ctx, const char *dir, int type) |
| @@ -204,9 +204,9 @@ static int add_cert_dir(BY_DIR *ctx, const char *dir, int type) | |||
| 204 | if (ctx->num_dirs_alloced < (ctx->num_dirs+1)) | 204 | if (ctx->num_dirs_alloced < (ctx->num_dirs+1)) |
| 205 | { | 205 | { |
| 206 | ctx->num_dirs_alloced+=10; | 206 | ctx->num_dirs_alloced+=10; |
| 207 | pp=(char **)Malloc(ctx->num_dirs_alloced* | 207 | pp=(char **)OPENSSL_malloc(ctx->num_dirs_alloced* |
| 208 | sizeof(char *)); | 208 | sizeof(char *)); |
| 209 | ip=(int *)Malloc(ctx->num_dirs_alloced* | 209 | ip=(int *)OPENSSL_malloc(ctx->num_dirs_alloced* |
| 210 | sizeof(int)); | 210 | sizeof(int)); |
| 211 | if ((pp == NULL) || (ip == NULL)) | 211 | if ((pp == NULL) || (ip == NULL)) |
| 212 | { | 212 | { |
| @@ -218,14 +218,14 @@ static int add_cert_dir(BY_DIR *ctx, const char *dir, int type) | |||
| 218 | memcpy(ip,ctx->dirs_type,(ctx->num_dirs_alloced-10)* | 218 | memcpy(ip,ctx->dirs_type,(ctx->num_dirs_alloced-10)* |
| 219 | sizeof(int)); | 219 | sizeof(int)); |
| 220 | if (ctx->dirs != NULL) | 220 | if (ctx->dirs != NULL) |
| 221 | Free(ctx->dirs); | 221 | OPENSSL_free(ctx->dirs); |
| 222 | if (ctx->dirs_type != NULL) | 222 | if (ctx->dirs_type != NULL) |
| 223 | Free(ctx->dirs_type); | 223 | OPENSSL_free(ctx->dirs_type); |
| 224 | ctx->dirs=pp; | 224 | ctx->dirs=pp; |
| 225 | ctx->dirs_type=ip; | 225 | ctx->dirs_type=ip; |
| 226 | } | 226 | } |
| 227 | ctx->dirs_type[ctx->num_dirs]=type; | 227 | ctx->dirs_type[ctx->num_dirs]=type; |
| 228 | ctx->dirs[ctx->num_dirs]=(char *)Malloc((unsigned int)len+1); | 228 | ctx->dirs[ctx->num_dirs]=(char *)OPENSSL_malloc((unsigned int)len+1); |
| 229 | if (ctx->dirs[ctx->num_dirs] == NULL) return(0); | 229 | if (ctx->dirs[ctx->num_dirs] == NULL) return(0); |
| 230 | strncpy(ctx->dirs[ctx->num_dirs],ss,(unsigned int)len); | 230 | strncpy(ctx->dirs[ctx->num_dirs],ss,(unsigned int)len); |
| 231 | ctx->dirs[ctx->num_dirs][len]='\0'; | 231 | ctx->dirs[ctx->num_dirs][len]='\0'; |
| @@ -326,7 +326,9 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, | |||
| 326 | /* we have added it to the cache so now pull | 326 | /* we have added it to the cache so now pull |
| 327 | * it out again */ | 327 | * it out again */ |
| 328 | CRYPTO_r_lock(CRYPTO_LOCK_X509_STORE); | 328 | CRYPTO_r_lock(CRYPTO_LOCK_X509_STORE); |
| 329 | tmp=(X509_OBJECT *)lh_retrieve(xl->store_ctx->certs,&stmp); | 329 | j = sk_X509_OBJECT_find(xl->store_ctx->objs,&stmp); |
| 330 | if(j != -1) tmp=sk_X509_OBJECT_value(xl->store_ctx->objs,i); | ||
| 331 | else tmp = NULL; | ||
| 330 | CRYPTO_r_unlock(CRYPTO_LOCK_X509_STORE); | 332 | CRYPTO_r_unlock(CRYPTO_LOCK_X509_STORE); |
| 331 | 333 | ||
| 332 | if (tmp != NULL) | 334 | if (tmp != NULL) |
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 0192272e7c..813c8adffd 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
| @@ -59,15 +59,16 @@ | |||
| 59 | #ifndef HEADER_X509_H | 59 | #ifndef HEADER_X509_H |
| 60 | #define HEADER_X509_H | 60 | #define HEADER_X509_H |
| 61 | 61 | ||
| 62 | #ifdef __cplusplus | 62 | #include <openssl/symhacks.h> |
| 63 | extern "C" { | 63 | #ifndef NO_BUFFER |
| 64 | #include <openssl/buffer.h> | ||
| 64 | #endif | 65 | #endif |
| 65 | 66 | #ifndef NO_EVP | |
| 66 | #ifdef VMS | 67 | #include <openssl/evp.h> |
| 67 | #undef X509_REVOKED_get_ext_by_critical | 68 | #endif |
| 68 | #define X509_REVOKED_get_ext_by_critical X509_REVOKED_get_ext_by_critic | 69 | #ifndef NO_BIO |
| 70 | #include <openssl/bio.h> | ||
| 69 | #endif | 71 | #endif |
| 70 | |||
| 71 | #include <openssl/stack.h> | 72 | #include <openssl/stack.h> |
| 72 | #include <openssl/asn1.h> | 73 | #include <openssl/asn1.h> |
| 73 | #include <openssl/safestack.h> | 74 | #include <openssl/safestack.h> |
| @@ -87,11 +88,19 @@ extern "C" { | |||
| 87 | #include <openssl/evp.h> | 88 | #include <openssl/evp.h> |
| 88 | 89 | ||
| 89 | 90 | ||
| 91 | #ifdef __cplusplus | ||
| 92 | extern "C" { | ||
| 93 | #endif | ||
| 94 | |||
| 90 | #ifdef WIN32 | 95 | #ifdef WIN32 |
| 91 | /* Under Win32 this is defined in wincrypt.h */ | 96 | /* Under Win32 this is defined in wincrypt.h */ |
| 92 | #undef X509_NAME | 97 | #undef X509_NAME |
| 93 | #endif | 98 | #endif |
| 94 | 99 | ||
| 100 | /* If placed in pkcs12.h, we end up with a circular depency with pkcs7.h */ | ||
| 101 | #define DECLARE_PKCS12_STACK_OF(type) /* Nothing */ | ||
| 102 | #define IMPLEMENT_PKCS12_STACK_OF(type) /* Nothing */ | ||
| 103 | |||
| 95 | #define X509_FILETYPE_PEM 1 | 104 | #define X509_FILETYPE_PEM 1 |
| 96 | #define X509_FILETYPE_ASN1 2 | 105 | #define X509_FILETYPE_ASN1 2 |
| 97 | #define X509_FILETYPE_DEFAULT 3 | 106 | #define X509_FILETYPE_DEFAULT 3 |
| @@ -125,8 +134,8 @@ DECLARE_ASN1_SET_OF(X509_ALGOR) | |||
| 125 | 134 | ||
| 126 | typedef struct X509_val_st | 135 | typedef struct X509_val_st |
| 127 | { | 136 | { |
| 128 | ASN1_UTCTIME *notBefore; | 137 | ASN1_TIME *notBefore; |
| 129 | ASN1_UTCTIME *notAfter; | 138 | ASN1_TIME *notAfter; |
| 130 | } X509_VAL; | 139 | } X509_VAL; |
| 131 | 140 | ||
| 132 | typedef struct X509_pubkey_st | 141 | typedef struct X509_pubkey_st |
| @@ -158,7 +167,7 @@ typedef struct X509_name_st | |||
| 158 | { | 167 | { |
| 159 | STACK_OF(X509_NAME_ENTRY) *entries; | 168 | STACK_OF(X509_NAME_ENTRY) *entries; |
| 160 | int modified; /* true if 'bytes' needs to be built */ | 169 | int modified; /* true if 'bytes' needs to be built */ |
| 161 | #ifdef HEADER_BUFFER_H | 170 | #ifndef NO_BUFFER |
| 162 | BUF_MEM *bytes; | 171 | BUF_MEM *bytes; |
| 163 | #else | 172 | #else |
| 164 | char *bytes; | 173 | char *bytes; |
| @@ -200,6 +209,8 @@ DECLARE_ASN1_SET_OF(X509_ATTRIBUTE) | |||
| 200 | 209 | ||
| 201 | typedef struct X509_req_info_st | 210 | typedef struct X509_req_info_st |
| 202 | { | 211 | { |
| 212 | unsigned char *asn1; | ||
| 213 | int length; | ||
| 203 | ASN1_INTEGER *version; | 214 | ASN1_INTEGER *version; |
| 204 | X509_NAME *subject; | 215 | X509_NAME *subject; |
| 205 | X509_PUBKEY *pubkey; | 216 | X509_PUBKEY *pubkey; |
| @@ -260,6 +271,8 @@ typedef struct x509_st | |||
| 260 | unsigned long ex_kusage; | 271 | unsigned long ex_kusage; |
| 261 | unsigned long ex_xkusage; | 272 | unsigned long ex_xkusage; |
| 262 | unsigned long ex_nscert; | 273 | unsigned long ex_nscert; |
| 274 | ASN1_OCTET_STRING *skid; | ||
| 275 | struct AUTHORITY_KEYID_st *akid; | ||
| 263 | #ifndef NO_SHA | 276 | #ifndef NO_SHA |
| 264 | unsigned char sha1_hash[SHA_DIGEST_LENGTH]; | 277 | unsigned char sha1_hash[SHA_DIGEST_LENGTH]; |
| 265 | #endif | 278 | #endif |
| @@ -307,10 +320,65 @@ DECLARE_STACK_OF(X509_TRUST) | |||
| 307 | #define X509_TRUST_REJECTED 2 | 320 | #define X509_TRUST_REJECTED 2 |
| 308 | #define X509_TRUST_UNTRUSTED 3 | 321 | #define X509_TRUST_UNTRUSTED 3 |
| 309 | 322 | ||
| 323 | /* Flags specific to X509_NAME_print_ex() */ | ||
| 324 | |||
| 325 | /* The field separator information */ | ||
| 326 | |||
| 327 | #define XN_FLAG_SEP_MASK (0xf << 16) | ||
| 328 | |||
| 329 | #define XN_FLAG_COMPAT 0 /* Traditional SSLeay: use old X509_NAME_print */ | ||
| 330 | #define XN_FLAG_SEP_COMMA_PLUS (1 << 16) /* RFC2253 ,+ */ | ||
| 331 | #define XN_FLAG_SEP_CPLUS_SPC (2 << 16) /* ,+ spaced: more readable */ | ||
| 332 | #define XN_FLAG_SEP_SPLUS_SPC (3 << 16) /* ;+ spaced */ | ||
| 333 | #define XN_FLAG_SEP_MULTILINE (4 << 16) /* One line per field */ | ||
| 334 | |||
| 335 | #define XN_FLAG_DN_REV (1 << 20) /* Reverse DN order */ | ||
| 336 | |||
| 337 | /* How the field name is shown */ | ||
| 338 | |||
| 339 | #define XN_FLAG_FN_MASK (0x3 << 21) | ||
| 340 | |||
| 341 | #define XN_FLAG_FN_SN 0 /* Object short name */ | ||
| 342 | #define XN_FLAG_FN_LN (1 << 21) /* Object long name */ | ||
| 343 | #define XN_FLAG_FN_OID (2 << 21) /* Always use OIDs */ | ||
| 344 | #define XN_FLAG_FN_NONE (3 << 21) /* No field names */ | ||
| 345 | |||
| 346 | #define XN_FLAG_SPC_EQ (1 << 23) /* Put spaces round '=' */ | ||
| 347 | |||
| 348 | /* This determines if we dump fields we don't recognise: | ||
| 349 | * RFC2253 requires this. | ||
| 350 | */ | ||
| 351 | |||
| 352 | #define XN_FLAG_DUMP_UNKNOWN_FIELDS (1 << 24) | ||
| 353 | |||
| 354 | /* Complete set of RFC2253 flags */ | ||
| 355 | |||
| 356 | #define XN_FLAG_RFC2253 (ASN1_STRFLGS_RFC2253 | \ | ||
| 357 | XN_FLAG_SEP_COMMA_PLUS | \ | ||
| 358 | XN_FLAG_DN_REV | \ | ||
| 359 | XN_FLAG_FN_SN | \ | ||
| 360 | XN_FLAG_DUMP_UNKNOWN_FIELDS) | ||
| 361 | |||
| 362 | /* readable oneline form */ | ||
| 363 | |||
| 364 | #define XN_FLAG_ONELINE (ASN1_STRFLGS_RFC2253 | \ | ||
| 365 | ASN1_STRFLGS_ESC_QUOTE | \ | ||
| 366 | XN_FLAG_SEP_CPLUS_SPC | \ | ||
| 367 | XN_FLAG_SPC_EQ | \ | ||
| 368 | XN_FLAG_FN_SN) | ||
| 369 | |||
| 370 | /* readable multiline form */ | ||
| 371 | |||
| 372 | #define XN_FLAG_MULTILINE (ASN1_STRFLGS_ESC_CTRL | \ | ||
| 373 | ASN1_STRFLGS_ESC_MSB | \ | ||
| 374 | XN_FLAG_SEP_MULTILINE | \ | ||
| 375 | XN_FLAG_SPC_EQ | \ | ||
| 376 | XN_FLAG_FN_LN) | ||
| 377 | |||
| 310 | typedef struct X509_revoked_st | 378 | typedef struct X509_revoked_st |
| 311 | { | 379 | { |
| 312 | ASN1_INTEGER *serialNumber; | 380 | ASN1_INTEGER *serialNumber; |
| 313 | ASN1_UTCTIME *revocationDate; | 381 | ASN1_TIME *revocationDate; |
| 314 | STACK_OF(X509_EXTENSION) /* optional */ *extensions; | 382 | STACK_OF(X509_EXTENSION) /* optional */ *extensions; |
| 315 | int sequence; /* load sequence */ | 383 | int sequence; /* load sequence */ |
| 316 | } X509_REVOKED; | 384 | } X509_REVOKED; |
| @@ -323,8 +391,8 @@ typedef struct X509_crl_info_st | |||
| 323 | ASN1_INTEGER *version; | 391 | ASN1_INTEGER *version; |
| 324 | X509_ALGOR *sig_alg; | 392 | X509_ALGOR *sig_alg; |
| 325 | X509_NAME *issuer; | 393 | X509_NAME *issuer; |
| 326 | ASN1_UTCTIME *lastUpdate; | 394 | ASN1_TIME *lastUpdate; |
| 327 | ASN1_UTCTIME *nextUpdate; | 395 | ASN1_TIME *nextUpdate; |
| 328 | STACK_OF(X509_REVOKED) *revoked; | 396 | STACK_OF(X509_REVOKED) *revoked; |
| 329 | STACK_OF(X509_EXTENSION) /* [0] */ *extensions; | 397 | STACK_OF(X509_EXTENSION) /* [0] */ *extensions; |
| 330 | } X509_CRL_INFO; | 398 | } X509_CRL_INFO; |
| @@ -362,7 +430,7 @@ typedef struct private_key_st | |||
| 362 | int references; | 430 | int references; |
| 363 | } X509_PKEY; | 431 | } X509_PKEY; |
| 364 | 432 | ||
| 365 | #ifdef HEADER_ENVELOPE_H | 433 | #ifndef NO_EVP |
| 366 | typedef struct X509_info_st | 434 | typedef struct X509_info_st |
| 367 | { | 435 | { |
| 368 | X509 *x509; | 436 | X509 *x509; |
| @@ -445,9 +513,17 @@ typedef struct pkcs8_priv_key_info_st | |||
| 445 | STACK_OF(X509_ATTRIBUTE) *attributes; | 513 | STACK_OF(X509_ATTRIBUTE) *attributes; |
| 446 | } PKCS8_PRIV_KEY_INFO; | 514 | } PKCS8_PRIV_KEY_INFO; |
| 447 | 515 | ||
| 516 | #ifdef __cplusplus | ||
| 517 | } | ||
| 518 | #endif | ||
| 519 | |||
| 448 | #include <openssl/x509_vfy.h> | 520 | #include <openssl/x509_vfy.h> |
| 449 | #include <openssl/pkcs7.h> | 521 | #include <openssl/pkcs7.h> |
| 450 | 522 | ||
| 523 | #ifdef __cplusplus | ||
| 524 | extern "C" { | ||
| 525 | #endif | ||
| 526 | |||
| 451 | #ifdef SSLEAY_MACROS | 527 | #ifdef SSLEAY_MACROS |
| 452 | #define X509_verify(a,r) ASN1_verify((int (*)())i2d_X509_CINF,a->sig_alg,\ | 528 | #define X509_verify(a,r) ASN1_verify((int (*)())i2d_X509_CINF,a->sig_alg,\ |
| 453 | a->signature,(char *)a->cert_info,r) | 529 | a->signature,(char *)a->cert_info,r) |
| @@ -610,7 +686,7 @@ typedef struct pkcs8_priv_key_info_st | |||
| 610 | const char *X509_verify_cert_error_string(long n); | 686 | const char *X509_verify_cert_error_string(long n); |
| 611 | 687 | ||
| 612 | #ifndef SSLEAY_MACROS | 688 | #ifndef SSLEAY_MACROS |
| 613 | #ifdef HEADER_ENVELOPE_H | 689 | #ifndef NO_EVP |
| 614 | int X509_verify(X509 *a, EVP_PKEY *r); | 690 | int X509_verify(X509 *a, EVP_PKEY *r); |
| 615 | 691 | ||
| 616 | int X509_REQ_verify(X509_REQ *a, EVP_PKEY *r); | 692 | int X509_REQ_verify(X509_REQ *a, EVP_PKEY *r); |
| @@ -629,9 +705,14 @@ int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md); | |||
| 629 | int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md); | 705 | int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md); |
| 630 | int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md); | 706 | int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md); |
| 631 | 707 | ||
| 632 | int X509_digest(X509 *data,const EVP_MD *type,unsigned char *md,unsigned int *len); | 708 | int X509_digest(const X509 *data,const EVP_MD *type, |
| 633 | int X509_NAME_digest(X509_NAME *data,const EVP_MD *type, | 709 | unsigned char *md, unsigned int *len); |
| 634 | unsigned char *md,unsigned int *len); | 710 | int X509_CRL_digest(const X509_CRL *data,const EVP_MD *type, |
| 711 | unsigned char *md, unsigned int *len); | ||
| 712 | int X509_REQ_digest(const X509_REQ *data,const EVP_MD *type, | ||
| 713 | unsigned char *md, unsigned int *len); | ||
| 714 | int X509_NAME_digest(const X509_NAME *data,const EVP_MD *type, | ||
| 715 | unsigned char *md, unsigned int *len); | ||
| 635 | #endif | 716 | #endif |
| 636 | 717 | ||
| 637 | #ifndef NO_FP_API | 718 | #ifndef NO_FP_API |
| @@ -663,9 +744,11 @@ int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp,PKCS8_PRIV_KEY_INFO *p8inf); | |||
| 663 | int i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key); | 744 | int i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key); |
| 664 | int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey); | 745 | int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey); |
| 665 | EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); | 746 | EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); |
| 747 | int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey); | ||
| 748 | EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a); | ||
| 666 | #endif | 749 | #endif |
| 667 | 750 | ||
| 668 | #ifdef HEADER_BIO_H | 751 | #ifndef NO_BIO |
| 669 | X509 *d2i_X509_bio(BIO *bp,X509 **x509); | 752 | X509 *d2i_X509_bio(BIO *bp,X509 **x509); |
| 670 | int i2d_X509_bio(BIO *bp,X509 *x509); | 753 | int i2d_X509_bio(BIO *bp,X509 *x509); |
| 671 | X509_CRL *d2i_X509_CRL_bio(BIO *bp,X509_CRL **crl); | 754 | X509_CRL *d2i_X509_CRL_bio(BIO *bp,X509_CRL **crl); |
| @@ -694,6 +777,8 @@ int i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp,PKCS8_PRIV_KEY_INFO *p8inf); | |||
| 694 | int i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, EVP_PKEY *key); | 777 | int i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, EVP_PKEY *key); |
| 695 | int i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey); | 778 | int i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey); |
| 696 | EVP_PKEY *d2i_PrivateKey_bio(BIO *bp, EVP_PKEY **a); | 779 | EVP_PKEY *d2i_PrivateKey_bio(BIO *bp, EVP_PKEY **a); |
| 780 | int i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey); | ||
| 781 | EVP_PKEY *d2i_PUBKEY_bio(BIO *bp, EVP_PKEY **a); | ||
| 697 | #endif | 782 | #endif |
| 698 | 783 | ||
| 699 | X509 *X509_dup(X509 *x509); | 784 | X509 *X509_dup(X509 *x509); |
| @@ -711,8 +796,10 @@ RSA *RSAPrivateKey_dup(RSA *rsa); | |||
| 711 | 796 | ||
| 712 | #endif /* !SSLEAY_MACROS */ | 797 | #endif /* !SSLEAY_MACROS */ |
| 713 | 798 | ||
| 714 | int X509_cmp_current_time(ASN1_UTCTIME *s); | 799 | int X509_cmp_time(ASN1_TIME *s, time_t *t); |
| 715 | ASN1_UTCTIME * X509_gmtime_adj(ASN1_UTCTIME *s, long adj); | 800 | int X509_cmp_current_time(ASN1_TIME *s); |
| 801 | ASN1_TIME * X509_time_adj(ASN1_TIME *s, long adj, time_t *t); | ||
| 802 | ASN1_TIME * X509_gmtime_adj(ASN1_TIME *s, long adj); | ||
| 716 | 803 | ||
| 717 | const char * X509_get_default_cert_area(void ); | 804 | const char * X509_get_default_cert_area(void ); |
| 718 | const char * X509_get_default_cert_dir(void ); | 805 | const char * X509_get_default_cert_dir(void ); |
| @@ -825,6 +912,7 @@ int i2d_X509_CERT_AUX(X509_CERT_AUX *a,unsigned char **pp); | |||
| 825 | X509_CERT_AUX * d2i_X509_CERT_AUX(X509_CERT_AUX **a,unsigned char **pp, | 912 | X509_CERT_AUX * d2i_X509_CERT_AUX(X509_CERT_AUX **a,unsigned char **pp, |
| 826 | long length); | 913 | long length); |
| 827 | int X509_alias_set1(X509 *x, unsigned char *name, int len); | 914 | int X509_alias_set1(X509 *x, unsigned char *name, int len); |
| 915 | int X509_keyid_set1(X509 *x, unsigned char *id, int len); | ||
| 828 | unsigned char * X509_alias_get0(X509 *x, int *len); | 916 | unsigned char * X509_alias_get0(X509 *x, int *len); |
| 829 | int (*X509_TRUST_set_default(int (*trust)(int , X509 *, int)))(int, X509 *, int); | 917 | int (*X509_TRUST_set_default(int (*trust)(int , X509 *, int)))(int, X509 *, int); |
| 830 | int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj); | 918 | int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj); |
| @@ -871,7 +959,7 @@ NETSCAPE_CERT_SEQUENCE *NETSCAPE_CERT_SEQUENCE_new(void); | |||
| 871 | NETSCAPE_CERT_SEQUENCE *d2i_NETSCAPE_CERT_SEQUENCE(NETSCAPE_CERT_SEQUENCE **a, unsigned char **pp, long length); | 959 | NETSCAPE_CERT_SEQUENCE *d2i_NETSCAPE_CERT_SEQUENCE(NETSCAPE_CERT_SEQUENCE **a, unsigned char **pp, long length); |
| 872 | void NETSCAPE_CERT_SEQUENCE_free(NETSCAPE_CERT_SEQUENCE *a); | 960 | void NETSCAPE_CERT_SEQUENCE_free(NETSCAPE_CERT_SEQUENCE *a); |
| 873 | 961 | ||
| 874 | #ifdef HEADER_ENVELOPE_H | 962 | #ifndef NO_EVP |
| 875 | X509_INFO * X509_INFO_new(void); | 963 | X509_INFO * X509_INFO_new(void); |
| 876 | void X509_INFO_free(X509_INFO *a); | 964 | void X509_INFO_free(X509_INFO *a); |
| 877 | char * X509_NAME_oneline(X509_NAME *a,char *buf,int size); | 965 | char * X509_NAME_oneline(X509_NAME *a,char *buf,int size); |
| @@ -894,8 +982,8 @@ int X509_set_issuer_name(X509 *x, X509_NAME *name); | |||
| 894 | X509_NAME * X509_get_issuer_name(X509 *a); | 982 | X509_NAME * X509_get_issuer_name(X509 *a); |
| 895 | int X509_set_subject_name(X509 *x, X509_NAME *name); | 983 | int X509_set_subject_name(X509 *x, X509_NAME *name); |
| 896 | X509_NAME * X509_get_subject_name(X509 *a); | 984 | X509_NAME * X509_get_subject_name(X509 *a); |
| 897 | int X509_set_notBefore(X509 *x, ASN1_UTCTIME *tm); | 985 | int X509_set_notBefore(X509 *x, ASN1_TIME *tm); |
| 898 | int X509_set_notAfter(X509 *x, ASN1_UTCTIME *tm); | 986 | int X509_set_notAfter(X509 *x, ASN1_TIME *tm); |
| 899 | int X509_set_pubkey(X509 *x, EVP_PKEY *pkey); | 987 | int X509_set_pubkey(X509 *x, EVP_PKEY *pkey); |
| 900 | EVP_PKEY * X509_get_pubkey(X509 *x); | 988 | EVP_PKEY * X509_get_pubkey(X509 *x); |
| 901 | int X509_certificate_type(X509 *x,EVP_PKEY *pubkey /* optional */); | 989 | int X509_certificate_type(X509 *x,EVP_PKEY *pubkey /* optional */); |
| @@ -931,28 +1019,30 @@ int X509_REQ_add1_attr_by_txt(X509_REQ *req, | |||
| 931 | 1019 | ||
| 932 | int X509_check_private_key(X509 *x509,EVP_PKEY *pkey); | 1020 | int X509_check_private_key(X509 *x509,EVP_PKEY *pkey); |
| 933 | 1021 | ||
| 934 | int X509_issuer_and_serial_cmp(X509 *a, X509 *b); | 1022 | int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b); |
| 935 | unsigned long X509_issuer_and_serial_hash(X509 *a); | 1023 | unsigned long X509_issuer_and_serial_hash(X509 *a); |
| 936 | 1024 | ||
| 937 | int X509_issuer_name_cmp(X509 *a, X509 *b); | 1025 | int X509_issuer_name_cmp(const X509 *a, const X509 *b); |
| 938 | unsigned long X509_issuer_name_hash(X509 *a); | 1026 | unsigned long X509_issuer_name_hash(X509 *a); |
| 939 | 1027 | ||
| 940 | int X509_subject_name_cmp(X509 *a,X509 *b); | 1028 | int X509_subject_name_cmp(const X509 *a, const X509 *b); |
| 941 | unsigned long X509_subject_name_hash(X509 *x); | 1029 | unsigned long X509_subject_name_hash(X509 *x); |
| 942 | 1030 | ||
| 943 | int X509_cmp (X509 *a, X509 *b); | 1031 | int X509_cmp(const X509 *a, const X509 *b); |
| 944 | int X509_NAME_cmp (X509_NAME *a, X509_NAME *b); | 1032 | int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b); |
| 945 | unsigned long X509_NAME_hash(X509_NAME *x); | 1033 | unsigned long X509_NAME_hash(X509_NAME *x); |
| 946 | 1034 | ||
| 947 | int X509_CRL_cmp(X509_CRL *a,X509_CRL *b); | 1035 | int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b); |
| 948 | #ifndef NO_FP_API | 1036 | #ifndef NO_FP_API |
| 949 | int X509_print_fp(FILE *bp,X509 *x); | 1037 | int X509_print_fp(FILE *bp,X509 *x); |
| 950 | int X509_CRL_print_fp(FILE *bp,X509_CRL *x); | 1038 | int X509_CRL_print_fp(FILE *bp,X509_CRL *x); |
| 951 | int X509_REQ_print_fp(FILE *bp,X509_REQ *req); | 1039 | int X509_REQ_print_fp(FILE *bp,X509_REQ *req); |
| 1040 | int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags); | ||
| 952 | #endif | 1041 | #endif |
| 953 | 1042 | ||
| 954 | #ifdef HEADER_BIO_H | 1043 | #ifndef NO_BIO |
| 955 | int X509_NAME_print(BIO *bp, X509_NAME *name, int obase); | 1044 | int X509_NAME_print(BIO *bp, X509_NAME *name, int obase); |
| 1045 | int X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent, unsigned long flags); | ||
| 956 | int X509_print(BIO *bp,X509 *x); | 1046 | int X509_print(BIO *bp,X509 *x); |
| 957 | int X509_CERT_AUX_print(BIO *bp,X509_CERT_AUX *x, int indent); | 1047 | int X509_CERT_AUX_print(BIO *bp,X509_CERT_AUX *x, int indent); |
| 958 | int X509_CRL_print(BIO *bp,X509_CRL *x); | 1048 | int X509_CRL_print(BIO *bp,X509_CRL *x); |
diff --git a/src/lib/libcrypto/x509/x509_cmp.c b/src/lib/libcrypto/x509/x509_cmp.c index a8a5ca8b03..b147d573d2 100644 --- a/src/lib/libcrypto/x509/x509_cmp.c +++ b/src/lib/libcrypto/x509/x509_cmp.c | |||
| @@ -63,7 +63,7 @@ | |||
| 63 | #include <openssl/x509.h> | 63 | #include <openssl/x509.h> |
| 64 | #include <openssl/x509v3.h> | 64 | #include <openssl/x509v3.h> |
| 65 | 65 | ||
| 66 | int X509_issuer_and_serial_cmp(X509 *a, X509 *b) | 66 | int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b) |
| 67 | { | 67 | { |
| 68 | int i; | 68 | int i; |
| 69 | X509_CINF *ai,*bi; | 69 | X509_CINF *ai,*bi; |
| @@ -97,17 +97,17 @@ unsigned long X509_issuer_and_serial_hash(X509 *a) | |||
| 97 | } | 97 | } |
| 98 | #endif | 98 | #endif |
| 99 | 99 | ||
| 100 | int X509_issuer_name_cmp(X509 *a, X509 *b) | 100 | int X509_issuer_name_cmp(const X509 *a, const X509 *b) |
| 101 | { | 101 | { |
| 102 | return(X509_NAME_cmp(a->cert_info->issuer,b->cert_info->issuer)); | 102 | return(X509_NAME_cmp(a->cert_info->issuer,b->cert_info->issuer)); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | int X509_subject_name_cmp(X509 *a, X509 *b) | 105 | int X509_subject_name_cmp(const X509 *a, const X509 *b) |
| 106 | { | 106 | { |
| 107 | return(X509_NAME_cmp(a->cert_info->subject,b->cert_info->subject)); | 107 | return(X509_NAME_cmp(a->cert_info->subject,b->cert_info->subject)); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | int X509_CRL_cmp(X509_CRL *a, X509_CRL *b) | 110 | int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b) |
| 111 | { | 111 | { |
| 112 | return(X509_NAME_cmp(a->crl->issuer,b->crl->issuer)); | 112 | return(X509_NAME_cmp(a->crl->issuer,b->crl->issuer)); |
| 113 | } | 113 | } |
| @@ -139,19 +139,25 @@ unsigned long X509_subject_name_hash(X509 *x) | |||
| 139 | 139 | ||
| 140 | #ifndef NO_SHA | 140 | #ifndef NO_SHA |
| 141 | /* Compare two certificates: they must be identical for | 141 | /* Compare two certificates: they must be identical for |
| 142 | * this to work. | 142 | * this to work. NB: Although "cmp" operations are generally |
| 143 | * prototyped to take "const" arguments (eg. for use in | ||
| 144 | * STACKs), the way X509 handling is - these operations may | ||
| 145 | * involve ensuring the hashes are up-to-date and ensuring | ||
| 146 | * certain cert information is cached. So this is the point | ||
| 147 | * where the "depth-first" constification tree has to halt | ||
| 148 | * with an evil cast. | ||
| 143 | */ | 149 | */ |
| 144 | int X509_cmp(X509 *a, X509 *b) | 150 | int X509_cmp(const X509 *a, const X509 *b) |
| 145 | { | 151 | { |
| 146 | /* ensure hash is valid */ | 152 | /* ensure hash is valid */ |
| 147 | X509_check_purpose(a, -1, 0); | 153 | X509_check_purpose((X509 *)a, -1, 0); |
| 148 | X509_check_purpose(b, -1, 0); | 154 | X509_check_purpose((X509 *)b, -1, 0); |
| 149 | 155 | ||
| 150 | return memcmp(a->sha1_hash, b->sha1_hash, SHA_DIGEST_LENGTH); | 156 | return memcmp(a->sha1_hash, b->sha1_hash, SHA_DIGEST_LENGTH); |
| 151 | } | 157 | } |
| 152 | #endif | 158 | #endif |
| 153 | 159 | ||
| 154 | int X509_NAME_cmp(X509_NAME *a, X509_NAME *b) | 160 | int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b) |
| 155 | { | 161 | { |
| 156 | int i,j; | 162 | int i,j; |
| 157 | X509_NAME_ENTRY *na,*nb; | 163 | X509_NAME_ENTRY *na,*nb; |
| @@ -198,14 +204,14 @@ unsigned long X509_NAME_hash(X509_NAME *x) | |||
| 198 | 204 | ||
| 199 | i=i2d_X509_NAME(x,NULL); | 205 | i=i2d_X509_NAME(x,NULL); |
| 200 | if (i > sizeof(str)) | 206 | if (i > sizeof(str)) |
| 201 | p=Malloc(i); | 207 | p=OPENSSL_malloc(i); |
| 202 | else | 208 | else |
| 203 | p=str; | 209 | p=str; |
| 204 | 210 | ||
| 205 | pp=p; | 211 | pp=p; |
| 206 | i2d_X509_NAME(x,&pp); | 212 | i2d_X509_NAME(x,&pp); |
| 207 | MD5((unsigned char *)p,i,&(md[0])); | 213 | MD5((unsigned char *)p,i,&(md[0])); |
| 208 | if (p != str) Free(p); | 214 | if (p != str) OPENSSL_free(p); |
| 209 | 215 | ||
| 210 | ret=( ((unsigned long)md[0] )|((unsigned long)md[1]<<8L)| | 216 | ret=( ((unsigned long)md[0] )|((unsigned long)md[1]<<8L)| |
| 211 | ((unsigned long)md[2]<<16L)|((unsigned long)md[3]<<24L) | 217 | ((unsigned long)md[2]<<16L)|((unsigned long)md[3]<<24L) |
diff --git a/src/lib/libcrypto/x509/x509_lu.c b/src/lib/libcrypto/x509/x509_lu.c index a20006d67e..863c738cad 100644 --- a/src/lib/libcrypto/x509/x509_lu.c +++ b/src/lib/libcrypto/x509/x509_lu.c | |||
| @@ -62,14 +62,13 @@ | |||
| 62 | #include <openssl/x509.h> | 62 | #include <openssl/x509.h> |
| 63 | 63 | ||
| 64 | static STACK_OF(CRYPTO_EX_DATA_FUNCS) *x509_store_meth=NULL; | 64 | static STACK_OF(CRYPTO_EX_DATA_FUNCS) *x509_store_meth=NULL; |
| 65 | static STACK_OF(CRYPTO_EX_DATA_FUNCS) *x509_store_ctx_meth=NULL; | ||
| 66 | 65 | ||
| 67 | X509_LOOKUP *X509_LOOKUP_new(X509_LOOKUP_METHOD *method) | 66 | X509_LOOKUP *X509_LOOKUP_new(X509_LOOKUP_METHOD *method) |
| 68 | { | 67 | { |
| 69 | X509_LOOKUP *ret; | 68 | X509_LOOKUP *ret; |
| 70 | 69 | ||
| 71 | ret=(X509_LOOKUP *)Malloc(sizeof(X509_LOOKUP)); | 70 | ret=(X509_LOOKUP *)OPENSSL_malloc(sizeof(X509_LOOKUP)); |
| 72 | if (ret == NULL) return(NULL); | 71 | if (ret == NULL) return NULL; |
| 73 | 72 | ||
| 74 | ret->init=0; | 73 | ret->init=0; |
| 75 | ret->skip=0; | 74 | ret->skip=0; |
| @@ -78,10 +77,10 @@ X509_LOOKUP *X509_LOOKUP_new(X509_LOOKUP_METHOD *method) | |||
| 78 | ret->store_ctx=NULL; | 77 | ret->store_ctx=NULL; |
| 79 | if ((method->new_item != NULL) && !method->new_item(ret)) | 78 | if ((method->new_item != NULL) && !method->new_item(ret)) |
| 80 | { | 79 | { |
| 81 | Free(ret); | 80 | OPENSSL_free(ret); |
| 82 | return(NULL); | 81 | return NULL; |
| 83 | } | 82 | } |
| 84 | return(ret); | 83 | return ret; |
| 85 | } | 84 | } |
| 86 | 85 | ||
| 87 | void X509_LOOKUP_free(X509_LOOKUP *ctx) | 86 | void X509_LOOKUP_free(X509_LOOKUP *ctx) |
| @@ -90,44 +89,44 @@ void X509_LOOKUP_free(X509_LOOKUP *ctx) | |||
| 90 | if ( (ctx->method != NULL) && | 89 | if ( (ctx->method != NULL) && |
| 91 | (ctx->method->free != NULL)) | 90 | (ctx->method->free != NULL)) |
| 92 | ctx->method->free(ctx); | 91 | ctx->method->free(ctx); |
| 93 | Free(ctx); | 92 | OPENSSL_free(ctx); |
| 94 | } | 93 | } |
| 95 | 94 | ||
| 96 | int X509_LOOKUP_init(X509_LOOKUP *ctx) | 95 | int X509_LOOKUP_init(X509_LOOKUP *ctx) |
| 97 | { | 96 | { |
| 98 | if (ctx->method == NULL) return(0); | 97 | if (ctx->method == NULL) return 0; |
| 99 | if (ctx->method->init != NULL) | 98 | if (ctx->method->init != NULL) |
| 100 | return(ctx->method->init(ctx)); | 99 | return ctx->method->init(ctx); |
| 101 | else | 100 | else |
| 102 | return(1); | 101 | return 1; |
| 103 | } | 102 | } |
| 104 | 103 | ||
| 105 | int X509_LOOKUP_shutdown(X509_LOOKUP *ctx) | 104 | int X509_LOOKUP_shutdown(X509_LOOKUP *ctx) |
| 106 | { | 105 | { |
| 107 | if (ctx->method == NULL) return(0); | 106 | if (ctx->method == NULL) return 0; |
| 108 | if (ctx->method->shutdown != NULL) | 107 | if (ctx->method->shutdown != NULL) |
| 109 | return(ctx->method->shutdown(ctx)); | 108 | return ctx->method->shutdown(ctx); |
| 110 | else | 109 | else |
| 111 | return(1); | 110 | return 1; |
| 112 | } | 111 | } |
| 113 | 112 | ||
| 114 | int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, long argl, | 113 | int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, long argl, |
| 115 | char **ret) | 114 | char **ret) |
| 116 | { | 115 | { |
| 117 | if (ctx->method == NULL) return(-1); | 116 | if (ctx->method == NULL) return -1; |
| 118 | if (ctx->method->ctrl != NULL) | 117 | if (ctx->method->ctrl != NULL) |
| 119 | return(ctx->method->ctrl(ctx,cmd,argc,argl,ret)); | 118 | return ctx->method->ctrl(ctx,cmd,argc,argl,ret); |
| 120 | else | 119 | else |
| 121 | return(1); | 120 | return 1; |
| 122 | } | 121 | } |
| 123 | 122 | ||
| 124 | int X509_LOOKUP_by_subject(X509_LOOKUP *ctx, int type, X509_NAME *name, | 123 | int X509_LOOKUP_by_subject(X509_LOOKUP *ctx, int type, X509_NAME *name, |
| 125 | X509_OBJECT *ret) | 124 | X509_OBJECT *ret) |
| 126 | { | 125 | { |
| 127 | if ((ctx->method == NULL) || (ctx->method->get_by_subject == NULL)) | 126 | if ((ctx->method == NULL) || (ctx->method->get_by_subject == NULL)) |
| 128 | return(X509_LU_FAIL); | 127 | return X509_LU_FAIL; |
| 129 | if (ctx->skip) return(0); | 128 | if (ctx->skip) return 0; |
| 130 | return(ctx->method->get_by_subject(ctx,type,name,ret)); | 129 | return ctx->method->get_by_subject(ctx,type,name,ret); |
| 131 | } | 130 | } |
| 132 | 131 | ||
| 133 | int X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, int type, X509_NAME *name, | 132 | int X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, int type, X509_NAME *name, |
| @@ -135,71 +134,55 @@ int X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, int type, X509_NAME *name, | |||
| 135 | { | 134 | { |
| 136 | if ((ctx->method == NULL) || | 135 | if ((ctx->method == NULL) || |
| 137 | (ctx->method->get_by_issuer_serial == NULL)) | 136 | (ctx->method->get_by_issuer_serial == NULL)) |
| 138 | return(X509_LU_FAIL); | 137 | return X509_LU_FAIL; |
| 139 | return(ctx->method->get_by_issuer_serial(ctx,type,name,serial,ret)); | 138 | return ctx->method->get_by_issuer_serial(ctx,type,name,serial,ret); |
| 140 | } | 139 | } |
| 141 | 140 | ||
| 142 | int X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, int type, | 141 | int X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, int type, |
| 143 | unsigned char *bytes, int len, X509_OBJECT *ret) | 142 | unsigned char *bytes, int len, X509_OBJECT *ret) |
| 144 | { | 143 | { |
| 145 | if ((ctx->method == NULL) || (ctx->method->get_by_fingerprint == NULL)) | 144 | if ((ctx->method == NULL) || (ctx->method->get_by_fingerprint == NULL)) |
| 146 | return(X509_LU_FAIL); | 145 | return X509_LU_FAIL; |
| 147 | return(ctx->method->get_by_fingerprint(ctx,type,bytes,len,ret)); | 146 | return ctx->method->get_by_fingerprint(ctx,type,bytes,len,ret); |
| 148 | } | 147 | } |
| 149 | 148 | ||
| 150 | int X509_LOOKUP_by_alias(X509_LOOKUP *ctx, int type, char *str, int len, | 149 | int X509_LOOKUP_by_alias(X509_LOOKUP *ctx, int type, char *str, int len, |
| 151 | X509_OBJECT *ret) | 150 | X509_OBJECT *ret) |
| 152 | { | 151 | { |
| 153 | if ((ctx->method == NULL) || (ctx->method->get_by_alias == NULL)) | 152 | if ((ctx->method == NULL) || (ctx->method->get_by_alias == NULL)) |
| 154 | return(X509_LU_FAIL); | 153 | return X509_LU_FAIL; |
| 155 | return(ctx->method->get_by_alias(ctx,type,str,len,ret)); | 154 | return ctx->method->get_by_alias(ctx,type,str,len,ret); |
| 156 | } | 155 | } |
| 157 | 156 | ||
| 158 | static unsigned long x509_object_hash(X509_OBJECT *a) | 157 | |
| 159 | { | 158 | static int x509_object_cmp(const X509_OBJECT * const *a, const X509_OBJECT * const *b) |
| 160 | unsigned long h; | 159 | { |
| 161 | 160 | int ret; | |
| 162 | switch (a->type) | 161 | |
| 163 | { | 162 | ret=((*a)->type - (*b)->type); |
| 164 | case X509_LU_X509: | 163 | if (ret) return ret; |
| 165 | h=X509_NAME_hash(a->data.x509->cert_info->subject); | 164 | switch ((*a)->type) |
| 166 | break; | 165 | { |
| 167 | case X509_LU_CRL: | 166 | case X509_LU_X509: |
| 168 | h=X509_NAME_hash(a->data.crl->crl->issuer); | 167 | ret=X509_subject_name_cmp((*a)->data.x509,(*b)->data.x509); |
| 169 | break; | 168 | break; |
| 170 | default: | 169 | case X509_LU_CRL: |
| 171 | abort(); | 170 | ret=X509_CRL_cmp((*a)->data.crl,(*b)->data.crl); |
| 172 | } | 171 | break; |
| 173 | return(h); | ||
| 174 | } | ||
| 175 | |||
| 176 | static int x509_object_cmp(X509_OBJECT *a, X509_OBJECT *b) | ||
| 177 | { | ||
| 178 | int ret; | ||
| 179 | |||
| 180 | ret=(a->type - b->type); | ||
| 181 | if (ret) return(ret); | ||
| 182 | switch (a->type) | ||
| 183 | { | ||
| 184 | case X509_LU_X509: | ||
| 185 | ret=X509_subject_name_cmp(a->data.x509,b->data.x509); | ||
| 186 | break; | ||
| 187 | case X509_LU_CRL: | ||
| 188 | ret=X509_CRL_cmp(a->data.crl,b->data.crl); | ||
| 189 | break; | ||
| 190 | default: | 172 | default: |
| 191 | abort(); | 173 | /* abort(); */ |
| 174 | return 0; | ||
| 192 | } | 175 | } |
| 193 | return(ret); | 176 | return ret; |
| 194 | } | 177 | } |
| 195 | 178 | ||
| 196 | X509_STORE *X509_STORE_new(void) | 179 | X509_STORE *X509_STORE_new(void) |
| 197 | { | 180 | { |
| 198 | X509_STORE *ret; | 181 | X509_STORE *ret; |
| 199 | 182 | ||
| 200 | if ((ret=(X509_STORE *)Malloc(sizeof(X509_STORE))) == NULL) | 183 | if ((ret=(X509_STORE *)OPENSSL_malloc(sizeof(X509_STORE))) == NULL) |
| 201 | return(NULL); | 184 | return NULL; |
| 202 | ret->certs=lh_new(x509_object_hash,x509_object_cmp); | 185 | ret->objs = sk_X509_OBJECT_new(x509_object_cmp); |
| 203 | ret->cache=1; | 186 | ret->cache=1; |
| 204 | ret->get_cert_methods=sk_X509_LOOKUP_new_null(); | 187 | ret->get_cert_methods=sk_X509_LOOKUP_new_null(); |
| 205 | ret->verify=NULL; | 188 | ret->verify=NULL; |
| @@ -207,7 +190,7 @@ X509_STORE *X509_STORE_new(void) | |||
| 207 | memset(&ret->ex_data,0,sizeof(CRYPTO_EX_DATA)); | 190 | memset(&ret->ex_data,0,sizeof(CRYPTO_EX_DATA)); |
| 208 | ret->references=1; | 191 | ret->references=1; |
| 209 | ret->depth=0; | 192 | ret->depth=0; |
| 210 | return(ret); | 193 | return ret; |
| 211 | } | 194 | } |
| 212 | 195 | ||
| 213 | static void cleanup(X509_OBJECT *a) | 196 | static void cleanup(X509_OBJECT *a) |
| @@ -221,9 +204,11 @@ static void cleanup(X509_OBJECT *a) | |||
| 221 | X509_CRL_free(a->data.crl); | 204 | X509_CRL_free(a->data.crl); |
| 222 | } | 205 | } |
| 223 | else | 206 | else |
| 224 | abort(); | 207 | { |
| 208 | /* abort(); */ | ||
| 209 | } | ||
| 225 | 210 | ||
| 226 | Free(a); | 211 | OPENSSL_free(a); |
| 227 | } | 212 | } |
| 228 | 213 | ||
| 229 | void X509_STORE_free(X509_STORE *vfy) | 214 | void X509_STORE_free(X509_STORE *vfy) |
| @@ -232,7 +217,7 @@ void X509_STORE_free(X509_STORE *vfy) | |||
| 232 | STACK_OF(X509_LOOKUP) *sk; | 217 | STACK_OF(X509_LOOKUP) *sk; |
| 233 | X509_LOOKUP *lu; | 218 | X509_LOOKUP *lu; |
| 234 | 219 | ||
| 235 | if(vfy == NULL) | 220 | if (vfy == NULL) |
| 236 | return; | 221 | return; |
| 237 | 222 | ||
| 238 | sk=vfy->get_cert_methods; | 223 | sk=vfy->get_cert_methods; |
| @@ -243,11 +228,10 @@ void X509_STORE_free(X509_STORE *vfy) | |||
| 243 | X509_LOOKUP_free(lu); | 228 | X509_LOOKUP_free(lu); |
| 244 | } | 229 | } |
| 245 | sk_X509_LOOKUP_free(sk); | 230 | sk_X509_LOOKUP_free(sk); |
| 231 | sk_X509_OBJECT_pop_free(vfy->objs, cleanup); | ||
| 246 | 232 | ||
| 247 | CRYPTO_free_ex_data(x509_store_meth,vfy,&vfy->ex_data); | 233 | CRYPTO_free_ex_data(x509_store_meth,vfy,&vfy->ex_data); |
| 248 | lh_doall(vfy->certs,cleanup); | 234 | OPENSSL_free(vfy); |
| 249 | lh_free(vfy->certs); | ||
| 250 | Free(vfy); | ||
| 251 | } | 235 | } |
| 252 | 236 | ||
| 253 | X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m) | 237 | X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m) |
| @@ -262,22 +246,22 @@ X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m) | |||
| 262 | lu=sk_X509_LOOKUP_value(sk,i); | 246 | lu=sk_X509_LOOKUP_value(sk,i); |
| 263 | if (m == lu->method) | 247 | if (m == lu->method) |
| 264 | { | 248 | { |
| 265 | return(lu); | 249 | return lu; |
| 266 | } | 250 | } |
| 267 | } | 251 | } |
| 268 | /* a new one */ | 252 | /* a new one */ |
| 269 | lu=X509_LOOKUP_new(m); | 253 | lu=X509_LOOKUP_new(m); |
| 270 | if (lu == NULL) | 254 | if (lu == NULL) |
| 271 | return(NULL); | 255 | return NULL; |
| 272 | else | 256 | else |
| 273 | { | 257 | { |
| 274 | lu->store_ctx=v; | 258 | lu->store_ctx=v; |
| 275 | if (sk_X509_LOOKUP_push(v->get_cert_methods,lu)) | 259 | if (sk_X509_LOOKUP_push(v->get_cert_methods,lu)) |
| 276 | return(lu); | 260 | return lu; |
| 277 | else | 261 | else |
| 278 | { | 262 | { |
| 279 | X509_LOOKUP_free(lu); | 263 | X509_LOOKUP_free(lu); |
| 280 | return(NULL); | 264 | return NULL; |
| 281 | } | 265 | } |
| 282 | } | 266 | } |
| 283 | } | 267 | } |
| @@ -290,7 +274,7 @@ int X509_STORE_get_by_subject(X509_STORE_CTX *vs, int type, X509_NAME *name, | |||
| 290 | X509_OBJECT stmp,*tmp; | 274 | X509_OBJECT stmp,*tmp; |
| 291 | int i,j; | 275 | int i,j; |
| 292 | 276 | ||
| 293 | tmp=X509_OBJECT_retrieve_by_subject(ctx->certs,type,name); | 277 | tmp=X509_OBJECT_retrieve_by_subject(ctx->objs,type,name); |
| 294 | 278 | ||
| 295 | if (tmp == NULL) | 279 | if (tmp == NULL) |
| 296 | { | 280 | { |
| @@ -301,7 +285,7 @@ int X509_STORE_get_by_subject(X509_STORE_CTX *vs, int type, X509_NAME *name, | |||
| 301 | if (j < 0) | 285 | if (j < 0) |
| 302 | { | 286 | { |
| 303 | vs->current_method=j; | 287 | vs->current_method=j; |
| 304 | return(j); | 288 | return j; |
| 305 | } | 289 | } |
| 306 | else if (j) | 290 | else if (j) |
| 307 | { | 291 | { |
| @@ -311,7 +295,7 @@ int X509_STORE_get_by_subject(X509_STORE_CTX *vs, int type, X509_NAME *name, | |||
| 311 | } | 295 | } |
| 312 | vs->current_method=0; | 296 | vs->current_method=0; |
| 313 | if (tmp == NULL) | 297 | if (tmp == NULL) |
| 314 | return(0); | 298 | return 0; |
| 315 | } | 299 | } |
| 316 | 300 | ||
| 317 | /* if (ret->data.ptr != NULL) | 301 | /* if (ret->data.ptr != NULL) |
| @@ -322,7 +306,74 @@ int X509_STORE_get_by_subject(X509_STORE_CTX *vs, int type, X509_NAME *name, | |||
| 322 | 306 | ||
| 323 | X509_OBJECT_up_ref_count(ret); | 307 | X509_OBJECT_up_ref_count(ret); |
| 324 | 308 | ||
| 325 | return(1); | 309 | return 1; |
| 310 | } | ||
| 311 | |||
| 312 | int X509_STORE_add_cert(X509_STORE *ctx, X509 *x) | ||
| 313 | { | ||
| 314 | X509_OBJECT *obj; | ||
| 315 | int ret=1; | ||
| 316 | |||
| 317 | if (x == NULL) return 0; | ||
| 318 | obj=(X509_OBJECT *)OPENSSL_malloc(sizeof(X509_OBJECT)); | ||
| 319 | if (obj == NULL) | ||
| 320 | { | ||
| 321 | X509err(X509_F_X509_STORE_ADD_CERT,ERR_R_MALLOC_FAILURE); | ||
| 322 | return 0; | ||
| 323 | } | ||
| 324 | obj->type=X509_LU_X509; | ||
| 325 | obj->data.x509=x; | ||
| 326 | |||
| 327 | CRYPTO_w_lock(CRYPTO_LOCK_X509_STORE); | ||
| 328 | |||
| 329 | X509_OBJECT_up_ref_count(obj); | ||
| 330 | |||
| 331 | |||
| 332 | if (X509_OBJECT_retrieve_match(ctx->objs, obj)) | ||
| 333 | { | ||
| 334 | X509_OBJECT_free_contents(obj); | ||
| 335 | OPENSSL_free(obj); | ||
| 336 | X509err(X509_F_X509_STORE_ADD_CERT,X509_R_CERT_ALREADY_IN_HASH_TABLE); | ||
| 337 | ret=0; | ||
| 338 | } | ||
| 339 | else sk_X509_OBJECT_push(ctx->objs, obj); | ||
| 340 | |||
| 341 | CRYPTO_w_unlock(CRYPTO_LOCK_X509_STORE); | ||
| 342 | |||
| 343 | return ret; | ||
| 344 | } | ||
| 345 | |||
| 346 | int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x) | ||
| 347 | { | ||
| 348 | X509_OBJECT *obj; | ||
| 349 | int ret=1; | ||
| 350 | |||
| 351 | if (x == NULL) return 0; | ||
| 352 | obj=(X509_OBJECT *)OPENSSL_malloc(sizeof(X509_OBJECT)); | ||
| 353 | if (obj == NULL) | ||
| 354 | { | ||
| 355 | X509err(X509_F_X509_STORE_ADD_CRL,ERR_R_MALLOC_FAILURE); | ||
| 356 | return 0; | ||
| 357 | } | ||
| 358 | obj->type=X509_LU_CRL; | ||
| 359 | obj->data.crl=x; | ||
| 360 | |||
| 361 | CRYPTO_w_lock(CRYPTO_LOCK_X509_STORE); | ||
| 362 | |||
| 363 | X509_OBJECT_up_ref_count(obj); | ||
| 364 | |||
| 365 | if (X509_OBJECT_retrieve_match(ctx->objs, obj)) | ||
| 366 | { | ||
| 367 | X509_OBJECT_free_contents(obj); | ||
| 368 | OPENSSL_free(obj); | ||
| 369 | X509err(X509_F_X509_STORE_ADD_CRL,X509_R_CERT_ALREADY_IN_HASH_TABLE); | ||
| 370 | ret=0; | ||
| 371 | } | ||
| 372 | else sk_X509_OBJECT_push(ctx->objs, obj); | ||
| 373 | |||
| 374 | CRYPTO_w_unlock(CRYPTO_LOCK_X509_STORE); | ||
| 375 | |||
| 376 | return ret; | ||
| 326 | } | 377 | } |
| 327 | 378 | ||
| 328 | void X509_OBJECT_up_ref_count(X509_OBJECT *a) | 379 | void X509_OBJECT_up_ref_count(X509_OBJECT *a) |
| @@ -351,10 +402,10 @@ void X509_OBJECT_free_contents(X509_OBJECT *a) | |||
| 351 | } | 402 | } |
| 352 | } | 403 | } |
| 353 | 404 | ||
| 354 | X509_OBJECT *X509_OBJECT_retrieve_by_subject(LHASH *h, int type, | 405 | int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, int type, |
| 355 | X509_NAME *name) | 406 | X509_NAME *name) |
| 356 | { | 407 | { |
| 357 | X509_OBJECT stmp,*tmp; | 408 | X509_OBJECT stmp; |
| 358 | X509 x509_s; | 409 | X509 x509_s; |
| 359 | X509_CINF cinf_s; | 410 | X509_CINF cinf_s; |
| 360 | X509_CRL crl_s; | 411 | X509_CRL crl_s; |
| @@ -374,54 +425,105 @@ X509_OBJECT *X509_OBJECT_retrieve_by_subject(LHASH *h, int type, | |||
| 374 | crl_info_s.issuer=name; | 425 | crl_info_s.issuer=name; |
| 375 | break; | 426 | break; |
| 376 | default: | 427 | default: |
| 377 | abort(); | 428 | /* abort(); */ |
| 429 | return -1; | ||
| 378 | } | 430 | } |
| 379 | 431 | ||
| 380 | tmp=(X509_OBJECT *)lh_retrieve(h,&stmp); | 432 | return sk_X509_OBJECT_find(h,&stmp); |
| 381 | return(tmp); | ||
| 382 | } | 433 | } |
| 383 | 434 | ||
| 384 | X509_STORE_CTX *X509_STORE_CTX_new(void) | 435 | X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h, int type, |
| 436 | X509_NAME *name) | ||
| 385 | { | 437 | { |
| 386 | X509_STORE_CTX *ctx; | 438 | int idx; |
| 387 | ctx = (X509_STORE_CTX *)Malloc(sizeof(X509_STORE_CTX)); | 439 | idx = X509_OBJECT_idx_by_subject(h, type, name); |
| 388 | if(ctx) memset(ctx, 0, sizeof(X509_STORE_CTX)); | 440 | if (idx==-1) return NULL; |
| 389 | return ctx; | 441 | return sk_X509_OBJECT_value(h, idx); |
| 390 | } | 442 | } |
| 391 | 443 | ||
| 392 | void X509_STORE_CTX_free(X509_STORE_CTX *ctx) | 444 | X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h, X509_OBJECT *x) |
| 393 | { | 445 | { |
| 394 | X509_STORE_CTX_cleanup(ctx); | 446 | int idx, i; |
| 395 | Free(ctx); | 447 | X509_OBJECT *obj; |
| 448 | idx = sk_X509_OBJECT_find(h, x); | ||
| 449 | if (idx == -1) return NULL; | ||
| 450 | if (x->type != X509_LU_X509) return sk_X509_OBJECT_value(h, idx); | ||
| 451 | for (i = idx; i < sk_X509_OBJECT_num(h); i++) | ||
| 452 | { | ||
| 453 | obj = sk_X509_OBJECT_value(h, i); | ||
| 454 | if (x509_object_cmp((const X509_OBJECT **)&obj, (const X509_OBJECT **)&x)) | ||
| 455 | return NULL; | ||
| 456 | if ((x->type != X509_LU_X509) || !X509_cmp(obj->data.x509, x->data.x509)) | ||
| 457 | return obj; | ||
| 458 | } | ||
| 459 | return NULL; | ||
| 396 | } | 460 | } |
| 397 | 461 | ||
| 398 | void X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, | ||
| 399 | STACK_OF(X509) *chain) | ||
| 400 | { | ||
| 401 | ctx->ctx=store; | ||
| 402 | ctx->current_method=0; | ||
| 403 | ctx->cert=x509; | ||
| 404 | ctx->untrusted=chain; | ||
| 405 | ctx->last_untrusted=0; | ||
| 406 | ctx->purpose=0; | ||
| 407 | ctx->trust=0; | ||
| 408 | ctx->valid=0; | ||
| 409 | ctx->chain=NULL; | ||
| 410 | ctx->depth=9; | ||
| 411 | ctx->error=0; | ||
| 412 | ctx->current_cert=NULL; | ||
| 413 | memset(&(ctx->ex_data),0,sizeof(CRYPTO_EX_DATA)); | ||
| 414 | } | ||
| 415 | 462 | ||
| 416 | void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx) | 463 | /* Try to get issuer certificate from store. Due to limitations |
| 417 | { | 464 | * of the API this can only retrieve a single certificate matching |
| 418 | if (ctx->chain != NULL) | 465 | * a given subject name. However it will fill the cache with all |
| 466 | * matching certificates, so we can examine the cache for all | ||
| 467 | * matches. | ||
| 468 | * | ||
| 469 | * Return values are: | ||
| 470 | * 1 lookup successful. | ||
| 471 | * 0 certificate not found. | ||
| 472 | * -1 some other error. | ||
| 473 | */ | ||
| 474 | |||
| 475 | |||
| 476 | int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x) | ||
| 477 | { | ||
| 478 | X509_NAME *xn; | ||
| 479 | X509_OBJECT obj, *pobj; | ||
| 480 | int i, ok, idx; | ||
| 481 | xn=X509_get_issuer_name(x); | ||
| 482 | ok=X509_STORE_get_by_subject(ctx,X509_LU_X509,xn,&obj); | ||
| 483 | if (ok != X509_LU_X509) | ||
| 484 | { | ||
| 485 | if (ok == X509_LU_RETRY) | ||
| 486 | { | ||
| 487 | X509_OBJECT_free_contents(&obj); | ||
| 488 | X509err(X509_F_X509_VERIFY_CERT,X509_R_SHOULD_RETRY); | ||
| 489 | return -1; | ||
| 490 | } | ||
| 491 | else if (ok != X509_LU_FAIL) | ||
| 492 | { | ||
| 493 | X509_OBJECT_free_contents(&obj); | ||
| 494 | /* not good :-(, break anyway */ | ||
| 495 | return -1; | ||
| 496 | } | ||
| 497 | return 0; | ||
| 498 | } | ||
| 499 | /* If certificate matches all OK */ | ||
| 500 | if (ctx->check_issued(ctx, x, obj.data.x509)) | ||
| 419 | { | 501 | { |
| 420 | sk_X509_pop_free(ctx->chain,X509_free); | 502 | *issuer = obj.data.x509; |
| 421 | ctx->chain=NULL; | 503 | return 1; |
| 422 | } | 504 | } |
| 423 | CRYPTO_free_ex_data(x509_store_ctx_meth,ctx,&(ctx->ex_data)); | 505 | X509_OBJECT_free_contents(&obj); |
| 424 | memset(&ctx->ex_data,0,sizeof(CRYPTO_EX_DATA)); | 506 | /* Else find index of first matching cert */ |
| 425 | } | 507 | idx = X509_OBJECT_idx_by_subject(ctx->ctx->objs, X509_LU_X509, xn); |
| 508 | /* This shouldn't normally happen since we already have one match */ | ||
| 509 | if (idx == -1) return 0; | ||
| 510 | |||
| 511 | /* Look through all matching certificates for a suitable issuer */ | ||
| 512 | for (i = idx; i < sk_X509_OBJECT_num(ctx->ctx->objs); i++) | ||
| 513 | { | ||
| 514 | pobj = sk_X509_OBJECT_value(ctx->ctx->objs, i); | ||
| 515 | /* See if we've ran out of matches */ | ||
| 516 | if (pobj->type != X509_LU_X509) return 0; | ||
| 517 | if (X509_NAME_cmp(xn, X509_get_subject_name(pobj->data.x509))) return 0; | ||
| 518 | if (ctx->check_issued(ctx, x, pobj->data.x509)) | ||
| 519 | { | ||
| 520 | *issuer = pobj->data.x509; | ||
| 521 | X509_OBJECT_up_ref_count(pobj); | ||
| 522 | return 1; | ||
| 523 | } | ||
| 524 | } | ||
| 525 | return 0; | ||
| 526 | } | ||
| 426 | 527 | ||
| 427 | IMPLEMENT_STACK_OF(X509_LOOKUP) | 528 | IMPLEMENT_STACK_OF(X509_LOOKUP) |
| 529 | IMPLEMENT_STACK_OF(X509_OBJECT) | ||
diff --git a/src/lib/libcrypto/x509/x509_obj.c b/src/lib/libcrypto/x509/x509_obj.c index 691b71f031..6a3ba8eb15 100644 --- a/src/lib/libcrypto/x509/x509_obj.c +++ b/src/lib/libcrypto/x509/x509_obj.c | |||
| @@ -91,7 +91,7 @@ int i; | |||
| 91 | if(b) | 91 | if(b) |
| 92 | { | 92 | { |
| 93 | buf=b->data; | 93 | buf=b->data; |
| 94 | Free(b); | 94 | OPENSSL_free(b); |
| 95 | } | 95 | } |
| 96 | strncpy(buf,"NO X509_NAME",len); | 96 | strncpy(buf,"NO X509_NAME",len); |
| 97 | return buf; | 97 | return buf; |
| @@ -210,7 +210,7 @@ int i; | |||
| 210 | if (b != NULL) | 210 | if (b != NULL) |
| 211 | { | 211 | { |
| 212 | p=b->data; | 212 | p=b->data; |
| 213 | Free(b); | 213 | OPENSSL_free(b); |
| 214 | } | 214 | } |
| 215 | else | 215 | else |
| 216 | p=buf; | 216 | p=buf; |
diff --git a/src/lib/libcrypto/x509/x509_req.c b/src/lib/libcrypto/x509/x509_req.c index baef8790eb..7eca1bd57a 100644 --- a/src/lib/libcrypto/x509/x509_req.c +++ b/src/lib/libcrypto/x509/x509_req.c | |||
| @@ -83,7 +83,7 @@ X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) | |||
| 83 | ri=ret->req_info; | 83 | ri=ret->req_info; |
| 84 | 84 | ||
| 85 | ri->version->length=1; | 85 | ri->version->length=1; |
| 86 | ri->version->data=(unsigned char *)Malloc(1); | 86 | ri->version->data=(unsigned char *)OPENSSL_malloc(1); |
| 87 | if (ri->version->data == NULL) goto err; | 87 | if (ri->version->data == NULL) goto err; |
| 88 | ri->version->data[0]=0; /* version == 0 */ | 88 | ri->version->data[0]=0; /* version == 0 */ |
| 89 | 89 | ||
| @@ -188,7 +188,7 @@ int X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts, | |||
| 188 | /* Generate encoding of extensions */ | 188 | /* Generate encoding of extensions */ |
| 189 | len = i2d_ASN1_SET_OF_X509_EXTENSION(exts, NULL, i2d_X509_EXTENSION, | 189 | len = i2d_ASN1_SET_OF_X509_EXTENSION(exts, NULL, i2d_X509_EXTENSION, |
| 190 | V_ASN1_SEQUENCE, V_ASN1_UNIVERSAL, IS_SEQUENCE); | 190 | V_ASN1_SEQUENCE, V_ASN1_UNIVERSAL, IS_SEQUENCE); |
| 191 | if(!(p = Malloc(len))) goto err; | 191 | if(!(p = OPENSSL_malloc(len))) goto err; |
| 192 | q = p; | 192 | q = p; |
| 193 | i2d_ASN1_SET_OF_X509_EXTENSION(exts, &q, i2d_X509_EXTENSION, | 193 | i2d_ASN1_SET_OF_X509_EXTENSION(exts, &q, i2d_X509_EXTENSION, |
| 194 | V_ASN1_SEQUENCE, V_ASN1_UNIVERSAL, IS_SEQUENCE); | 194 | V_ASN1_SEQUENCE, V_ASN1_UNIVERSAL, IS_SEQUENCE); |
| @@ -204,7 +204,7 @@ int X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts, | |||
| 204 | if(!sk_X509_ATTRIBUTE_push(req->req_info->attributes, attr)) goto err; | 204 | if(!sk_X509_ATTRIBUTE_push(req->req_info->attributes, attr)) goto err; |
| 205 | return 1; | 205 | return 1; |
| 206 | err: | 206 | err: |
| 207 | if(p) Free(p); | 207 | if(p) OPENSSL_free(p); |
| 208 | X509_ATTRIBUTE_free(attr); | 208 | X509_ATTRIBUTE_free(attr); |
| 209 | ASN1_TYPE_free(at); | 209 | ASN1_TYPE_free(at); |
| 210 | return 0; | 210 | return 0; |
diff --git a/src/lib/libcrypto/x509/x509_set.c b/src/lib/libcrypto/x509/x509_set.c index add842d17a..aaf61ca062 100644 --- a/src/lib/libcrypto/x509/x509_set.c +++ b/src/lib/libcrypto/x509/x509_set.c | |||
| @@ -104,36 +104,36 @@ int X509_set_subject_name(X509 *x, X509_NAME *name) | |||
| 104 | return(X509_NAME_set(&x->cert_info->subject,name)); | 104 | return(X509_NAME_set(&x->cert_info->subject,name)); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | int X509_set_notBefore(X509 *x, ASN1_UTCTIME *tm) | 107 | int X509_set_notBefore(X509 *x, ASN1_TIME *tm) |
| 108 | { | 108 | { |
| 109 | ASN1_UTCTIME *in; | 109 | ASN1_TIME *in; |
| 110 | 110 | ||
| 111 | if ((x == NULL) || (x->cert_info->validity == NULL)) return(0); | 111 | if ((x == NULL) || (x->cert_info->validity == NULL)) return(0); |
| 112 | in=x->cert_info->validity->notBefore; | 112 | in=x->cert_info->validity->notBefore; |
| 113 | if (in != tm) | 113 | if (in != tm) |
| 114 | { | 114 | { |
| 115 | in=M_ASN1_UTCTIME_dup(tm); | 115 | in=M_ASN1_TIME_dup(tm); |
| 116 | if (in != NULL) | 116 | if (in != NULL) |
| 117 | { | 117 | { |
| 118 | M_ASN1_UTCTIME_free(x->cert_info->validity->notBefore); | 118 | M_ASN1_TIME_free(x->cert_info->validity->notBefore); |
| 119 | x->cert_info->validity->notBefore=in; | 119 | x->cert_info->validity->notBefore=in; |
| 120 | } | 120 | } |
| 121 | } | 121 | } |
| 122 | return(in != NULL); | 122 | return(in != NULL); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | int X509_set_notAfter(X509 *x, ASN1_UTCTIME *tm) | 125 | int X509_set_notAfter(X509 *x, ASN1_TIME *tm) |
| 126 | { | 126 | { |
| 127 | ASN1_UTCTIME *in; | 127 | ASN1_TIME *in; |
| 128 | 128 | ||
| 129 | if ((x == NULL) || (x->cert_info->validity == NULL)) return(0); | 129 | if ((x == NULL) || (x->cert_info->validity == NULL)) return(0); |
| 130 | in=x->cert_info->validity->notAfter; | 130 | in=x->cert_info->validity->notAfter; |
| 131 | if (in != tm) | 131 | if (in != tm) |
| 132 | { | 132 | { |
| 133 | in=M_ASN1_UTCTIME_dup(tm); | 133 | in=M_ASN1_TIME_dup(tm); |
| 134 | if (in != NULL) | 134 | if (in != NULL) |
| 135 | { | 135 | { |
| 136 | M_ASN1_UTCTIME_free(x->cert_info->validity->notAfter); | 136 | M_ASN1_TIME_free(x->cert_info->validity->notAfter); |
| 137 | x->cert_info->validity->notAfter=in; | 137 | x->cert_info->validity->notAfter=in; |
| 138 | } | 138 | } |
| 139 | } | 139 | } |
diff --git a/src/lib/libcrypto/x509/x509_trs.c b/src/lib/libcrypto/x509/x509_trs.c index c779aaf94d..a7b1543461 100644 --- a/src/lib/libcrypto/x509/x509_trs.c +++ b/src/lib/libcrypto/x509/x509_trs.c | |||
| @@ -61,7 +61,8 @@ | |||
| 61 | #include <openssl/x509v3.h> | 61 | #include <openssl/x509v3.h> |
| 62 | 62 | ||
| 63 | 63 | ||
| 64 | static int tr_cmp(X509_TRUST **a, X509_TRUST **b); | 64 | static int tr_cmp(const X509_TRUST * const *a, |
| 65 | const X509_TRUST * const *b); | ||
| 65 | static void trtable_free(X509_TRUST *p); | 66 | static void trtable_free(X509_TRUST *p); |
| 66 | 67 | ||
| 67 | static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags); | 68 | static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags); |
| @@ -88,7 +89,8 @@ IMPLEMENT_STACK_OF(X509_TRUST) | |||
| 88 | 89 | ||
| 89 | static STACK_OF(X509_TRUST) *trtable = NULL; | 90 | static STACK_OF(X509_TRUST) *trtable = NULL; |
| 90 | 91 | ||
| 91 | static int tr_cmp(X509_TRUST **a, X509_TRUST **b) | 92 | static int tr_cmp(const X509_TRUST * const *a, |
| 93 | const X509_TRUST * const *b) | ||
| 92 | { | 94 | { |
| 93 | return (*a)->trust - (*b)->trust; | 95 | return (*a)->trust - (*b)->trust; |
| 94 | } | 96 | } |
| @@ -152,15 +154,15 @@ int X509_TRUST_add(int id, int flags, int (*ck)(X509_TRUST *, X509 *, int), | |||
| 152 | idx = X509_TRUST_get_by_id(id); | 154 | idx = X509_TRUST_get_by_id(id); |
| 153 | /* Need a new entry */ | 155 | /* Need a new entry */ |
| 154 | if(idx == -1) { | 156 | if(idx == -1) { |
| 155 | if(!(trtmp = Malloc(sizeof(X509_TRUST)))) { | 157 | if(!(trtmp = OPENSSL_malloc(sizeof(X509_TRUST)))) { |
| 156 | X509err(X509_F_X509_TRUST_ADD,ERR_R_MALLOC_FAILURE); | 158 | X509err(X509_F_X509_TRUST_ADD,ERR_R_MALLOC_FAILURE); |
| 157 | return 0; | 159 | return 0; |
| 158 | } | 160 | } |
| 159 | trtmp->flags = X509_TRUST_DYNAMIC; | 161 | trtmp->flags = X509_TRUST_DYNAMIC; |
| 160 | } else trtmp = X509_TRUST_get0(idx); | 162 | } else trtmp = X509_TRUST_get0(idx); |
| 161 | 163 | ||
| 162 | /* Free existing name if dynamic */ | 164 | /* OPENSSL_free existing name if dynamic */ |
| 163 | if(trtmp->flags & X509_TRUST_DYNAMIC_NAME) Free(trtmp->name); | 165 | if(trtmp->flags & X509_TRUST_DYNAMIC_NAME) OPENSSL_free(trtmp->name); |
| 164 | /* dup supplied name */ | 166 | /* dup supplied name */ |
| 165 | if(!(trtmp->name = BUF_strdup(name))) { | 167 | if(!(trtmp->name = BUF_strdup(name))) { |
| 166 | X509err(X509_F_X509_TRUST_ADD,ERR_R_MALLOC_FAILURE); | 168 | X509err(X509_F_X509_TRUST_ADD,ERR_R_MALLOC_FAILURE); |
| @@ -196,8 +198,8 @@ static void trtable_free(X509_TRUST *p) | |||
| 196 | if (p->flags & X509_TRUST_DYNAMIC) | 198 | if (p->flags & X509_TRUST_DYNAMIC) |
| 197 | { | 199 | { |
| 198 | if (p->flags & X509_TRUST_DYNAMIC_NAME) | 200 | if (p->flags & X509_TRUST_DYNAMIC_NAME) |
| 199 | Free(p->name); | 201 | OPENSSL_free(p->name); |
| 200 | Free(p); | 202 | OPENSSL_free(p); |
| 201 | } | 203 | } |
| 202 | } | 204 | } |
| 203 | 205 | ||
diff --git a/src/lib/libcrypto/x509/x509_txt.c b/src/lib/libcrypto/x509/x509_txt.c index 209cf53191..cfb478d4bc 100644 --- a/src/lib/libcrypto/x509/x509_txt.c +++ b/src/lib/libcrypto/x509/x509_txt.c | |||
| @@ -132,6 +132,15 @@ const char *X509_verify_cert_error_string(long n) | |||
| 132 | return ("certificate rejected"); | 132 | return ("certificate rejected"); |
| 133 | case X509_V_ERR_APPLICATION_VERIFICATION: | 133 | case X509_V_ERR_APPLICATION_VERIFICATION: |
| 134 | return("application verification failure"); | 134 | return("application verification failure"); |
| 135 | case X509_V_ERR_SUBJECT_ISSUER_MISMATCH: | ||
| 136 | return("subject issuer mismatch"); | ||
| 137 | case X509_V_ERR_AKID_SKID_MISMATCH: | ||
| 138 | return("authority and subject key identifier mismatch"); | ||
| 139 | case X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH: | ||
| 140 | return("authority and issuer serial number mismatch"); | ||
| 141 | case X509_V_ERR_KEYUSAGE_NO_CERTSIGN: | ||
| 142 | return("key usage does not include certificate signing"); | ||
| 143 | |||
| 135 | default: | 144 | default: |
| 136 | sprintf(buf,"error number %ld",n); | 145 | sprintf(buf,"error number %ld",n); |
| 137 | return(buf); | 146 | return(buf); |
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index 3ddb2303d3..0f4110cc64 100644 --- a/src/lib/libcrypto/x509/x509_vfy.c +++ b/src/lib/libcrypto/x509/x509_vfy.c | |||
| @@ -71,6 +71,8 @@ | |||
| 71 | #include <openssl/objects.h> | 71 | #include <openssl/objects.h> |
| 72 | 72 | ||
| 73 | static int null_callback(int ok,X509_STORE_CTX *e); | 73 | static int null_callback(int ok,X509_STORE_CTX *e); |
| 74 | static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer); | ||
| 75 | static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x); | ||
| 74 | static int check_chain_purpose(X509_STORE_CTX *ctx); | 76 | static int check_chain_purpose(X509_STORE_CTX *ctx); |
| 75 | static int check_trust(X509_STORE_CTX *ctx); | 77 | static int check_trust(X509_STORE_CTX *ctx); |
| 76 | static int internal_verify(X509_STORE_CTX *ctx); | 78 | static int internal_verify(X509_STORE_CTX *ctx); |
| @@ -85,13 +87,13 @@ static STACK *x509_store_method=NULL; | |||
| 85 | 87 | ||
| 86 | static int null_callback(int ok, X509_STORE_CTX *e) | 88 | static int null_callback(int ok, X509_STORE_CTX *e) |
| 87 | { | 89 | { |
| 88 | return(ok); | 90 | return ok; |
| 89 | } | 91 | } |
| 90 | 92 | ||
| 91 | #if 0 | 93 | #if 0 |
| 92 | static int x509_subject_cmp(X509 **a, X509 **b) | 94 | static int x509_subject_cmp(X509 **a, X509 **b) |
| 93 | { | 95 | { |
| 94 | return(X509_subject_name_cmp(*a,*b)); | 96 | return X509_subject_name_cmp(*a,*b); |
| 95 | } | 97 | } |
| 96 | #endif | 98 | #endif |
| 97 | 99 | ||
| @@ -99,7 +101,6 @@ int X509_verify_cert(X509_STORE_CTX *ctx) | |||
| 99 | { | 101 | { |
| 100 | X509 *x,*xtmp,*chain_ss=NULL; | 102 | X509 *x,*xtmp,*chain_ss=NULL; |
| 101 | X509_NAME *xn; | 103 | X509_NAME *xn; |
| 102 | X509_OBJECT obj; | ||
| 103 | int depth,i,ok=0; | 104 | int depth,i,ok=0; |
| 104 | int num; | 105 | int num; |
| 105 | int (*cb)(); | 106 | int (*cb)(); |
| @@ -108,10 +109,10 @@ int X509_verify_cert(X509_STORE_CTX *ctx) | |||
| 108 | if (ctx->cert == NULL) | 109 | if (ctx->cert == NULL) |
| 109 | { | 110 | { |
| 110 | X509err(X509_F_X509_VERIFY_CERT,X509_R_NO_CERT_SET_FOR_US_TO_VERIFY); | 111 | X509err(X509_F_X509_VERIFY_CERT,X509_R_NO_CERT_SET_FOR_US_TO_VERIFY); |
| 111 | return(-1); | 112 | return -1; |
| 112 | } | 113 | } |
| 113 | 114 | ||
| 114 | cb=ctx->ctx->verify_cb; | 115 | cb=ctx->verify_cb; |
| 115 | if (cb == NULL) cb=null_callback; | 116 | if (cb == NULL) cb=null_callback; |
| 116 | 117 | ||
| 117 | /* first we make sure the chain we are going to build is | 118 | /* first we make sure the chain we are going to build is |
| @@ -152,13 +153,12 @@ int X509_verify_cert(X509_STORE_CTX *ctx) | |||
| 152 | 153 | ||
| 153 | /* If we are self signed, we break */ | 154 | /* If we are self signed, we break */ |
| 154 | xn=X509_get_issuer_name(x); | 155 | xn=X509_get_issuer_name(x); |
| 155 | if (X509_NAME_cmp(X509_get_subject_name(x),xn) == 0) | 156 | if (ctx->check_issued(ctx, x,x)) break; |
| 156 | break; | ||
| 157 | 157 | ||
| 158 | /* If we were passed a cert chain, use it first */ | 158 | /* If we were passed a cert chain, use it first */ |
| 159 | if (ctx->untrusted != NULL) | 159 | if (ctx->untrusted != NULL) |
| 160 | { | 160 | { |
| 161 | xtmp=X509_find_by_subject(sktmp,xn); | 161 | xtmp=find_issuer(ctx, sktmp,x); |
| 162 | if (xtmp != NULL) | 162 | if (xtmp != NULL) |
| 163 | { | 163 | { |
| 164 | if (!sk_X509_push(ctx->chain,xtmp)) | 164 | if (!sk_X509_push(ctx->chain,xtmp)) |
| @@ -183,11 +183,14 @@ int X509_verify_cert(X509_STORE_CTX *ctx) | |||
| 183 | * certificates. We now need to add at least one trusted one, | 183 | * certificates. We now need to add at least one trusted one, |
| 184 | * if possible, otherwise we complain. */ | 184 | * if possible, otherwise we complain. */ |
| 185 | 185 | ||
| 186 | /* Examine last certificate in chain and see if it | ||
| 187 | * is self signed. | ||
| 188 | */ | ||
| 189 | |||
| 186 | i=sk_X509_num(ctx->chain); | 190 | i=sk_X509_num(ctx->chain); |
| 187 | x=sk_X509_value(ctx->chain,i-1); | 191 | x=sk_X509_value(ctx->chain,i-1); |
| 188 | xn = X509_get_subject_name(x); | 192 | xn = X509_get_subject_name(x); |
| 189 | if (X509_NAME_cmp(xn,X509_get_issuer_name(x)) | 193 | if (ctx->check_issued(ctx, x, x)) |
| 190 | == 0) | ||
| 191 | { | 194 | { |
| 192 | /* we have a self signed certificate */ | 195 | /* we have a self signed certificate */ |
| 193 | if (sk_X509_num(ctx->chain) == 1) | 196 | if (sk_X509_num(ctx->chain) == 1) |
| @@ -196,13 +199,13 @@ int X509_verify_cert(X509_STORE_CTX *ctx) | |||
| 196 | * we can find it in the store. We must have an exact | 199 | * we can find it in the store. We must have an exact |
| 197 | * match to avoid possible impersonation. | 200 | * match to avoid possible impersonation. |
| 198 | */ | 201 | */ |
| 199 | ok=X509_STORE_get_by_subject(ctx,X509_LU_X509,xn,&obj); | 202 | ok = ctx->get_issuer(&xtmp, ctx, x); |
| 200 | if ((ok != X509_LU_X509) || X509_cmp(x, obj.data.x509)) | 203 | if ((ok <= 0) || X509_cmp(x, xtmp)) |
| 201 | { | 204 | { |
| 202 | ctx->error=X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT; | 205 | ctx->error=X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT; |
| 203 | ctx->current_cert=x; | 206 | ctx->current_cert=x; |
| 204 | ctx->error_depth=i-1; | 207 | ctx->error_depth=i-1; |
| 205 | if(ok == X509_LU_X509) X509_OBJECT_free_contents(&obj); | 208 | if (ok == 1) X509_free(xtmp); |
| 206 | ok=cb(0,ctx); | 209 | ok=cb(0,ctx); |
| 207 | if (!ok) goto end; | 210 | if (!ok) goto end; |
| 208 | } | 211 | } |
| @@ -212,14 +215,14 @@ int X509_verify_cert(X509_STORE_CTX *ctx) | |||
| 212 | * so we get any trust settings. | 215 | * so we get any trust settings. |
| 213 | */ | 216 | */ |
| 214 | X509_free(x); | 217 | X509_free(x); |
| 215 | x = obj.data.x509; | 218 | x = xtmp; |
| 216 | sk_X509_set(ctx->chain, i - 1, x); | 219 | sk_X509_set(ctx->chain, i - 1, x); |
| 217 | ctx->last_untrusted=0; | 220 | ctx->last_untrusted=0; |
| 218 | } | 221 | } |
| 219 | } | 222 | } |
| 220 | else | 223 | else |
| 221 | { | 224 | { |
| 222 | /* worry more about this one elsewhere */ | 225 | /* extract and save self signed certificate for later use */ |
| 223 | chain_ss=sk_X509_pop(ctx->chain); | 226 | chain_ss=sk_X509_pop(ctx->chain); |
| 224 | ctx->last_untrusted--; | 227 | ctx->last_untrusted--; |
| 225 | num--; | 228 | num--; |
| @@ -235,41 +238,30 @@ int X509_verify_cert(X509_STORE_CTX *ctx) | |||
| 235 | 238 | ||
| 236 | /* If we are self signed, we break */ | 239 | /* If we are self signed, we break */ |
| 237 | xn=X509_get_issuer_name(x); | 240 | xn=X509_get_issuer_name(x); |
| 238 | if (X509_NAME_cmp(X509_get_subject_name(x),xn) == 0) | 241 | if (ctx->check_issued(ctx,x,x)) break; |
| 239 | break; | ||
| 240 | 242 | ||
| 241 | ok=X509_STORE_get_by_subject(ctx,X509_LU_X509,xn,&obj); | 243 | ok = ctx->get_issuer(&xtmp, ctx, x); |
| 242 | if (ok != X509_LU_X509) | 244 | |
| 243 | { | 245 | if (ok < 0) return ok; |
| 244 | if (ok == X509_LU_RETRY) | 246 | if (ok == 0) break; |
| 245 | { | 247 | |
| 246 | X509_OBJECT_free_contents(&obj); | 248 | x = xtmp; |
| 247 | X509err(X509_F_X509_VERIFY_CERT,X509_R_SHOULD_RETRY); | 249 | if (!sk_X509_push(ctx->chain,x)) |
| 248 | return(ok); | ||
| 249 | } | ||
| 250 | else if (ok != X509_LU_FAIL) | ||
| 251 | { | ||
| 252 | X509_OBJECT_free_contents(&obj); | ||
| 253 | /* not good :-(, break anyway */ | ||
| 254 | return(ok); | ||
| 255 | } | ||
| 256 | break; | ||
| 257 | } | ||
| 258 | x=obj.data.x509; | ||
| 259 | if (!sk_X509_push(ctx->chain,obj.data.x509)) | ||
| 260 | { | 250 | { |
| 261 | X509_OBJECT_free_contents(&obj); | 251 | X509_free(xtmp); |
| 262 | X509err(X509_F_X509_VERIFY_CERT,ERR_R_MALLOC_FAILURE); | 252 | X509err(X509_F_X509_VERIFY_CERT,ERR_R_MALLOC_FAILURE); |
| 263 | return(0); | 253 | return 0; |
| 264 | } | 254 | } |
| 265 | num++; | 255 | num++; |
| 266 | } | 256 | } |
| 267 | 257 | ||
| 268 | /* we now have our chain, lets check it... */ | 258 | /* we now have our chain, lets check it... */ |
| 269 | xn=X509_get_issuer_name(x); | 259 | xn=X509_get_issuer_name(x); |
| 270 | if (X509_NAME_cmp(X509_get_subject_name(x),xn) != 0) | 260 | |
| 261 | /* Is last certificate looked up self signed? */ | ||
| 262 | if (!ctx->check_issued(ctx,x,x)) | ||
| 271 | { | 263 | { |
| 272 | if ((chain_ss == NULL) || (X509_NAME_cmp(X509_get_subject_name(chain_ss),xn) != 0)) | 264 | if ((chain_ss == NULL) || !ctx->check_issued(ctx, x, chain_ss)) |
| 273 | { | 265 | { |
| 274 | if (ctx->last_untrusted >= num) | 266 | if (ctx->last_untrusted >= num) |
| 275 | ctx->error=X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY; | 267 | ctx->error=X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY; |
| @@ -294,22 +286,22 @@ int X509_verify_cert(X509_STORE_CTX *ctx) | |||
| 294 | } | 286 | } |
| 295 | 287 | ||
| 296 | /* We have the chain complete: now we need to check its purpose */ | 288 | /* We have the chain complete: now we need to check its purpose */ |
| 297 | if(ctx->purpose > 0) ok = check_chain_purpose(ctx); | 289 | if (ctx->purpose > 0) ok = check_chain_purpose(ctx); |
| 298 | 290 | ||
| 299 | if(!ok) goto end; | 291 | if (!ok) goto end; |
| 300 | 292 | ||
| 301 | /* The chain extensions are OK: check trust */ | 293 | /* The chain extensions are OK: check trust */ |
| 302 | 294 | ||
| 303 | if(ctx->trust > 0) ok = check_trust(ctx); | 295 | if (ctx->trust > 0) ok = check_trust(ctx); |
| 304 | 296 | ||
| 305 | if(!ok) goto end; | 297 | if (!ok) goto end; |
| 306 | 298 | ||
| 307 | /* We may as well copy down any DSA parameters that are required */ | 299 | /* We may as well copy down any DSA parameters that are required */ |
| 308 | X509_get_pubkey_parameters(NULL,ctx->chain); | 300 | X509_get_pubkey_parameters(NULL,ctx->chain); |
| 309 | 301 | ||
| 310 | /* At this point, we have a chain and just need to verify it */ | 302 | /* At this point, we have a chain and just need to verify it */ |
| 311 | if (ctx->ctx->verify != NULL) | 303 | if (ctx->verify != NULL) |
| 312 | ok=ctx->ctx->verify(ctx); | 304 | ok=ctx->verify(ctx); |
| 313 | else | 305 | else |
| 314 | ok=internal_verify(ctx); | 306 | ok=internal_verify(ctx); |
| 315 | if (0) | 307 | if (0) |
| @@ -319,9 +311,61 @@ end: | |||
| 319 | } | 311 | } |
| 320 | if (sktmp != NULL) sk_X509_free(sktmp); | 312 | if (sktmp != NULL) sk_X509_free(sktmp); |
| 321 | if (chain_ss != NULL) X509_free(chain_ss); | 313 | if (chain_ss != NULL) X509_free(chain_ss); |
| 322 | return(ok); | 314 | return ok; |
| 323 | } | 315 | } |
| 324 | 316 | ||
| 317 | |||
| 318 | /* Given a STACK_OF(X509) find the issuer of cert (if any) | ||
| 319 | */ | ||
| 320 | |||
| 321 | static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x) | ||
| 322 | { | ||
| 323 | int i; | ||
| 324 | X509 *issuer; | ||
| 325 | for (i = 0; i < sk_X509_num(sk); i++) | ||
| 326 | { | ||
| 327 | issuer = sk_X509_value(sk, i); | ||
| 328 | if (ctx->check_issued(ctx, x, issuer)) | ||
| 329 | return issuer; | ||
| 330 | } | ||
| 331 | return NULL; | ||
| 332 | } | ||
| 333 | |||
| 334 | /* Given a possible certificate and issuer check them */ | ||
| 335 | |||
| 336 | static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer) | ||
| 337 | { | ||
| 338 | int ret; | ||
| 339 | ret = X509_check_issued(issuer, x); | ||
| 340 | if (ret == X509_V_OK) | ||
| 341 | return 1; | ||
| 342 | /* If we haven't asked for issuer errors don't set ctx */ | ||
| 343 | if (!(ctx->flags & X509_V_FLAG_CB_ISSUER_CHECK)) | ||
| 344 | return 0; | ||
| 345 | |||
| 346 | ctx->error = ret; | ||
| 347 | ctx->current_cert = x; | ||
| 348 | ctx->current_issuer = issuer; | ||
| 349 | if (ctx->verify_cb) | ||
| 350 | return ctx->verify_cb(0, ctx); | ||
| 351 | return 0; | ||
| 352 | } | ||
| 353 | |||
| 354 | /* Alternative lookup method: look from a STACK stored in other_ctx */ | ||
| 355 | |||
| 356 | static int get_issuer_sk(X509 **issuer, X509_STORE_CTX *ctx, X509 *x) | ||
| 357 | { | ||
| 358 | *issuer = find_issuer(ctx, ctx->other_ctx, x); | ||
| 359 | if (*issuer) | ||
| 360 | { | ||
| 361 | CRYPTO_add(&(*issuer)->references,1,CRYPTO_LOCK_X509); | ||
| 362 | return 1; | ||
| 363 | } | ||
| 364 | else | ||
| 365 | return 0; | ||
| 366 | } | ||
| 367 | |||
| 368 | |||
| 325 | /* Check a certificate chains extensions for consistency | 369 | /* Check a certificate chains extensions for consistency |
| 326 | * with the supplied purpose | 370 | * with the supplied purpose |
| 327 | */ | 371 | */ |
| @@ -334,32 +378,37 @@ static int check_chain_purpose(X509_STORE_CTX *ctx) | |||
| 334 | int i, ok=0; | 378 | int i, ok=0; |
| 335 | X509 *x; | 379 | X509 *x; |
| 336 | int (*cb)(); | 380 | int (*cb)(); |
| 337 | cb=ctx->ctx->verify_cb; | 381 | cb=ctx->verify_cb; |
| 338 | if (cb == NULL) cb=null_callback; | 382 | if (cb == NULL) cb=null_callback; |
| 339 | /* Check all untrusted certificates */ | 383 | /* Check all untrusted certificates */ |
| 340 | for(i = 0; i < ctx->last_untrusted; i++) { | 384 | for (i = 0; i < ctx->last_untrusted; i++) |
| 385 | { | ||
| 341 | x = sk_X509_value(ctx->chain, i); | 386 | x = sk_X509_value(ctx->chain, i); |
| 342 | if(!X509_check_purpose(x, ctx->purpose, i)) { | 387 | if (!X509_check_purpose(x, ctx->purpose, i)) |
| 343 | if(i) ctx->error = X509_V_ERR_INVALID_CA; | 388 | { |
| 344 | else ctx->error = X509_V_ERR_INVALID_PURPOSE; | 389 | if (i) |
| 390 | ctx->error = X509_V_ERR_INVALID_CA; | ||
| 391 | else | ||
| 392 | ctx->error = X509_V_ERR_INVALID_PURPOSE; | ||
| 345 | ctx->error_depth = i; | 393 | ctx->error_depth = i; |
| 346 | ctx->current_cert = x; | 394 | ctx->current_cert = x; |
| 347 | ok=cb(0,ctx); | 395 | ok=cb(0,ctx); |
| 348 | if(!ok) goto end; | 396 | if (!ok) goto end; |
| 349 | } | 397 | } |
| 350 | /* Check pathlen */ | 398 | /* Check pathlen */ |
| 351 | if((i > 1) && (x->ex_pathlen != -1) | 399 | if ((i > 1) && (x->ex_pathlen != -1) |
| 352 | && (i > (x->ex_pathlen + 1))) { | 400 | && (i > (x->ex_pathlen + 1))) |
| 401 | { | ||
| 353 | ctx->error = X509_V_ERR_PATH_LENGTH_EXCEEDED; | 402 | ctx->error = X509_V_ERR_PATH_LENGTH_EXCEEDED; |
| 354 | ctx->error_depth = i; | 403 | ctx->error_depth = i; |
| 355 | ctx->current_cert = x; | 404 | ctx->current_cert = x; |
| 356 | ok=cb(0,ctx); | 405 | ok=cb(0,ctx); |
| 357 | if(!ok) goto end; | 406 | if (!ok) goto end; |
| 407 | } | ||
| 358 | } | 408 | } |
| 359 | } | ||
| 360 | ok = 1; | 409 | ok = 1; |
| 361 | end: | 410 | end: |
| 362 | return(ok); | 411 | return ok; |
| 363 | #endif | 412 | #endif |
| 364 | } | 413 | } |
| 365 | 414 | ||
| @@ -371,19 +420,22 @@ static int check_trust(X509_STORE_CTX *ctx) | |||
| 371 | int i, ok; | 420 | int i, ok; |
| 372 | X509 *x; | 421 | X509 *x; |
| 373 | int (*cb)(); | 422 | int (*cb)(); |
| 374 | cb=ctx->ctx->verify_cb; | 423 | cb=ctx->verify_cb; |
| 375 | if (cb == NULL) cb=null_callback; | 424 | if (cb == NULL) cb=null_callback; |
| 376 | /* For now just check the last certificate in the chain */ | 425 | /* For now just check the last certificate in the chain */ |
| 377 | i = sk_X509_num(ctx->chain) - 1; | 426 | i = sk_X509_num(ctx->chain) - 1; |
| 378 | x = sk_X509_value(ctx->chain, i); | 427 | x = sk_X509_value(ctx->chain, i); |
| 379 | ok = X509_check_trust(x, ctx->trust, 0); | 428 | ok = X509_check_trust(x, ctx->trust, 0); |
| 380 | if(ok == X509_TRUST_TRUSTED) return 1; | 429 | if (ok == X509_TRUST_TRUSTED) |
| 430 | return 1; | ||
| 381 | ctx->error_depth = sk_X509_num(ctx->chain) - 1; | 431 | ctx->error_depth = sk_X509_num(ctx->chain) - 1; |
| 382 | ctx->current_cert = x; | 432 | ctx->current_cert = x; |
| 383 | if(ok == X509_TRUST_REJECTED) ctx->error = X509_V_ERR_CERT_REJECTED; | 433 | if (ok == X509_TRUST_REJECTED) |
| 384 | else ctx->error = X509_V_ERR_CERT_UNTRUSTED; | 434 | ctx->error = X509_V_ERR_CERT_REJECTED; |
| 435 | else | ||
| 436 | ctx->error = X509_V_ERR_CERT_UNTRUSTED; | ||
| 385 | ok = cb(0, ctx); | 437 | ok = cb(0, ctx); |
| 386 | return(ok); | 438 | return ok; |
| 387 | #endif | 439 | #endif |
| 388 | } | 440 | } |
| 389 | 441 | ||
| @@ -392,17 +444,21 @@ static int internal_verify(X509_STORE_CTX *ctx) | |||
| 392 | int i,ok=0,n; | 444 | int i,ok=0,n; |
| 393 | X509 *xs,*xi; | 445 | X509 *xs,*xi; |
| 394 | EVP_PKEY *pkey=NULL; | 446 | EVP_PKEY *pkey=NULL; |
| 447 | time_t *ptime; | ||
| 395 | int (*cb)(); | 448 | int (*cb)(); |
| 396 | 449 | ||
| 397 | cb=ctx->ctx->verify_cb; | 450 | cb=ctx->verify_cb; |
| 398 | if (cb == NULL) cb=null_callback; | 451 | if (cb == NULL) cb=null_callback; |
| 399 | 452 | ||
| 400 | n=sk_X509_num(ctx->chain); | 453 | n=sk_X509_num(ctx->chain); |
| 401 | ctx->error_depth=n-1; | 454 | ctx->error_depth=n-1; |
| 402 | n--; | 455 | n--; |
| 403 | xi=sk_X509_value(ctx->chain,n); | 456 | xi=sk_X509_value(ctx->chain,n); |
| 404 | if (X509_NAME_cmp(X509_get_subject_name(xi), | 457 | if (ctx->flags & X509_V_FLAG_USE_CHECK_TIME) |
| 405 | X509_get_issuer_name(xi)) == 0) | 458 | ptime = &ctx->check_time; |
| 459 | else | ||
| 460 | ptime = NULL; | ||
| 461 | if (ctx->check_issued(ctx, xi, xi)) | ||
| 406 | xs=xi; | 462 | xs=xi; |
| 407 | else | 463 | else |
| 408 | { | 464 | { |
| @@ -448,7 +504,7 @@ static int internal_verify(X509_STORE_CTX *ctx) | |||
| 448 | EVP_PKEY_free(pkey); | 504 | EVP_PKEY_free(pkey); |
| 449 | pkey=NULL; | 505 | pkey=NULL; |
| 450 | 506 | ||
| 451 | i=X509_cmp_current_time(X509_get_notBefore(xs)); | 507 | i=X509_cmp_time(X509_get_notBefore(xs), ptime); |
| 452 | if (i == 0) | 508 | if (i == 0) |
| 453 | { | 509 | { |
| 454 | ctx->error=X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD; | 510 | ctx->error=X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD; |
| @@ -466,7 +522,7 @@ static int internal_verify(X509_STORE_CTX *ctx) | |||
| 466 | xs->valid=1; | 522 | xs->valid=1; |
| 467 | } | 523 | } |
| 468 | 524 | ||
| 469 | i=X509_cmp_current_time(X509_get_notAfter(xs)); | 525 | i=X509_cmp_time(X509_get_notAfter(xs), ptime); |
| 470 | if (i == 0) | 526 | if (i == 0) |
| 471 | { | 527 | { |
| 472 | ctx->error=X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD; | 528 | ctx->error=X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD; |
| @@ -499,13 +555,18 @@ static int internal_verify(X509_STORE_CTX *ctx) | |||
| 499 | } | 555 | } |
| 500 | ok=1; | 556 | ok=1; |
| 501 | end: | 557 | end: |
| 502 | return(ok); | 558 | return ok; |
| 503 | } | 559 | } |
| 504 | 560 | ||
| 505 | int X509_cmp_current_time(ASN1_UTCTIME *ctm) | 561 | int X509_cmp_current_time(ASN1_TIME *ctm) |
| 562 | { | ||
| 563 | return X509_cmp_time(ctm, NULL); | ||
| 564 | } | ||
| 565 | |||
| 566 | int X509_cmp_time(ASN1_TIME *ctm, time_t *cmp_time) | ||
| 506 | { | 567 | { |
| 507 | char *str; | 568 | char *str; |
| 508 | ASN1_UTCTIME atm; | 569 | ASN1_TIME atm; |
| 509 | time_t offset; | 570 | time_t offset; |
| 510 | char buff1[24],buff2[24],*p; | 571 | char buff1[24],buff2[24],*p; |
| 511 | int i,j; | 572 | int i,j; |
| @@ -513,14 +574,35 @@ int X509_cmp_current_time(ASN1_UTCTIME *ctm) | |||
| 513 | p=buff1; | 574 | p=buff1; |
| 514 | i=ctm->length; | 575 | i=ctm->length; |
| 515 | str=(char *)ctm->data; | 576 | str=(char *)ctm->data; |
| 516 | if ((i < 11) || (i > 17)) return(0); | 577 | if (ctm->type == V_ASN1_UTCTIME) |
| 517 | memcpy(p,str,10); | 578 | { |
| 518 | p+=10; | 579 | if ((i < 11) || (i > 17)) return 0; |
| 519 | str+=10; | 580 | memcpy(p,str,10); |
| 581 | p+=10; | ||
| 582 | str+=10; | ||
| 583 | } | ||
| 584 | else | ||
| 585 | { | ||
| 586 | if (i < 13) return 0; | ||
| 587 | memcpy(p,str,12); | ||
| 588 | p+=12; | ||
| 589 | str+=12; | ||
| 590 | } | ||
| 520 | 591 | ||
| 521 | if ((*str == 'Z') || (*str == '-') || (*str == '+')) | 592 | if ((*str == 'Z') || (*str == '-') || (*str == '+')) |
| 522 | { *(p++)='0'; *(p++)='0'; } | 593 | { *(p++)='0'; *(p++)='0'; } |
| 523 | else { *(p++)= *(str++); *(p++)= *(str++); } | 594 | else |
| 595 | { | ||
| 596 | *(p++)= *(str++); | ||
| 597 | *(p++)= *(str++); | ||
| 598 | /* Skip any fractional seconds... */ | ||
| 599 | if (*str == '.') | ||
| 600 | { | ||
| 601 | str++; | ||
| 602 | while ((*str >= '0') && (*str <= '9')) str++; | ||
| 603 | } | ||
| 604 | |||
| 605 | } | ||
| 524 | *(p++)='Z'; | 606 | *(p++)='Z'; |
| 525 | *(p++)='\0'; | 607 | *(p++)='\0'; |
| 526 | 608 | ||
| @@ -529,39 +611,51 @@ int X509_cmp_current_time(ASN1_UTCTIME *ctm) | |||
| 529 | else | 611 | else |
| 530 | { | 612 | { |
| 531 | if ((*str != '+') && (str[5] != '-')) | 613 | if ((*str != '+') && (str[5] != '-')) |
| 532 | return(0); | 614 | return 0; |
| 533 | offset=((str[1]-'0')*10+(str[2]-'0'))*60; | 615 | offset=((str[1]-'0')*10+(str[2]-'0'))*60; |
| 534 | offset+=(str[3]-'0')*10+(str[4]-'0'); | 616 | offset+=(str[3]-'0')*10+(str[4]-'0'); |
| 535 | if (*str == '-') | 617 | if (*str == '-') |
| 536 | offset= -offset; | 618 | offset= -offset; |
| 537 | } | 619 | } |
| 538 | atm.type=V_ASN1_UTCTIME; | 620 | atm.type=ctm->type; |
| 539 | atm.length=sizeof(buff2); | 621 | atm.length=sizeof(buff2); |
| 540 | atm.data=(unsigned char *)buff2; | 622 | atm.data=(unsigned char *)buff2; |
| 541 | 623 | ||
| 542 | X509_gmtime_adj(&atm,-offset*60); | 624 | X509_time_adj(&atm,-offset*60, cmp_time); |
| 543 | 625 | ||
| 544 | i=(buff1[0]-'0')*10+(buff1[1]-'0'); | 626 | if (ctm->type == V_ASN1_UTCTIME) |
| 545 | if (i < 50) i+=100; /* cf. RFC 2459 */ | 627 | { |
| 546 | j=(buff2[0]-'0')*10+(buff2[1]-'0'); | 628 | i=(buff1[0]-'0')*10+(buff1[1]-'0'); |
| 547 | if (j < 50) j+=100; | 629 | if (i < 50) i+=100; /* cf. RFC 2459 */ |
| 630 | j=(buff2[0]-'0')*10+(buff2[1]-'0'); | ||
| 631 | if (j < 50) j+=100; | ||
| 548 | 632 | ||
| 549 | if (i < j) return (-1); | 633 | if (i < j) return -1; |
| 550 | if (i > j) return (1); | 634 | if (i > j) return 1; |
| 635 | } | ||
| 551 | i=strcmp(buff1,buff2); | 636 | i=strcmp(buff1,buff2); |
| 552 | if (i == 0) /* wait a second then return younger :-) */ | 637 | if (i == 0) /* wait a second then return younger :-) */ |
| 553 | return(-1); | 638 | return -1; |
| 554 | else | 639 | else |
| 555 | return(i); | 640 | return i; |
| 556 | } | 641 | } |
| 557 | 642 | ||
| 558 | ASN1_UTCTIME *X509_gmtime_adj(ASN1_UTCTIME *s, long adj) | 643 | ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj) |
| 644 | { | ||
| 645 | return X509_time_adj(s, adj, NULL); | ||
| 646 | } | ||
| 647 | |||
| 648 | ASN1_TIME *X509_time_adj(ASN1_TIME *s, long adj, time_t *in_tm) | ||
| 559 | { | 649 | { |
| 560 | time_t t; | 650 | time_t t; |
| 561 | 651 | ||
| 562 | time(&t); | 652 | if (in_tm) t = *in_tm; |
| 653 | else time(&t); | ||
| 654 | |||
| 563 | t+=adj; | 655 | t+=adj; |
| 564 | return(ASN1_UTCTIME_set(s,t)); | 656 | if (!s) return ASN1_TIME_set(s, t); |
| 657 | if (s->type == V_ASN1_UTCTIME) return ASN1_UTCTIME_set(s,t); | ||
| 658 | return ASN1_GENERALIZEDTIME_set(s, t); | ||
| 565 | } | 659 | } |
| 566 | 660 | ||
| 567 | int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) | 661 | int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) |
| @@ -569,7 +663,7 @@ int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) | |||
| 569 | EVP_PKEY *ktmp=NULL,*ktmp2; | 663 | EVP_PKEY *ktmp=NULL,*ktmp2; |
| 570 | int i,j; | 664 | int i,j; |
| 571 | 665 | ||
| 572 | if ((pkey != NULL) && !EVP_PKEY_missing_parameters(pkey)) return(1); | 666 | if ((pkey != NULL) && !EVP_PKEY_missing_parameters(pkey)) return 1; |
| 573 | 667 | ||
| 574 | for (i=0; i<sk_X509_num(chain); i++) | 668 | for (i=0; i<sk_X509_num(chain); i++) |
| 575 | { | 669 | { |
| @@ -577,7 +671,7 @@ int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) | |||
| 577 | if (ktmp == NULL) | 671 | if (ktmp == NULL) |
| 578 | { | 672 | { |
| 579 | X509err(X509_F_X509_GET_PUBKEY_PARAMETERS,X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY); | 673 | X509err(X509_F_X509_GET_PUBKEY_PARAMETERS,X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY); |
| 580 | return(0); | 674 | return 0; |
| 581 | } | 675 | } |
| 582 | if (!EVP_PKEY_missing_parameters(ktmp)) | 676 | if (!EVP_PKEY_missing_parameters(ktmp)) |
| 583 | break; | 677 | break; |
| @@ -590,7 +684,7 @@ int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) | |||
| 590 | if (ktmp == NULL) | 684 | if (ktmp == NULL) |
| 591 | { | 685 | { |
| 592 | X509err(X509_F_X509_GET_PUBKEY_PARAMETERS,X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN); | 686 | X509err(X509_F_X509_GET_PUBKEY_PARAMETERS,X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN); |
| 593 | return(0); | 687 | return 0; |
| 594 | } | 688 | } |
| 595 | 689 | ||
| 596 | /* first, populate the other certs */ | 690 | /* first, populate the other certs */ |
| @@ -603,101 +697,31 @@ int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) | |||
| 603 | 697 | ||
| 604 | if (pkey != NULL) EVP_PKEY_copy_parameters(pkey,ktmp); | 698 | if (pkey != NULL) EVP_PKEY_copy_parameters(pkey,ktmp); |
| 605 | EVP_PKEY_free(ktmp); | 699 | EVP_PKEY_free(ktmp); |
| 606 | return(1); | 700 | return 1; |
| 607 | } | ||
| 608 | |||
| 609 | int X509_STORE_add_cert(X509_STORE *ctx, X509 *x) | ||
| 610 | { | ||
| 611 | X509_OBJECT *obj,*r; | ||
| 612 | int ret=1; | ||
| 613 | |||
| 614 | if (x == NULL) return(0); | ||
| 615 | obj=(X509_OBJECT *)Malloc(sizeof(X509_OBJECT)); | ||
| 616 | if (obj == NULL) | ||
| 617 | { | ||
| 618 | X509err(X509_F_X509_STORE_ADD_CERT,ERR_R_MALLOC_FAILURE); | ||
| 619 | return(0); | ||
| 620 | } | ||
| 621 | obj->type=X509_LU_X509; | ||
| 622 | obj->data.x509=x; | ||
| 623 | |||
| 624 | CRYPTO_w_lock(CRYPTO_LOCK_X509_STORE); | ||
| 625 | |||
| 626 | X509_OBJECT_up_ref_count(obj); | ||
| 627 | |||
| 628 | r=(X509_OBJECT *)lh_insert(ctx->certs,obj); | ||
| 629 | if (r != NULL) | ||
| 630 | { /* oops, put it back */ | ||
| 631 | lh_delete(ctx->certs,obj); | ||
| 632 | X509_OBJECT_free_contents(obj); | ||
| 633 | Free(obj); | ||
| 634 | lh_insert(ctx->certs,r); | ||
| 635 | X509err(X509_F_X509_STORE_ADD_CERT,X509_R_CERT_ALREADY_IN_HASH_TABLE); | ||
| 636 | ret=0; | ||
| 637 | } | ||
| 638 | |||
| 639 | CRYPTO_w_unlock(CRYPTO_LOCK_X509_STORE); | ||
| 640 | |||
| 641 | return(ret); | ||
| 642 | } | ||
| 643 | |||
| 644 | int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x) | ||
| 645 | { | ||
| 646 | X509_OBJECT *obj,*r; | ||
| 647 | int ret=1; | ||
| 648 | |||
| 649 | if (x == NULL) return(0); | ||
| 650 | obj=(X509_OBJECT *)Malloc(sizeof(X509_OBJECT)); | ||
| 651 | if (obj == NULL) | ||
| 652 | { | ||
| 653 | X509err(X509_F_X509_STORE_ADD_CRL,ERR_R_MALLOC_FAILURE); | ||
| 654 | return(0); | ||
| 655 | } | ||
| 656 | obj->type=X509_LU_CRL; | ||
| 657 | obj->data.crl=x; | ||
| 658 | |||
| 659 | CRYPTO_w_lock(CRYPTO_LOCK_X509_STORE); | ||
| 660 | |||
| 661 | X509_OBJECT_up_ref_count(obj); | ||
| 662 | |||
| 663 | r=(X509_OBJECT *)lh_insert(ctx->certs,obj); | ||
| 664 | if (r != NULL) | ||
| 665 | { /* oops, put it back */ | ||
| 666 | lh_delete(ctx->certs,obj); | ||
| 667 | X509_OBJECT_free_contents(obj); | ||
| 668 | Free(obj); | ||
| 669 | lh_insert(ctx->certs,r); | ||
| 670 | X509err(X509_F_X509_STORE_ADD_CRL,X509_R_CERT_ALREADY_IN_HASH_TABLE); | ||
| 671 | ret=0; | ||
| 672 | } | ||
| 673 | |||
| 674 | CRYPTO_w_unlock(CRYPTO_LOCK_X509_STORE); | ||
| 675 | |||
| 676 | return(ret); | ||
| 677 | } | 701 | } |
| 678 | 702 | ||
| 679 | int X509_STORE_CTX_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | 703 | int X509_STORE_CTX_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, |
| 680 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func) | 704 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func) |
| 681 | { | 705 | { |
| 682 | x509_store_ctx_num++; | 706 | x509_store_ctx_num++; |
| 683 | return(CRYPTO_get_ex_new_index(x509_store_ctx_num-1, | 707 | return CRYPTO_get_ex_new_index(x509_store_ctx_num-1, |
| 684 | &x509_store_ctx_method, | 708 | &x509_store_ctx_method, |
| 685 | argl,argp,new_func,dup_func,free_func)); | 709 | argl,argp,new_func,dup_func,free_func); |
| 686 | } | 710 | } |
| 687 | 711 | ||
| 688 | int X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx, int idx, void *data) | 712 | int X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx, int idx, void *data) |
| 689 | { | 713 | { |
| 690 | return(CRYPTO_set_ex_data(&ctx->ex_data,idx,data)); | 714 | return CRYPTO_set_ex_data(&ctx->ex_data,idx,data); |
| 691 | } | 715 | } |
| 692 | 716 | ||
| 693 | void *X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx, int idx) | 717 | void *X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx, int idx) |
| 694 | { | 718 | { |
| 695 | return(CRYPTO_get_ex_data(&ctx->ex_data,idx)); | 719 | return CRYPTO_get_ex_data(&ctx->ex_data,idx); |
| 696 | } | 720 | } |
| 697 | 721 | ||
| 698 | int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx) | 722 | int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx) |
| 699 | { | 723 | { |
| 700 | return(ctx->error); | 724 | return ctx->error; |
| 701 | } | 725 | } |
| 702 | 726 | ||
| 703 | void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx, int err) | 727 | void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx, int err) |
| @@ -707,17 +731,17 @@ void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx, int err) | |||
| 707 | 731 | ||
| 708 | int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx) | 732 | int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx) |
| 709 | { | 733 | { |
| 710 | return(ctx->error_depth); | 734 | return ctx->error_depth; |
| 711 | } | 735 | } |
| 712 | 736 | ||
| 713 | X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx) | 737 | X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx) |
| 714 | { | 738 | { |
| 715 | return(ctx->current_cert); | 739 | return ctx->current_cert; |
| 716 | } | 740 | } |
| 717 | 741 | ||
| 718 | STACK_OF(X509) *X509_STORE_CTX_get_chain(X509_STORE_CTX *ctx) | 742 | STACK_OF(X509) *X509_STORE_CTX_get_chain(X509_STORE_CTX *ctx) |
| 719 | { | 743 | { |
| 720 | return(ctx->chain); | 744 | return ctx->chain; |
| 721 | } | 745 | } |
| 722 | 746 | ||
| 723 | STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx) | 747 | STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx) |
| @@ -725,12 +749,13 @@ STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx) | |||
| 725 | int i; | 749 | int i; |
| 726 | X509 *x; | 750 | X509 *x; |
| 727 | STACK_OF(X509) *chain; | 751 | STACK_OF(X509) *chain; |
| 728 | if(!ctx->chain || !(chain = sk_X509_dup(ctx->chain))) return NULL; | 752 | if (!ctx->chain || !(chain = sk_X509_dup(ctx->chain))) return NULL; |
| 729 | for(i = 0; i < sk_X509_num(chain); i++) { | 753 | for (i = 0; i < sk_X509_num(chain); i++) |
| 754 | { | ||
| 730 | x = sk_X509_value(chain, i); | 755 | x = sk_X509_value(chain, i); |
| 731 | CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509); | 756 | CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509); |
| 732 | } | 757 | } |
| 733 | return(chain); | 758 | return chain; |
| 734 | } | 759 | } |
| 735 | 760 | ||
| 736 | void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *x) | 761 | void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *x) |
| @@ -768,43 +793,123 @@ int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, | |||
| 768 | { | 793 | { |
| 769 | int idx; | 794 | int idx; |
| 770 | /* If purpose not set use default */ | 795 | /* If purpose not set use default */ |
| 771 | if(!purpose) purpose = def_purpose; | 796 | if (!purpose) purpose = def_purpose; |
| 772 | /* If we have a purpose then check it is valid */ | 797 | /* If we have a purpose then check it is valid */ |
| 773 | if(purpose) { | 798 | if (purpose) |
| 799 | { | ||
| 774 | X509_PURPOSE *ptmp; | 800 | X509_PURPOSE *ptmp; |
| 775 | idx = X509_PURPOSE_get_by_id(purpose); | 801 | idx = X509_PURPOSE_get_by_id(purpose); |
| 776 | if(idx == -1) { | 802 | if (idx == -1) |
| 803 | { | ||
| 777 | X509err(X509_F_X509_STORE_CTX_PURPOSE_INHERIT, | 804 | X509err(X509_F_X509_STORE_CTX_PURPOSE_INHERIT, |
| 778 | X509_R_UNKNOWN_PURPOSE_ID); | 805 | X509_R_UNKNOWN_PURPOSE_ID); |
| 779 | return 0; | 806 | return 0; |
| 780 | } | 807 | } |
| 781 | ptmp = X509_PURPOSE_get0(idx); | 808 | ptmp = X509_PURPOSE_get0(idx); |
| 782 | if(ptmp->trust == X509_TRUST_DEFAULT) { | 809 | if (ptmp->trust == X509_TRUST_DEFAULT) |
| 810 | { | ||
| 783 | idx = X509_PURPOSE_get_by_id(def_purpose); | 811 | idx = X509_PURPOSE_get_by_id(def_purpose); |
| 784 | if(idx == -1) { | 812 | if (idx == -1) |
| 813 | { | ||
| 785 | X509err(X509_F_X509_STORE_CTX_PURPOSE_INHERIT, | 814 | X509err(X509_F_X509_STORE_CTX_PURPOSE_INHERIT, |
| 786 | X509_R_UNKNOWN_PURPOSE_ID); | 815 | X509_R_UNKNOWN_PURPOSE_ID); |
| 787 | return 0; | 816 | return 0; |
| 788 | } | 817 | } |
| 789 | ptmp = X509_PURPOSE_get0(idx); | 818 | ptmp = X509_PURPOSE_get0(idx); |
| 790 | } | 819 | } |
| 791 | /* If trust not set then get from purpose default */ | 820 | /* If trust not set then get from purpose default */ |
| 792 | if(!trust) trust = ptmp->trust; | 821 | if (!trust) trust = ptmp->trust; |
| 793 | } | 822 | } |
| 794 | if(trust) { | 823 | if (trust) |
| 824 | { | ||
| 795 | idx = X509_TRUST_get_by_id(trust); | 825 | idx = X509_TRUST_get_by_id(trust); |
| 796 | if(idx == -1) { | 826 | if (idx == -1) |
| 827 | { | ||
| 797 | X509err(X509_F_X509_STORE_CTX_PURPOSE_INHERIT, | 828 | X509err(X509_F_X509_STORE_CTX_PURPOSE_INHERIT, |
| 798 | X509_R_UNKNOWN_TRUST_ID); | 829 | X509_R_UNKNOWN_TRUST_ID); |
| 799 | return 0; | 830 | return 0; |
| 831 | } | ||
| 800 | } | 832 | } |
| 801 | } | ||
| 802 | 833 | ||
| 803 | if(purpose) ctx->purpose = purpose; | 834 | if (purpose) ctx->purpose = purpose; |
| 804 | if(trust) ctx->trust = trust; | 835 | if (trust) ctx->trust = trust; |
| 805 | return 1; | 836 | return 1; |
| 806 | } | 837 | } |
| 807 | 838 | ||
| 839 | X509_STORE_CTX *X509_STORE_CTX_new(void) | ||
| 840 | { | ||
| 841 | X509_STORE_CTX *ctx; | ||
| 842 | ctx = (X509_STORE_CTX *)OPENSSL_malloc(sizeof(X509_STORE_CTX)); | ||
| 843 | if (ctx) memset(ctx, 0, sizeof(X509_STORE_CTX)); | ||
| 844 | return ctx; | ||
| 845 | } | ||
| 846 | |||
| 847 | void X509_STORE_CTX_free(X509_STORE_CTX *ctx) | ||
| 848 | { | ||
| 849 | X509_STORE_CTX_cleanup(ctx); | ||
| 850 | OPENSSL_free(ctx); | ||
| 851 | } | ||
| 852 | |||
| 853 | void X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, | ||
| 854 | STACK_OF(X509) *chain) | ||
| 855 | { | ||
| 856 | ctx->ctx=store; | ||
| 857 | ctx->current_method=0; | ||
| 858 | ctx->cert=x509; | ||
| 859 | ctx->untrusted=chain; | ||
| 860 | ctx->last_untrusted=0; | ||
| 861 | ctx->purpose=0; | ||
| 862 | ctx->trust=0; | ||
| 863 | ctx->check_time=0; | ||
| 864 | ctx->flags=0; | ||
| 865 | ctx->other_ctx=NULL; | ||
| 866 | ctx->valid=0; | ||
| 867 | ctx->chain=NULL; | ||
| 868 | ctx->depth=9; | ||
| 869 | ctx->error=0; | ||
| 870 | ctx->error_depth=0; | ||
| 871 | ctx->current_cert=NULL; | ||
| 872 | ctx->current_issuer=NULL; | ||
| 873 | ctx->check_issued = check_issued; | ||
| 874 | ctx->get_issuer = X509_STORE_CTX_get1_issuer; | ||
| 875 | ctx->verify_cb = store->verify_cb; | ||
| 876 | ctx->verify = store->verify; | ||
| 877 | ctx->cleanup = 0; | ||
| 878 | memset(&(ctx->ex_data),0,sizeof(CRYPTO_EX_DATA)); | ||
| 879 | } | ||
| 880 | |||
| 881 | /* Set alternative lookup method: just a STACK of trusted certificates. | ||
| 882 | * This avoids X509_STORE nastiness where it isn't needed. | ||
| 883 | */ | ||
| 884 | |||
| 885 | void X509_STORE_CTX_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) | ||
| 886 | { | ||
| 887 | ctx->other_ctx = sk; | ||
| 888 | ctx->get_issuer = get_issuer_sk; | ||
| 889 | } | ||
| 890 | |||
| 891 | void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx) | ||
| 892 | { | ||
| 893 | if (ctx->cleanup) ctx->cleanup(ctx); | ||
| 894 | if (ctx->chain != NULL) | ||
| 895 | { | ||
| 896 | sk_X509_pop_free(ctx->chain,X509_free); | ||
| 897 | ctx->chain=NULL; | ||
| 898 | } | ||
| 899 | CRYPTO_free_ex_data(x509_store_ctx_method,ctx,&(ctx->ex_data)); | ||
| 900 | memset(&ctx->ex_data,0,sizeof(CRYPTO_EX_DATA)); | ||
| 901 | } | ||
| 902 | |||
| 903 | void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, long flags) | ||
| 904 | { | ||
| 905 | ctx->flags |= flags; | ||
| 906 | } | ||
| 907 | |||
| 908 | void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, long flags, time_t t) | ||
| 909 | { | ||
| 910 | ctx->check_time = t; | ||
| 911 | ctx->flags |= X509_V_FLAG_USE_CHECK_TIME; | ||
| 912 | } | ||
| 808 | 913 | ||
| 809 | IMPLEMENT_STACK_OF(X509) | 914 | IMPLEMENT_STACK_OF(X509) |
| 810 | IMPLEMENT_ASN1_SET_OF(X509) | 915 | IMPLEMENT_ASN1_SET_OF(X509) |
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h index 4637aecedf..e289d5309a 100644 --- a/src/lib/libcrypto/x509/x509_vfy.h +++ b/src/lib/libcrypto/x509/x509_vfy.h | |||
| @@ -65,13 +65,16 @@ | |||
| 65 | #ifndef HEADER_X509_VFY_H | 65 | #ifndef HEADER_X509_VFY_H |
| 66 | #define HEADER_X509_VFY_H | 66 | #define HEADER_X509_VFY_H |
| 67 | 67 | ||
| 68 | #ifdef __cplusplus | 68 | #ifndef NO_LHASH |
| 69 | extern "C" { | 69 | #include <openssl/lhash.h> |
| 70 | #endif | 70 | #endif |
| 71 | |||
| 72 | #include <openssl/bio.h> | 71 | #include <openssl/bio.h> |
| 73 | #include <openssl/crypto.h> | 72 | #include <openssl/crypto.h> |
| 74 | 73 | ||
| 74 | #ifdef __cplusplus | ||
| 75 | extern "C" { | ||
| 76 | #endif | ||
| 77 | |||
| 75 | /* Outer object */ | 78 | /* Outer object */ |
| 76 | typedef struct x509_hash_dir_st | 79 | typedef struct x509_hash_dir_st |
| 77 | { | 80 | { |
| @@ -128,6 +131,7 @@ typedef struct x509_object_st | |||
| 128 | typedef struct x509_lookup_st X509_LOOKUP; | 131 | typedef struct x509_lookup_st X509_LOOKUP; |
| 129 | 132 | ||
| 130 | DECLARE_STACK_OF(X509_LOOKUP) | 133 | DECLARE_STACK_OF(X509_LOOKUP) |
| 134 | DECLARE_STACK_OF(X509_OBJECT) | ||
| 131 | 135 | ||
| 132 | /* This is a static that defines the function interface */ | 136 | /* This is a static that defines the function interface */ |
| 133 | typedef struct x509_lookup_method_st | 137 | typedef struct x509_lookup_method_st |
| @@ -150,7 +154,7 @@ typedef struct x509_lookup_method_st | |||
| 150 | X509_OBJECT *ret); | 154 | X509_OBJECT *ret); |
| 151 | } X509_LOOKUP_METHOD; | 155 | } X509_LOOKUP_METHOD; |
| 152 | 156 | ||
| 153 | typedef struct x509_store_state_st X509_STORE_CTX; | 157 | typedef struct x509_store_ctx_st X509_STORE_CTX; |
| 154 | 158 | ||
| 155 | /* This is used to hold everything. It is used for all certificate | 159 | /* This is used to hold everything. It is used for all certificate |
| 156 | * validation. Once we have a certificate chain, the 'verify' | 160 | * validation. Once we have a certificate chain, the 'verify' |
| @@ -159,11 +163,7 @@ typedef struct x509_store_st | |||
| 159 | { | 163 | { |
| 160 | /* The following is a cache of trusted certs */ | 164 | /* The following is a cache of trusted certs */ |
| 161 | int cache; /* if true, stash any hits */ | 165 | int cache; /* if true, stash any hits */ |
| 162 | #ifdef HEADER_LHASH_H | 166 | STACK_OF(X509_OBJECT) *objs; /* Cache of all objects */ |
| 163 | LHASH *certs; /* cached certs; */ | ||
| 164 | #else | ||
| 165 | char *certs; | ||
| 166 | #endif | ||
| 167 | 167 | ||
| 168 | /* These are external lookup methods */ | 168 | /* These are external lookup methods */ |
| 169 | STACK_OF(X509_LOOKUP) *get_cert_methods; | 169 | STACK_OF(X509_LOOKUP) *get_cert_methods; |
| @@ -191,10 +191,10 @@ struct x509_lookup_st | |||
| 191 | X509_STORE *store_ctx; /* who owns us */ | 191 | X509_STORE *store_ctx; /* who owns us */ |
| 192 | }; | 192 | }; |
| 193 | 193 | ||
| 194 | /* This is a temporary used when processing cert chains. Since the | 194 | /* This is a used when verifying cert chains. Since the |
| 195 | * gathering of the cert chain can take some time (and have to be | 195 | * gathering of the cert chain can take some time (and have to be |
| 196 | * 'retried', this needs to be kept and passed around. */ | 196 | * 'retried', this needs to be kept and passed around. */ |
| 197 | struct x509_store_state_st /* X509_STORE_CTX */ | 197 | struct x509_store_ctx_st /* X509_STORE_CTX */ |
| 198 | { | 198 | { |
| 199 | X509_STORE *ctx; | 199 | X509_STORE *ctx; |
| 200 | int current_method; /* used when looking up certs */ | 200 | int current_method; /* used when looking up certs */ |
| @@ -204,6 +204,16 @@ struct x509_store_state_st /* X509_STORE_CTX */ | |||
| 204 | STACK_OF(X509) *untrusted; /* chain of X509s - untrusted - passed in */ | 204 | STACK_OF(X509) *untrusted; /* chain of X509s - untrusted - passed in */ |
| 205 | int purpose; /* purpose to check untrusted certificates */ | 205 | int purpose; /* purpose to check untrusted certificates */ |
| 206 | int trust; /* trust setting to check */ | 206 | int trust; /* trust setting to check */ |
| 207 | time_t check_time; /* time to make verify at */ | ||
| 208 | unsigned long flags; /* Various verify flags */ | ||
| 209 | void *other_ctx; /* Other info for use with get_issuer() */ | ||
| 210 | |||
| 211 | /* Callbacks for various operations */ | ||
| 212 | int (*verify)(X509_STORE_CTX *ctx); /* called to verify a certificate */ | ||
| 213 | int (*verify_cb)(int ok,X509_STORE_CTX *ctx); /* error callback */ | ||
| 214 | int (*get_issuer)(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); /* get issuers cert from ctx */ | ||
| 215 | int (*check_issued)(X509_STORE_CTX *ctx, X509 *x, X509 *issuer); /* check issued */ | ||
| 216 | int (*cleanup)(X509_STORE_CTX *ctx); | ||
| 207 | 217 | ||
| 208 | /* The following is built up */ | 218 | /* The following is built up */ |
| 209 | int depth; /* how far to go looking up certs */ | 219 | int depth; /* how far to go looking up certs */ |
| @@ -215,6 +225,7 @@ struct x509_store_state_st /* X509_STORE_CTX */ | |||
| 215 | int error_depth; | 225 | int error_depth; |
| 216 | int error; | 226 | int error; |
| 217 | X509 *current_cert; | 227 | X509 *current_cert; |
| 228 | X509 *current_issuer; /* cert currently being tested as valid issuer */ | ||
| 218 | 229 | ||
| 219 | CRYPTO_EX_DATA ex_data; | 230 | CRYPTO_EX_DATA ex_data; |
| 220 | }; | 231 | }; |
| @@ -265,10 +276,20 @@ struct x509_store_state_st /* X509_STORE_CTX */ | |||
| 265 | #define X509_V_ERR_INVALID_PURPOSE 26 | 276 | #define X509_V_ERR_INVALID_PURPOSE 26 |
| 266 | #define X509_V_ERR_CERT_UNTRUSTED 27 | 277 | #define X509_V_ERR_CERT_UNTRUSTED 27 |
| 267 | #define X509_V_ERR_CERT_REJECTED 28 | 278 | #define X509_V_ERR_CERT_REJECTED 28 |
| 279 | /* These are 'informational' when looking for issuer cert */ | ||
| 280 | #define X509_V_ERR_SUBJECT_ISSUER_MISMATCH 29 | ||
| 281 | #define X509_V_ERR_AKID_SKID_MISMATCH 30 | ||
| 282 | #define X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH 31 | ||
| 283 | #define X509_V_ERR_KEYUSAGE_NO_CERTSIGN 32 | ||
| 268 | 284 | ||
| 269 | /* The application is not happy */ | 285 | /* The application is not happy */ |
| 270 | #define X509_V_ERR_APPLICATION_VERIFICATION 50 | 286 | #define X509_V_ERR_APPLICATION_VERIFICATION 50 |
| 271 | 287 | ||
| 288 | /* Certificate verify flags */ | ||
| 289 | |||
| 290 | #define X509_V_FLAG_CB_ISSUER_CHECK 0x1 /* Send issuer+subject checks to verify_cb */ | ||
| 291 | #define X509_V_FLAG_USE_CHECK_TIME 0x2 /* Use check time instead of current time */ | ||
| 292 | |||
| 272 | /* These functions are being redefined in another directory, | 293 | /* These functions are being redefined in another directory, |
| 273 | and clash when the linker is case-insensitive, so let's | 294 | and clash when the linker is case-insensitive, so let's |
| 274 | hide them a little, by giving them an extra 'o' at the | 295 | hide them a little, by giving them an extra 'o' at the |
| @@ -284,18 +305,23 @@ struct x509_store_state_st /* X509_STORE_CTX */ | |||
| 284 | #define X509v3_add_standard_extensions oX509v3_add_standard_extensions | 305 | #define X509v3_add_standard_extensions oX509v3_add_standard_extensions |
| 285 | #endif | 306 | #endif |
| 286 | 307 | ||
| 287 | #ifdef HEADER_LHASH_H | 308 | int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, int type, |
| 288 | X509_OBJECT *X509_OBJECT_retrieve_by_subject(LHASH *h,int type,X509_NAME *name); | 309 | X509_NAME *name); |
| 289 | #endif | 310 | X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,int type,X509_NAME *name); |
| 311 | X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h, X509_OBJECT *x); | ||
| 290 | void X509_OBJECT_up_ref_count(X509_OBJECT *a); | 312 | void X509_OBJECT_up_ref_count(X509_OBJECT *a); |
| 291 | void X509_OBJECT_free_contents(X509_OBJECT *a); | 313 | void X509_OBJECT_free_contents(X509_OBJECT *a); |
| 292 | X509_STORE *X509_STORE_new(void ); | 314 | X509_STORE *X509_STORE_new(void ); |
| 293 | void X509_STORE_free(X509_STORE *v); | 315 | void X509_STORE_free(X509_STORE *v); |
| 294 | 316 | ||
| 295 | X509_STORE_CTX *X509_STORE_CTX_new(void); | 317 | X509_STORE_CTX *X509_STORE_CTX_new(void); |
| 318 | |||
| 319 | int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); | ||
| 320 | |||
| 296 | void X509_STORE_CTX_free(X509_STORE_CTX *ctx); | 321 | void X509_STORE_CTX_free(X509_STORE_CTX *ctx); |
| 297 | void X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, | 322 | void X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, |
| 298 | X509 *x509, STACK_OF(X509) *chain); | 323 | X509 *x509, STACK_OF(X509) *chain); |
| 324 | void X509_STORE_CTX_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk); | ||
| 299 | void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx); | 325 | void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx); |
| 300 | 326 | ||
| 301 | X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m); | 327 | X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m); |
| @@ -354,6 +380,8 @@ int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose); | |||
| 354 | int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust); | 380 | int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust); |
| 355 | int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, | 381 | int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, |
| 356 | int purpose, int trust); | 382 | int purpose, int trust); |
| 383 | void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, long flags); | ||
| 384 | void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, long flags, time_t t); | ||
| 357 | 385 | ||
| 358 | #ifdef __cplusplus | 386 | #ifdef __cplusplus |
| 359 | } | 387 | } |
diff --git a/src/lib/libcrypto/x509/x509spki.c b/src/lib/libcrypto/x509/x509spki.c index b35c3f92e7..fd0a534d88 100644 --- a/src/lib/libcrypto/x509/x509spki.c +++ b/src/lib/libcrypto/x509/x509spki.c | |||
| @@ -82,7 +82,7 @@ NETSCAPE_SPKI * NETSCAPE_SPKI_b64_decode(const char *str, int len) | |||
| 82 | int spki_len; | 82 | int spki_len; |
| 83 | NETSCAPE_SPKI *spki; | 83 | NETSCAPE_SPKI *spki; |
| 84 | if(len <= 0) len = strlen(str); | 84 | if(len <= 0) len = strlen(str); |
| 85 | if (!(spki_der = Malloc(len + 1))) { | 85 | if (!(spki_der = OPENSSL_malloc(len + 1))) { |
| 86 | X509err(X509_F_NETSCAPE_SPKI_B64_DECODE, ERR_R_MALLOC_FAILURE); | 86 | X509err(X509_F_NETSCAPE_SPKI_B64_DECODE, ERR_R_MALLOC_FAILURE); |
| 87 | return NULL; | 87 | return NULL; |
| 88 | } | 88 | } |
| @@ -90,12 +90,12 @@ NETSCAPE_SPKI * NETSCAPE_SPKI_b64_decode(const char *str, int len) | |||
| 90 | if(spki_len < 0) { | 90 | if(spki_len < 0) { |
| 91 | X509err(X509_F_NETSCAPE_SPKI_B64_DECODE, | 91 | X509err(X509_F_NETSCAPE_SPKI_B64_DECODE, |
| 92 | X509_R_BASE64_DECODE_ERROR); | 92 | X509_R_BASE64_DECODE_ERROR); |
| 93 | Free(spki_der); | 93 | OPENSSL_free(spki_der); |
| 94 | return NULL; | 94 | return NULL; |
| 95 | } | 95 | } |
| 96 | p = spki_der; | 96 | p = spki_der; |
| 97 | spki = d2i_NETSCAPE_SPKI(NULL, &p, spki_len); | 97 | spki = d2i_NETSCAPE_SPKI(NULL, &p, spki_len); |
| 98 | Free(spki_der); | 98 | OPENSSL_free(spki_der); |
| 99 | return spki; | 99 | return spki; |
| 100 | } | 100 | } |
| 101 | 101 | ||
| @@ -107,8 +107,8 @@ char * NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki) | |||
| 107 | char *b64_str; | 107 | char *b64_str; |
| 108 | int der_len; | 108 | int der_len; |
| 109 | der_len = i2d_NETSCAPE_SPKI(spki, NULL); | 109 | der_len = i2d_NETSCAPE_SPKI(spki, NULL); |
| 110 | der_spki = Malloc(der_len); | 110 | der_spki = OPENSSL_malloc(der_len); |
| 111 | b64_str = Malloc(der_len * 2); | 111 | b64_str = OPENSSL_malloc(der_len * 2); |
| 112 | if(!der_spki || !b64_str) { | 112 | if(!der_spki || !b64_str) { |
| 113 | X509err(X509_F_NETSCAPE_SPKI_B64_ENCODE, ERR_R_MALLOC_FAILURE); | 113 | X509err(X509_F_NETSCAPE_SPKI_B64_ENCODE, ERR_R_MALLOC_FAILURE); |
| 114 | return NULL; | 114 | return NULL; |
| @@ -116,6 +116,6 @@ char * NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki) | |||
| 116 | p = der_spki; | 116 | p = der_spki; |
| 117 | i2d_NETSCAPE_SPKI(spki, &p); | 117 | i2d_NETSCAPE_SPKI(spki, &p); |
| 118 | EVP_EncodeBlock((unsigned char *)b64_str, der_spki, der_len); | 118 | EVP_EncodeBlock((unsigned char *)b64_str, der_spki, der_len); |
| 119 | Free(der_spki); | 119 | OPENSSL_free(der_spki); |
| 120 | return b64_str; | 120 | return b64_str; |
| 121 | } | 121 | } |
diff --git a/src/lib/libcrypto/x509/x_all.c b/src/lib/libcrypto/x509/x_all.c index d2bf3c8e1c..9bd6e2a39b 100644 --- a/src/lib/libcrypto/x509/x_all.c +++ b/src/lib/libcrypto/x509/x_all.c | |||
| @@ -411,13 +411,25 @@ X509_NAME_ENTRY *X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne) | |||
| 411 | (char *(*)())d2i_X509_NAME_ENTRY,(char *)ne)); | 411 | (char *(*)())d2i_X509_NAME_ENTRY,(char *)ne)); |
| 412 | } | 412 | } |
| 413 | 413 | ||
| 414 | int X509_digest(X509 *data, const EVP_MD *type, unsigned char *md, | 414 | int X509_digest(const X509 *data, const EVP_MD *type, unsigned char *md, |
| 415 | unsigned int *len) | 415 | unsigned int *len) |
| 416 | { | 416 | { |
| 417 | return(ASN1_digest((int (*)())i2d_X509,type,(char *)data,md,len)); | 417 | return(ASN1_digest((int (*)())i2d_X509,type,(char *)data,md,len)); |
| 418 | } | 418 | } |
| 419 | 419 | ||
| 420 | int X509_NAME_digest(X509_NAME *data, const EVP_MD *type, unsigned char *md, | 420 | int X509_CRL_digest(const X509_CRL *data, const EVP_MD *type, unsigned char *md, |
| 421 | unsigned int *len) | ||
| 422 | { | ||
| 423 | return(ASN1_digest((int (*)())i2d_X509_CRL,type,(char *)data,md,len)); | ||
| 424 | } | ||
| 425 | |||
| 426 | int X509_REQ_digest(const X509_REQ *data, const EVP_MD *type, unsigned char *md, | ||
| 427 | unsigned int *len) | ||
| 428 | { | ||
| 429 | return(ASN1_digest((int (*)())i2d_X509_REQ,type,(char *)data,md,len)); | ||
| 430 | } | ||
| 431 | |||
| 432 | int X509_NAME_digest(const X509_NAME *data, const EVP_MD *type, unsigned char *md, | ||
| 421 | unsigned int *len) | 433 | unsigned int *len) |
| 422 | { | 434 | { |
| 423 | return(ASN1_digest((int (*)())i2d_X509_NAME,type,(char *)data,md,len)); | 435 | return(ASN1_digest((int (*)())i2d_X509_NAME,type,(char *)data,md,len)); |
| @@ -492,6 +504,17 @@ EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a) | |||
| 492 | (char *(*)())d2i_AutoPrivateKey, (fp),(unsigned char **)(a))); | 504 | (char *(*)())d2i_AutoPrivateKey, (fp),(unsigned char **)(a))); |
| 493 | } | 505 | } |
| 494 | 506 | ||
| 507 | int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey) | ||
| 508 | { | ||
| 509 | return(ASN1_i2d_fp(i2d_PUBKEY,fp,(unsigned char *)pkey)); | ||
| 510 | } | ||
| 511 | |||
| 512 | EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a) | ||
| 513 | { | ||
| 514 | return((EVP_PKEY *)ASN1_d2i_fp((char *(*)())EVP_PKEY_new, | ||
| 515 | (char *(*)())d2i_PUBKEY, (fp),(unsigned char **)(a))); | ||
| 516 | } | ||
| 517 | |||
| 495 | #endif | 518 | #endif |
| 496 | 519 | ||
| 497 | PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, | 520 | PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, |
| @@ -529,3 +552,14 @@ EVP_PKEY *d2i_PrivateKey_bio(BIO *bp, EVP_PKEY **a) | |||
| 529 | return((EVP_PKEY *)ASN1_d2i_bio((char *(*)())EVP_PKEY_new, | 552 | return((EVP_PKEY *)ASN1_d2i_bio((char *(*)())EVP_PKEY_new, |
| 530 | (char *(*)())d2i_AutoPrivateKey, (bp),(unsigned char **)(a))); | 553 | (char *(*)())d2i_AutoPrivateKey, (bp),(unsigned char **)(a))); |
| 531 | } | 554 | } |
| 555 | |||
| 556 | int i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey) | ||
| 557 | { | ||
| 558 | return(ASN1_i2d_bio(i2d_PUBKEY,bp,(unsigned char *)pkey)); | ||
| 559 | } | ||
| 560 | |||
| 561 | EVP_PKEY *d2i_PUBKEY_bio(BIO *bp, EVP_PKEY **a) | ||
| 562 | { | ||
| 563 | return((EVP_PKEY *)ASN1_d2i_bio((char *(*)())EVP_PKEY_new, | ||
| 564 | (char *(*)())d2i_PUBKEY, (bp),(unsigned char **)(a))); | ||
| 565 | } | ||
diff --git a/src/lib/libcrypto/x509v3/Makefile.ssl b/src/lib/libcrypto/x509v3/Makefile.ssl index 1bb746d52d..f7c3a6ca13 100644 --- a/src/lib/libcrypto/x509v3/Makefile.ssl +++ b/src/lib/libcrypto/x509v3/Makefile.ssl | |||
| @@ -88,17 +88,19 @@ v3_akey.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | |||
| 88 | v3_akey.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | 88 | v3_akey.o: ../../include/openssl/cast.h ../../include/openssl/conf.h |
| 89 | v3_akey.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | 89 | v3_akey.o: ../../include/openssl/crypto.h ../../include/openssl/des.h |
| 90 | v3_akey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 90 | v3_akey.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 91 | v3_akey.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 91 | v3_akey.o: ../../include/openssl/e_os.h ../../include/openssl/e_os.h |
| 92 | v3_akey.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 92 | v3_akey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 93 | v3_akey.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 93 | v3_akey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 94 | v3_akey.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 94 | v3_akey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 95 | v3_akey.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 95 | v3_akey.o: ../../include/openssl/md4.h ../../include/openssl/md5.h |
| 96 | v3_akey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 96 | v3_akey.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h |
| 97 | v3_akey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | 97 | v3_akey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
| 98 | v3_akey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | 98 | v3_akey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 99 | v3_akey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | 99 | v3_akey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 100 | v3_akey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 100 | v3_akey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 101 | v3_akey.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | 101 | v3_akey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 102 | v3_akey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 103 | v3_akey.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 102 | v3_akey.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | 104 | v3_akey.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 103 | v3_akey.o: ../cryptlib.h | 105 | v3_akey.o: ../cryptlib.h |
| 104 | v3_alt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 106 | v3_alt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -107,16 +109,18 @@ v3_alt.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | |||
| 107 | v3_alt.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 109 | v3_alt.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 108 | v3_alt.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 110 | v3_alt.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 109 | v3_alt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 111 | v3_alt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 110 | v3_alt.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 112 | v3_alt.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 111 | v3_alt.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 113 | v3_alt.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 112 | v3_alt.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 114 | v3_alt.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 115 | v3_alt.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 113 | v3_alt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 116 | v3_alt.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 114 | v3_alt.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 117 | v3_alt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 115 | v3_alt.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 118 | v3_alt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 116 | v3_alt.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 119 | v3_alt.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 117 | v3_alt.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 120 | v3_alt.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 118 | v3_alt.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 121 | v3_alt.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 119 | v3_alt.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 122 | v3_alt.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 123 | v3_alt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 120 | v3_alt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 124 | v3_alt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 121 | v3_alt.o: ../../include/openssl/x509v3.h ../cryptlib.h | 125 | v3_alt.o: ../../include/openssl/x509v3.h ../cryptlib.h |
| 122 | v3_bcons.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h | 126 | v3_bcons.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h |
| @@ -125,53 +129,60 @@ v3_bcons.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | |||
| 125 | v3_bcons.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | 129 | v3_bcons.o: ../../include/openssl/cast.h ../../include/openssl/conf.h |
| 126 | v3_bcons.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | 130 | v3_bcons.o: ../../include/openssl/crypto.h ../../include/openssl/des.h |
| 127 | v3_bcons.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 131 | v3_bcons.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 128 | v3_bcons.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 132 | v3_bcons.o: ../../include/openssl/e_os.h ../../include/openssl/e_os.h |
| 129 | v3_bcons.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 133 | v3_bcons.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 130 | v3_bcons.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 134 | v3_bcons.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 131 | v3_bcons.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 135 | v3_bcons.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 132 | v3_bcons.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 136 | v3_bcons.o: ../../include/openssl/md4.h ../../include/openssl/md5.h |
| 133 | v3_bcons.o: ../../include/openssl/opensslconf.h | 137 | v3_bcons.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h |
| 138 | v3_bcons.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 134 | v3_bcons.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 139 | v3_bcons.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 135 | v3_bcons.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 140 | v3_bcons.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 136 | v3_bcons.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 141 | v3_bcons.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 137 | v3_bcons.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 142 | v3_bcons.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 138 | v3_bcons.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 143 | v3_bcons.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 139 | v3_bcons.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 144 | v3_bcons.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 140 | v3_bcons.o: ../../include/openssl/x509v3.h ../cryptlib.h | 145 | v3_bcons.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 146 | v3_bcons.o: ../cryptlib.h | ||
| 141 | v3_bitst.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 147 | v3_bitst.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 142 | v3_bitst.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 148 | v3_bitst.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 143 | v3_bitst.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 149 | v3_bitst.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| 144 | v3_bitst.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 150 | v3_bitst.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 145 | v3_bitst.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 151 | v3_bitst.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 146 | v3_bitst.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 152 | v3_bitst.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 147 | v3_bitst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 153 | v3_bitst.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 148 | v3_bitst.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 154 | v3_bitst.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 149 | v3_bitst.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 155 | v3_bitst.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 156 | v3_bitst.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 150 | v3_bitst.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 157 | v3_bitst.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 151 | v3_bitst.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 158 | v3_bitst.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 159 | v3_bitst.o: ../../include/openssl/opensslconf.h | ||
| 152 | v3_bitst.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 160 | v3_bitst.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 153 | v3_bitst.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 161 | v3_bitst.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 154 | v3_bitst.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 162 | v3_bitst.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 155 | v3_bitst.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 163 | v3_bitst.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 156 | v3_bitst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 164 | v3_bitst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 157 | v3_bitst.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 165 | v3_bitst.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 158 | v3_bitst.o: ../../include/openssl/x509v3.h ../cryptlib.h | 166 | v3_bitst.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 167 | v3_bitst.o: ../cryptlib.h | ||
| 159 | v3_conf.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 168 | v3_conf.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 160 | v3_conf.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 169 | v3_conf.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 161 | v3_conf.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 170 | v3_conf.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| 162 | v3_conf.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 171 | v3_conf.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 163 | v3_conf.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 172 | v3_conf.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 164 | v3_conf.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 173 | v3_conf.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 165 | v3_conf.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 174 | v3_conf.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 166 | v3_conf.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 175 | v3_conf.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 167 | v3_conf.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 176 | v3_conf.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 177 | v3_conf.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 168 | v3_conf.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 178 | v3_conf.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 169 | v3_conf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 179 | v3_conf.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 170 | v3_conf.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 180 | v3_conf.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 171 | v3_conf.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 181 | v3_conf.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 172 | v3_conf.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 182 | v3_conf.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 173 | v3_conf.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 183 | v3_conf.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 174 | v3_conf.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 184 | v3_conf.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 185 | v3_conf.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 175 | v3_conf.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 186 | v3_conf.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 176 | v3_conf.o: ../../include/openssl/x509v3.h ../cryptlib.h | 187 | v3_conf.o: ../../include/openssl/x509v3.h ../cryptlib.h |
| 177 | v3_cpols.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h | 188 | v3_cpols.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h |
| @@ -180,36 +191,40 @@ v3_cpols.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | |||
| 180 | v3_cpols.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | 191 | v3_cpols.o: ../../include/openssl/cast.h ../../include/openssl/conf.h |
| 181 | v3_cpols.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | 192 | v3_cpols.o: ../../include/openssl/crypto.h ../../include/openssl/des.h |
| 182 | v3_cpols.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 193 | v3_cpols.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 183 | v3_cpols.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 194 | v3_cpols.o: ../../include/openssl/e_os.h ../../include/openssl/e_os.h |
| 184 | v3_cpols.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 195 | v3_cpols.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 185 | v3_cpols.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 196 | v3_cpols.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 186 | v3_cpols.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 197 | v3_cpols.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 187 | v3_cpols.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 198 | v3_cpols.o: ../../include/openssl/md4.h ../../include/openssl/md5.h |
| 188 | v3_cpols.o: ../../include/openssl/opensslconf.h | 199 | v3_cpols.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h |
| 200 | v3_cpols.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 189 | v3_cpols.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 201 | v3_cpols.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 190 | v3_cpols.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 202 | v3_cpols.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 191 | v3_cpols.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 203 | v3_cpols.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 192 | v3_cpols.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 204 | v3_cpols.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 193 | v3_cpols.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 205 | v3_cpols.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 194 | v3_cpols.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 206 | v3_cpols.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 195 | v3_cpols.o: ../../include/openssl/x509v3.h ../cryptlib.h | 207 | v3_cpols.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 208 | v3_cpols.o: ../cryptlib.h | ||
| 196 | v3_crld.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h | 209 | v3_crld.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h |
| 197 | v3_crld.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | 210 | v3_crld.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h |
| 198 | v3_crld.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | 211 | v3_crld.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h |
| 199 | v3_crld.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | 212 | v3_crld.o: ../../include/openssl/cast.h ../../include/openssl/conf.h |
| 200 | v3_crld.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | 213 | v3_crld.o: ../../include/openssl/crypto.h ../../include/openssl/des.h |
| 201 | v3_crld.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 214 | v3_crld.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 202 | v3_crld.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 215 | v3_crld.o: ../../include/openssl/e_os.h ../../include/openssl/e_os.h |
| 203 | v3_crld.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 216 | v3_crld.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 204 | v3_crld.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 217 | v3_crld.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 205 | v3_crld.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 218 | v3_crld.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 206 | v3_crld.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 219 | v3_crld.o: ../../include/openssl/md4.h ../../include/openssl/md5.h |
| 207 | v3_crld.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 220 | v3_crld.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h |
| 208 | v3_crld.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | 221 | v3_crld.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
| 209 | v3_crld.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | 222 | v3_crld.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 210 | v3_crld.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | 223 | v3_crld.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 211 | v3_crld.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 224 | v3_crld.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 212 | v3_crld.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | 225 | v3_crld.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 226 | v3_crld.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 227 | v3_crld.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 213 | v3_crld.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | 228 | v3_crld.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 214 | v3_crld.o: ../cryptlib.h | 229 | v3_crld.o: ../cryptlib.h |
| 215 | v3_enum.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 230 | v3_enum.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -218,16 +233,18 @@ v3_enum.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | |||
| 218 | v3_enum.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 233 | v3_enum.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 219 | v3_enum.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 234 | v3_enum.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 220 | v3_enum.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 235 | v3_enum.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 221 | v3_enum.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 236 | v3_enum.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 222 | v3_enum.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 237 | v3_enum.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 223 | v3_enum.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 238 | v3_enum.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 239 | v3_enum.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 224 | v3_enum.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 240 | v3_enum.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 225 | v3_enum.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 241 | v3_enum.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 226 | v3_enum.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 242 | v3_enum.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 227 | v3_enum.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 243 | v3_enum.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 228 | v3_enum.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 244 | v3_enum.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 229 | v3_enum.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 245 | v3_enum.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 230 | v3_enum.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 246 | v3_enum.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 247 | v3_enum.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 231 | v3_enum.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 248 | v3_enum.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 232 | v3_enum.o: ../../include/openssl/x509v3.h ../cryptlib.h | 249 | v3_enum.o: ../../include/openssl/x509v3.h ../cryptlib.h |
| 233 | v3_extku.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 250 | v3_extku.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -236,35 +253,40 @@ v3_extku.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | |||
| 236 | v3_extku.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 253 | v3_extku.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 237 | v3_extku.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 254 | v3_extku.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 238 | v3_extku.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 255 | v3_extku.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 239 | v3_extku.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 256 | v3_extku.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 240 | v3_extku.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 257 | v3_extku.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 241 | v3_extku.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 258 | v3_extku.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 259 | v3_extku.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 242 | v3_extku.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 260 | v3_extku.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 243 | v3_extku.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 261 | v3_extku.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 262 | v3_extku.o: ../../include/openssl/opensslconf.h | ||
| 244 | v3_extku.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 263 | v3_extku.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 245 | v3_extku.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 264 | v3_extku.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 246 | v3_extku.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 265 | v3_extku.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 247 | v3_extku.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 266 | v3_extku.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 248 | v3_extku.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 267 | v3_extku.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 249 | v3_extku.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 268 | v3_extku.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 250 | v3_extku.o: ../../include/openssl/x509v3.h ../cryptlib.h | 269 | v3_extku.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 270 | v3_extku.o: ../cryptlib.h | ||
| 251 | v3_genn.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h | 271 | v3_genn.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h |
| 252 | v3_genn.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h | 272 | v3_genn.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h |
| 253 | v3_genn.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | 273 | v3_genn.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h |
| 254 | v3_genn.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | 274 | v3_genn.o: ../../include/openssl/cast.h ../../include/openssl/conf.h |
| 255 | v3_genn.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | 275 | v3_genn.o: ../../include/openssl/crypto.h ../../include/openssl/des.h |
| 256 | v3_genn.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 276 | v3_genn.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 257 | v3_genn.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 277 | v3_genn.o: ../../include/openssl/e_os.h ../../include/openssl/e_os.h |
| 258 | v3_genn.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 278 | v3_genn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 259 | v3_genn.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 279 | v3_genn.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 260 | v3_genn.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 280 | v3_genn.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 261 | v3_genn.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 281 | v3_genn.o: ../../include/openssl/md4.h ../../include/openssl/md5.h |
| 262 | v3_genn.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 282 | v3_genn.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h |
| 263 | v3_genn.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | 283 | v3_genn.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
| 264 | v3_genn.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | 284 | v3_genn.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 265 | v3_genn.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | 285 | v3_genn.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 266 | v3_genn.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 286 | v3_genn.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 267 | v3_genn.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | 287 | v3_genn.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 288 | v3_genn.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 289 | v3_genn.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 268 | v3_genn.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | 290 | v3_genn.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 269 | v3_genn.o: ../cryptlib.h | 291 | v3_genn.o: ../cryptlib.h |
| 270 | v3_ia5.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 292 | v3_ia5.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -273,16 +295,18 @@ v3_ia5.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | |||
| 273 | v3_ia5.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 295 | v3_ia5.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 274 | v3_ia5.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 296 | v3_ia5.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 275 | v3_ia5.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 297 | v3_ia5.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 276 | v3_ia5.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 298 | v3_ia5.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 277 | v3_ia5.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 299 | v3_ia5.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 278 | v3_ia5.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 300 | v3_ia5.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 301 | v3_ia5.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 279 | v3_ia5.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 302 | v3_ia5.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 280 | v3_ia5.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 303 | v3_ia5.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 281 | v3_ia5.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 304 | v3_ia5.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 282 | v3_ia5.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 305 | v3_ia5.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 283 | v3_ia5.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 306 | v3_ia5.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 284 | v3_ia5.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 307 | v3_ia5.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 285 | v3_ia5.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 308 | v3_ia5.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 309 | v3_ia5.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 286 | v3_ia5.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 310 | v3_ia5.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 287 | v3_ia5.o: ../../include/openssl/x509v3.h ../cryptlib.h | 311 | v3_ia5.o: ../../include/openssl/x509v3.h ../cryptlib.h |
| 288 | v3_info.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h | 312 | v3_info.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h |
| @@ -291,17 +315,19 @@ v3_info.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | |||
| 291 | v3_info.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | 315 | v3_info.o: ../../include/openssl/cast.h ../../include/openssl/conf.h |
| 292 | v3_info.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | 316 | v3_info.o: ../../include/openssl/crypto.h ../../include/openssl/des.h |
| 293 | v3_info.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 317 | v3_info.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 294 | v3_info.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 318 | v3_info.o: ../../include/openssl/e_os.h ../../include/openssl/e_os.h |
| 295 | v3_info.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 319 | v3_info.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 296 | v3_info.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 320 | v3_info.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 297 | v3_info.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 321 | v3_info.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 298 | v3_info.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 322 | v3_info.o: ../../include/openssl/md4.h ../../include/openssl/md5.h |
| 299 | v3_info.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 323 | v3_info.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h |
| 300 | v3_info.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | 324 | v3_info.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
| 301 | v3_info.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | 325 | v3_info.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 302 | v3_info.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | 326 | v3_info.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 303 | v3_info.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 327 | v3_info.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 304 | v3_info.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | 328 | v3_info.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 329 | v3_info.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 330 | v3_info.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 305 | v3_info.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | 331 | v3_info.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 306 | v3_info.o: ../cryptlib.h | 332 | v3_info.o: ../cryptlib.h |
| 307 | v3_int.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 333 | v3_int.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -310,16 +336,18 @@ v3_int.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | |||
| 310 | v3_int.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 336 | v3_int.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 311 | v3_int.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 337 | v3_int.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 312 | v3_int.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 338 | v3_int.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 313 | v3_int.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 339 | v3_int.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 314 | v3_int.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 340 | v3_int.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 315 | v3_int.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 341 | v3_int.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 342 | v3_int.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 316 | v3_int.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 343 | v3_int.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 317 | v3_int.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 344 | v3_int.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 318 | v3_int.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 345 | v3_int.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 319 | v3_int.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 346 | v3_int.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 320 | v3_int.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 347 | v3_int.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 321 | v3_int.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 348 | v3_int.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 322 | v3_int.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 349 | v3_int.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 350 | v3_int.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 323 | v3_int.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 351 | v3_int.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 324 | v3_int.o: ../../include/openssl/x509v3.h ../cryptlib.h | 352 | v3_int.o: ../../include/openssl/x509v3.h ../cryptlib.h |
| 325 | v3_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 353 | v3_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -328,16 +356,18 @@ v3_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | |||
| 328 | v3_lib.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 356 | v3_lib.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 329 | v3_lib.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 357 | v3_lib.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 330 | v3_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 358 | v3_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 331 | v3_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 359 | v3_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 332 | v3_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 360 | v3_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 333 | v3_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 361 | v3_lib.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 362 | v3_lib.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 334 | v3_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 363 | v3_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 335 | v3_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 364 | v3_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 336 | v3_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 365 | v3_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 337 | v3_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 366 | v3_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 338 | v3_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 367 | v3_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 339 | v3_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 368 | v3_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 340 | v3_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 369 | v3_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 370 | v3_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 341 | v3_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 371 | v3_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 342 | v3_lib.o: ../../include/openssl/x509v3.h ../cryptlib.h ext_dat.h | 372 | v3_lib.o: ../../include/openssl/x509v3.h ../cryptlib.h ext_dat.h |
| 343 | v3_pku.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h | 373 | v3_pku.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h |
| @@ -346,17 +376,19 @@ v3_pku.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | |||
| 346 | v3_pku.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | 376 | v3_pku.o: ../../include/openssl/cast.h ../../include/openssl/conf.h |
| 347 | v3_pku.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | 377 | v3_pku.o: ../../include/openssl/crypto.h ../../include/openssl/des.h |
| 348 | v3_pku.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 378 | v3_pku.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 349 | v3_pku.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 379 | v3_pku.o: ../../include/openssl/e_os.h ../../include/openssl/e_os.h |
| 350 | v3_pku.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 380 | v3_pku.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 351 | v3_pku.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 381 | v3_pku.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 352 | v3_pku.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 382 | v3_pku.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 353 | v3_pku.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 383 | v3_pku.o: ../../include/openssl/md4.h ../../include/openssl/md5.h |
| 354 | v3_pku.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 384 | v3_pku.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h |
| 355 | v3_pku.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h | 385 | v3_pku.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
| 356 | v3_pku.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | 386 | v3_pku.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 357 | v3_pku.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | 387 | v3_pku.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 358 | v3_pku.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 388 | v3_pku.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 359 | v3_pku.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | 389 | v3_pku.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 390 | v3_pku.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
| 391 | v3_pku.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h | ||
| 360 | v3_pku.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h | 392 | v3_pku.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 361 | v3_pku.o: ../cryptlib.h | 393 | v3_pku.o: ../cryptlib.h |
| 362 | v3_prn.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 394 | v3_prn.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -365,16 +397,18 @@ v3_prn.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | |||
| 365 | v3_prn.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 397 | v3_prn.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 366 | v3_prn.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 398 | v3_prn.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 367 | v3_prn.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 399 | v3_prn.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 368 | v3_prn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 400 | v3_prn.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 369 | v3_prn.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 401 | v3_prn.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 370 | v3_prn.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 402 | v3_prn.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 403 | v3_prn.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 371 | v3_prn.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 404 | v3_prn.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 372 | v3_prn.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 405 | v3_prn.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 373 | v3_prn.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 406 | v3_prn.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 374 | v3_prn.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 407 | v3_prn.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 375 | v3_prn.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 408 | v3_prn.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 376 | v3_prn.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 409 | v3_prn.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 377 | v3_prn.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 410 | v3_prn.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 411 | v3_prn.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 378 | v3_prn.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 412 | v3_prn.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 379 | v3_prn.o: ../../include/openssl/x509v3.h ../cryptlib.h | 413 | v3_prn.o: ../../include/openssl/x509v3.h ../cryptlib.h |
| 380 | v3_purp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 414 | v3_purp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -383,16 +417,18 @@ v3_purp.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | |||
| 383 | v3_purp.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 417 | v3_purp.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 384 | v3_purp.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 418 | v3_purp.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 385 | v3_purp.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 419 | v3_purp.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 386 | v3_purp.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 420 | v3_purp.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 387 | v3_purp.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 421 | v3_purp.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 388 | v3_purp.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 422 | v3_purp.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 423 | v3_purp.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 389 | v3_purp.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 424 | v3_purp.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 390 | v3_purp.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 425 | v3_purp.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 391 | v3_purp.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 426 | v3_purp.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 392 | v3_purp.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 427 | v3_purp.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 393 | v3_purp.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 428 | v3_purp.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 394 | v3_purp.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 429 | v3_purp.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 395 | v3_purp.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 430 | v3_purp.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 431 | v3_purp.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 396 | v3_purp.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 432 | v3_purp.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 397 | v3_purp.o: ../../include/openssl/x509v3.h ../cryptlib.h | 433 | v3_purp.o: ../../include/openssl/x509v3.h ../cryptlib.h |
| 398 | v3_skey.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 434 | v3_skey.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| @@ -401,16 +437,18 @@ v3_skey.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | |||
| 401 | v3_skey.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 437 | v3_skey.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 402 | v3_skey.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 438 | v3_skey.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 403 | v3_skey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 439 | v3_skey.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 404 | v3_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 440 | v3_skey.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 405 | v3_skey.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 441 | v3_skey.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 406 | v3_skey.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 442 | v3_skey.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 443 | v3_skey.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 407 | v3_skey.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 444 | v3_skey.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 408 | v3_skey.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 445 | v3_skey.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 409 | v3_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 446 | v3_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 410 | v3_skey.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 447 | v3_skey.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 411 | v3_skey.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 448 | v3_skey.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 412 | v3_skey.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 449 | v3_skey.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 413 | v3_skey.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 450 | v3_skey.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 451 | v3_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 414 | v3_skey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 452 | v3_skey.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 415 | v3_skey.o: ../../include/openssl/x509v3.h ../cryptlib.h | 453 | v3_skey.o: ../../include/openssl/x509v3.h ../cryptlib.h |
| 416 | v3_sxnet.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h | 454 | v3_sxnet.o: ../../include/openssl/asn1.h ../../include/openssl/asn1_mac.h |
| @@ -419,51 +457,57 @@ v3_sxnet.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | |||
| 419 | v3_sxnet.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | 457 | v3_sxnet.o: ../../include/openssl/cast.h ../../include/openssl/conf.h |
| 420 | v3_sxnet.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | 458 | v3_sxnet.o: ../../include/openssl/crypto.h ../../include/openssl/des.h |
| 421 | v3_sxnet.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 459 | v3_sxnet.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h |
| 422 | v3_sxnet.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | 460 | v3_sxnet.o: ../../include/openssl/e_os.h ../../include/openssl/e_os.h |
| 423 | v3_sxnet.o: ../../include/openssl/err.h ../../include/openssl/evp.h | 461 | v3_sxnet.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 424 | v3_sxnet.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h | 462 | v3_sxnet.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 425 | v3_sxnet.o: ../../include/openssl/md2.h ../../include/openssl/md5.h | 463 | v3_sxnet.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 426 | v3_sxnet.o: ../../include/openssl/mdc2.h ../../include/openssl/objects.h | 464 | v3_sxnet.o: ../../include/openssl/md4.h ../../include/openssl/md5.h |
| 427 | v3_sxnet.o: ../../include/openssl/opensslconf.h | 465 | v3_sxnet.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h |
| 466 | v3_sxnet.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 428 | v3_sxnet.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 467 | v3_sxnet.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 429 | v3_sxnet.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 468 | v3_sxnet.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 430 | v3_sxnet.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 469 | v3_sxnet.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 431 | v3_sxnet.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 470 | v3_sxnet.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 432 | v3_sxnet.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 471 | v3_sxnet.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 433 | v3_sxnet.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 472 | v3_sxnet.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 434 | v3_sxnet.o: ../../include/openssl/x509v3.h ../cryptlib.h | 473 | v3_sxnet.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
| 474 | v3_sxnet.o: ../cryptlib.h | ||
| 435 | v3_utl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 475 | v3_utl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 436 | v3_utl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 476 | v3_utl.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 437 | v3_utl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | 477 | v3_utl.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| 438 | v3_utl.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | 478 | v3_utl.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 439 | v3_utl.o: ../../include/openssl/des.h ../../include/openssl/dh.h | 479 | v3_utl.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 440 | v3_utl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | 480 | v3_utl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h |
| 441 | v3_utl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 481 | v3_utl.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h |
| 442 | v3_utl.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 482 | v3_utl.o: ../../include/openssl/err.h ../../include/openssl/evp.h |
| 443 | v3_utl.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 483 | v3_utl.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h |
| 484 | v3_utl.o: ../../include/openssl/md2.h ../../include/openssl/md4.h | ||
| 444 | v3_utl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 485 | v3_utl.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h |
| 445 | v3_utl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 486 | v3_utl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h |
| 446 | v3_utl.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 487 | v3_utl.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
| 447 | v3_utl.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 488 | v3_utl.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h |
| 448 | v3_utl.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 489 | v3_utl.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h |
| 449 | v3_utl.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 490 | v3_utl.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h |
| 450 | v3_utl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 491 | v3_utl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
| 492 | v3_utl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 451 | v3_utl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 493 | v3_utl.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h |
| 452 | v3_utl.o: ../../include/openssl/x509v3.h ../cryptlib.h | 494 | v3_utl.o: ../../include/openssl/x509v3.h ../cryptlib.h |
| 453 | v3err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 495 | v3err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
| 454 | v3err.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | 496 | v3err.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h |
| 455 | v3err.o: ../../include/openssl/cast.h ../../include/openssl/conf.h | 497 | v3err.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h |
| 456 | v3err.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | 498 | v3err.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h |
| 457 | v3err.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | 499 | v3err.o: ../../include/openssl/des.h ../../include/openssl/dh.h |
| 500 | v3err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h | ||
| 458 | v3err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 501 | v3err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 459 | v3err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h | 502 | v3err.o: ../../include/openssl/evp.h ../../include/openssl/idea.h |
| 460 | v3err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h | 503 | v3err.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h |
| 461 | v3err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | 504 | v3err.o: ../../include/openssl/md4.h ../../include/openssl/md5.h |
| 505 | v3err.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h | ||
| 462 | v3err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | 506 | v3err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
| 463 | v3err.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | 507 | v3err.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h |
| 464 | v3err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | 508 | v3err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h |
| 465 | v3err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | 509 | v3err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h |
| 466 | v3err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | 510 | v3err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h |
| 467 | v3err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 511 | v3err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
| 468 | v3err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | 512 | v3err.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h |
| 469 | v3err.o: ../../include/openssl/x509v3.h | 513 | v3err.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h |
diff --git a/src/lib/libcrypto/x509v3/v3_akey.c b/src/lib/libcrypto/x509v3/v3_akey.c index 96c04fe4f5..0889a18993 100644 --- a/src/lib/libcrypto/x509v3/v3_akey.c +++ b/src/lib/libcrypto/x509v3/v3_akey.c | |||
| @@ -132,7 +132,7 @@ void AUTHORITY_KEYID_free(AUTHORITY_KEYID *a) | |||
| 132 | M_ASN1_OCTET_STRING_free(a->keyid); | 132 | M_ASN1_OCTET_STRING_free(a->keyid); |
| 133 | sk_GENERAL_NAME_pop_free(a->issuer, GENERAL_NAME_free); | 133 | sk_GENERAL_NAME_pop_free(a->issuer, GENERAL_NAME_free); |
| 134 | M_ASN1_INTEGER_free (a->serial); | 134 | M_ASN1_INTEGER_free (a->serial); |
| 135 | Free (a); | 135 | OPENSSL_free (a); |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_KEYID(X509V3_EXT_METHOD *method, | 138 | static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_KEYID(X509V3_EXT_METHOD *method, |
| @@ -142,7 +142,7 @@ static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_KEYID(X509V3_EXT_METHOD *method, | |||
| 142 | if(akeyid->keyid) { | 142 | if(akeyid->keyid) { |
| 143 | tmp = hex_to_string(akeyid->keyid->data, akeyid->keyid->length); | 143 | tmp = hex_to_string(akeyid->keyid->data, akeyid->keyid->length); |
| 144 | X509V3_add_value("keyid", tmp, &extlist); | 144 | X509V3_add_value("keyid", tmp, &extlist); |
| 145 | Free(tmp); | 145 | OPENSSL_free(tmp); |
| 146 | } | 146 | } |
| 147 | if(akeyid->issuer) | 147 | if(akeyid->issuer) |
| 148 | extlist = i2v_GENERAL_NAMES(NULL, akeyid->issuer, extlist); | 148 | extlist = i2v_GENERAL_NAMES(NULL, akeyid->issuer, extlist); |
| @@ -150,7 +150,7 @@ static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_KEYID(X509V3_EXT_METHOD *method, | |||
| 150 | tmp = hex_to_string(akeyid->serial->data, | 150 | tmp = hex_to_string(akeyid->serial->data, |
| 151 | akeyid->serial->length); | 151 | akeyid->serial->length); |
| 152 | X509V3_add_value("serial", tmp, &extlist); | 152 | X509V3_add_value("serial", tmp, &extlist); |
| 153 | Free(tmp); | 153 | OPENSSL_free(tmp); |
| 154 | } | 154 | } |
| 155 | return extlist; | 155 | return extlist; |
| 156 | } | 156 | } |
| @@ -224,7 +224,7 @@ if((issuer && !ikeyid) || (issuer == 2)) { | |||
| 224 | if(!(akeyid = AUTHORITY_KEYID_new())) goto err; | 224 | if(!(akeyid = AUTHORITY_KEYID_new())) goto err; |
| 225 | 225 | ||
| 226 | if(isname) { | 226 | if(isname) { |
| 227 | if(!(gens = sk_GENERAL_NAME_new(NULL)) || !(gen = GENERAL_NAME_new()) | 227 | if(!(gens = sk_GENERAL_NAME_new_null()) || !(gen = GENERAL_NAME_new()) |
| 228 | || !sk_GENERAL_NAME_push(gens, gen)) { | 228 | || !sk_GENERAL_NAME_push(gens, gen)) { |
| 229 | X509V3err(X509V3_F_V2I_AUTHORITY_KEYID,ERR_R_MALLOC_FAILURE); | 229 | X509V3err(X509V3_F_V2I_AUTHORITY_KEYID,ERR_R_MALLOC_FAILURE); |
| 230 | goto err; | 230 | goto err; |
diff --git a/src/lib/libcrypto/x509v3/v3_alt.c b/src/lib/libcrypto/x509v3/v3_alt.c index 5ccd1e0e3d..733919f250 100644 --- a/src/lib/libcrypto/x509v3/v3_alt.c +++ b/src/lib/libcrypto/x509v3/v3_alt.c | |||
| @@ -160,7 +160,7 @@ static STACK_OF(GENERAL_NAME) *v2i_issuer_alt(X509V3_EXT_METHOD *method, | |||
| 160 | STACK_OF(GENERAL_NAME) *gens = NULL; | 160 | STACK_OF(GENERAL_NAME) *gens = NULL; |
| 161 | CONF_VALUE *cnf; | 161 | CONF_VALUE *cnf; |
| 162 | int i; | 162 | int i; |
| 163 | if(!(gens = sk_GENERAL_NAME_new(NULL))) { | 163 | if(!(gens = sk_GENERAL_NAME_new_null())) { |
| 164 | X509V3err(X509V3_F_V2I_GENERAL_NAMES,ERR_R_MALLOC_FAILURE); | 164 | X509V3err(X509V3_F_V2I_GENERAL_NAMES,ERR_R_MALLOC_FAILURE); |
| 165 | return NULL; | 165 | return NULL; |
| 166 | } | 166 | } |
| @@ -225,7 +225,7 @@ static STACK_OF(GENERAL_NAME) *v2i_subject_alt(X509V3_EXT_METHOD *method, | |||
| 225 | STACK_OF(GENERAL_NAME) *gens = NULL; | 225 | STACK_OF(GENERAL_NAME) *gens = NULL; |
| 226 | CONF_VALUE *cnf; | 226 | CONF_VALUE *cnf; |
| 227 | int i; | 227 | int i; |
| 228 | if(!(gens = sk_GENERAL_NAME_new(NULL))) { | 228 | if(!(gens = sk_GENERAL_NAME_new_null())) { |
| 229 | X509V3err(X509V3_F_V2I_GENERAL_NAMES,ERR_R_MALLOC_FAILURE); | 229 | X509V3err(X509V3_F_V2I_GENERAL_NAMES,ERR_R_MALLOC_FAILURE); |
| 230 | return NULL; | 230 | return NULL; |
| 231 | } | 231 | } |
| @@ -304,7 +304,7 @@ STACK_OF(GENERAL_NAME) *v2i_GENERAL_NAMES(X509V3_EXT_METHOD *method, | |||
| 304 | STACK_OF(GENERAL_NAME) *gens = NULL; | 304 | STACK_OF(GENERAL_NAME) *gens = NULL; |
| 305 | CONF_VALUE *cnf; | 305 | CONF_VALUE *cnf; |
| 306 | int i; | 306 | int i; |
| 307 | if(!(gens = sk_GENERAL_NAME_new(NULL))) { | 307 | if(!(gens = sk_GENERAL_NAME_new_null())) { |
| 308 | X509V3err(X509V3_F_V2I_GENERAL_NAMES,ERR_R_MALLOC_FAILURE); | 308 | X509V3err(X509V3_F_V2I_GENERAL_NAMES,ERR_R_MALLOC_FAILURE); |
| 309 | return NULL; | 309 | return NULL; |
| 310 | } | 310 | } |
diff --git a/src/lib/libcrypto/x509v3/v3_bcons.c b/src/lib/libcrypto/x509v3/v3_bcons.c index 1e3edc205f..c576b8e955 100644 --- a/src/lib/libcrypto/x509v3/v3_bcons.c +++ b/src/lib/libcrypto/x509v3/v3_bcons.c | |||
| @@ -123,7 +123,7 @@ void BASIC_CONSTRAINTS_free(BASIC_CONSTRAINTS *a) | |||
| 123 | { | 123 | { |
| 124 | if (a == NULL) return; | 124 | if (a == NULL) return; |
| 125 | M_ASN1_INTEGER_free (a->pathlen); | 125 | M_ASN1_INTEGER_free (a->pathlen); |
| 126 | Free (a); | 126 | OPENSSL_free (a); |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | static STACK_OF(CONF_VALUE) *i2v_BASIC_CONSTRAINTS(X509V3_EXT_METHOD *method, | 129 | static STACK_OF(CONF_VALUE) *i2v_BASIC_CONSTRAINTS(X509V3_EXT_METHOD *method, |
diff --git a/src/lib/libcrypto/x509v3/v3_conf.c b/src/lib/libcrypto/x509v3/v3_conf.c index b2f03010cc..bdc9c1cbc1 100644 --- a/src/lib/libcrypto/x509v3/v3_conf.c +++ b/src/lib/libcrypto/x509v3/v3_conf.c | |||
| @@ -167,7 +167,7 @@ static X509_EXTENSION *do_ext_i2d(X509V3_EXT_METHOD *method, int ext_nid, | |||
| 167 | X509_EXTENSION *ext; | 167 | X509_EXTENSION *ext; |
| 168 | /* Convert internal representation to DER */ | 168 | /* Convert internal representation to DER */ |
| 169 | ext_len = method->i2d(ext_struc, NULL); | 169 | ext_len = method->i2d(ext_struc, NULL); |
| 170 | if(!(ext_der = Malloc(ext_len))) goto merr; | 170 | if(!(ext_der = OPENSSL_malloc(ext_len))) goto merr; |
| 171 | p = ext_der; | 171 | p = ext_der; |
| 172 | method->i2d(ext_struc, &p); | 172 | method->i2d(ext_struc, &p); |
| 173 | if(!(ext_oct = M_ASN1_OCTET_STRING_new())) goto merr; | 173 | if(!(ext_oct = M_ASN1_OCTET_STRING_new())) goto merr; |
| @@ -255,7 +255,7 @@ extension = X509_EXTENSION_create_by_OBJ(NULL, obj, crit, oct); | |||
| 255 | err: | 255 | err: |
| 256 | ASN1_OBJECT_free(obj); | 256 | ASN1_OBJECT_free(obj); |
| 257 | M_ASN1_OCTET_STRING_free(oct); | 257 | M_ASN1_OCTET_STRING_free(oct); |
| 258 | if(ext_der) Free(ext_der); | 258 | if(ext_der) OPENSSL_free(ext_der); |
| 259 | return extension; | 259 | return extension; |
| 260 | } | 260 | } |
| 261 | 261 | ||
diff --git a/src/lib/libcrypto/x509v3/v3_cpols.c b/src/lib/libcrypto/x509v3/v3_cpols.c index 466713b50d..8203ed7571 100644 --- a/src/lib/libcrypto/x509v3/v3_cpols.c +++ b/src/lib/libcrypto/x509v3/v3_cpols.c | |||
| @@ -73,7 +73,7 @@ static POLICYINFO *policy_section(X509V3_CTX *ctx, | |||
| 73 | STACK_OF(CONF_VALUE) *polstrs, int ia5org); | 73 | STACK_OF(CONF_VALUE) *polstrs, int ia5org); |
| 74 | static POLICYQUALINFO *notice_section(X509V3_CTX *ctx, | 74 | static POLICYQUALINFO *notice_section(X509V3_CTX *ctx, |
| 75 | STACK_OF(CONF_VALUE) *unot, int ia5org); | 75 | STACK_OF(CONF_VALUE) *unot, int ia5org); |
| 76 | static STACK *nref_nos(STACK_OF(CONF_VALUE) *nos); | 76 | static STACK_OF(ASN1_INTEGER) *nref_nos(STACK_OF(CONF_VALUE) *nos); |
| 77 | 77 | ||
| 78 | X509V3_EXT_METHOD v3_cpols = { | 78 | X509V3_EXT_METHOD v3_cpols = { |
| 79 | NID_certificate_policies, 0, | 79 | NID_certificate_policies, 0, |
| @@ -282,20 +282,22 @@ static POLICYQUALINFO *notice_section(X509V3_CTX *ctx, | |||
| 282 | return NULL; | 282 | return NULL; |
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | static STACK *nref_nos(STACK_OF(CONF_VALUE) *nos) | 285 | static STACK_OF(ASN1_INTEGER) *nref_nos(STACK_OF(CONF_VALUE) *nos) |
| 286 | { | 286 | { |
| 287 | STACK *nnums; | 287 | STACK_OF(ASN1_INTEGER) *nnums; |
| 288 | CONF_VALUE *cnf; | 288 | CONF_VALUE *cnf; |
| 289 | ASN1_INTEGER *aint; | 289 | ASN1_INTEGER *aint; |
| 290 | |||
| 290 | int i; | 291 | int i; |
| 291 | if(!(nnums = sk_new_null())) goto merr; | 292 | |
| 293 | if(!(nnums = sk_ASN1_INTEGER_new_null())) goto merr; | ||
| 292 | for(i = 0; i < sk_CONF_VALUE_num(nos); i++) { | 294 | for(i = 0; i < sk_CONF_VALUE_num(nos); i++) { |
| 293 | cnf = sk_CONF_VALUE_value(nos, i); | 295 | cnf = sk_CONF_VALUE_value(nos, i); |
| 294 | if(!(aint = s2i_ASN1_INTEGER(NULL, cnf->name))) { | 296 | if(!(aint = s2i_ASN1_INTEGER(NULL, cnf->name))) { |
| 295 | X509V3err(X509V3_F_NREF_NOS,X509V3_R_INVALID_NUMBER); | 297 | X509V3err(X509V3_F_NREF_NOS,X509V3_R_INVALID_NUMBER); |
| 296 | goto err; | 298 | goto err; |
| 297 | } | 299 | } |
| 298 | if(!sk_push(nnums, (char *)aint)) goto merr; | 300 | if(!sk_ASN1_INTEGER_push(nnums, aint)) goto merr; |
| 299 | } | 301 | } |
| 300 | return nnums; | 302 | return nnums; |
| 301 | 303 | ||
| @@ -303,7 +305,7 @@ static STACK *nref_nos(STACK_OF(CONF_VALUE) *nos) | |||
| 303 | X509V3err(X509V3_F_NOTICE_SECTION,ERR_R_MALLOC_FAILURE); | 305 | X509V3err(X509V3_F_NOTICE_SECTION,ERR_R_MALLOC_FAILURE); |
| 304 | 306 | ||
| 305 | err: | 307 | err: |
| 306 | sk_pop_free(nnums, ASN1_STRING_free); | 308 | sk_ASN1_INTEGER_pop_free(nnums, ASN1_STRING_free); |
| 307 | return NULL; | 309 | return NULL; |
| 308 | } | 310 | } |
| 309 | 311 | ||
| @@ -399,7 +401,7 @@ void POLICYINFO_free(POLICYINFO *a) | |||
| 399 | if (a == NULL) return; | 401 | if (a == NULL) return; |
| 400 | ASN1_OBJECT_free(a->policyid); | 402 | ASN1_OBJECT_free(a->policyid); |
| 401 | sk_POLICYQUALINFO_pop_free(a->qualifiers, POLICYQUALINFO_free); | 403 | sk_POLICYQUALINFO_pop_free(a->qualifiers, POLICYQUALINFO_free); |
| 402 | Free (a); | 404 | OPENSSL_free (a); |
| 403 | } | 405 | } |
| 404 | 406 | ||
| 405 | static void print_qualifiers(BIO *out, STACK_OF(POLICYQUALINFO) *quals, | 407 | static void print_qualifiers(BIO *out, STACK_OF(POLICYQUALINFO) *quals, |
| @@ -441,15 +443,15 @@ static void print_notice(BIO *out, USERNOTICE *notice, int indent) | |||
| 441 | BIO_printf(out, "%*sOrganization: %s\n", indent, "", | 443 | BIO_printf(out, "%*sOrganization: %s\n", indent, "", |
| 442 | ref->organization->data); | 444 | ref->organization->data); |
| 443 | BIO_printf(out, "%*sNumber%s: ", indent, "", | 445 | BIO_printf(out, "%*sNumber%s: ", indent, "", |
| 444 | (sk_num(ref->noticenos) > 1) ? "s" : ""); | 446 | sk_ASN1_INTEGER_num(ref->noticenos) > 1 ? "s" : ""); |
| 445 | for(i = 0; i < sk_num(ref->noticenos); i++) { | 447 | for(i = 0; i < sk_ASN1_INTEGER_num(ref->noticenos); i++) { |
| 446 | ASN1_INTEGER *num; | 448 | ASN1_INTEGER *num; |
| 447 | char *tmp; | 449 | char *tmp; |
| 448 | num = (ASN1_INTEGER *)sk_value(ref->noticenos, i); | 450 | num = sk_ASN1_INTEGER_value(ref->noticenos, i); |
| 449 | if(i) BIO_puts(out, ", "); | 451 | if(i) BIO_puts(out, ", "); |
| 450 | tmp = i2s_ASN1_INTEGER(NULL, num); | 452 | tmp = i2s_ASN1_INTEGER(NULL, num); |
| 451 | BIO_puts(out, tmp); | 453 | BIO_puts(out, tmp); |
| 452 | Free(tmp); | 454 | OPENSSL_free(tmp); |
| 453 | } | 455 | } |
| 454 | BIO_puts(out, "\n"); | 456 | BIO_puts(out, "\n"); |
| 455 | } | 457 | } |
| @@ -551,7 +553,7 @@ void POLICYQUALINFO_free(POLICYQUALINFO *a) | |||
| 551 | } | 553 | } |
| 552 | 554 | ||
| 553 | ASN1_OBJECT_free(a->pqualid); | 555 | ASN1_OBJECT_free(a->pqualid); |
| 554 | Free (a); | 556 | OPENSSL_free (a); |
| 555 | } | 557 | } |
| 556 | 558 | ||
| 557 | int i2d_USERNOTICE(USERNOTICE *a, unsigned char **pp) | 559 | int i2d_USERNOTICE(USERNOTICE *a, unsigned char **pp) |
| @@ -597,7 +599,7 @@ void USERNOTICE_free(USERNOTICE *a) | |||
| 597 | if (a == NULL) return; | 599 | if (a == NULL) return; |
| 598 | NOTICEREF_free(a->noticeref); | 600 | NOTICEREF_free(a->noticeref); |
| 599 | M_DISPLAYTEXT_free(a->exptext); | 601 | M_DISPLAYTEXT_free(a->exptext); |
| 600 | Free (a); | 602 | OPENSSL_free (a); |
| 601 | } | 603 | } |
| 602 | 604 | ||
| 603 | int i2d_NOTICEREF(NOTICEREF *a, unsigned char **pp) | 605 | int i2d_NOTICEREF(NOTICEREF *a, unsigned char **pp) |
| @@ -605,12 +607,14 @@ int i2d_NOTICEREF(NOTICEREF *a, unsigned char **pp) | |||
| 605 | M_ASN1_I2D_vars(a); | 607 | M_ASN1_I2D_vars(a); |
| 606 | 608 | ||
| 607 | M_ASN1_I2D_len (a->organization, i2d_DISPLAYTEXT); | 609 | M_ASN1_I2D_len (a->organization, i2d_DISPLAYTEXT); |
| 608 | M_ASN1_I2D_len_SEQUENCE(a->noticenos, i2d_ASN1_INTEGER); | 610 | M_ASN1_I2D_len_SEQUENCE_type(ASN1_INTEGER, a->noticenos, |
| 611 | i2d_ASN1_INTEGER); | ||
| 609 | 612 | ||
| 610 | M_ASN1_I2D_seq_total(); | 613 | M_ASN1_I2D_seq_total(); |
| 611 | 614 | ||
| 612 | M_ASN1_I2D_put (a->organization, i2d_DISPLAYTEXT); | 615 | M_ASN1_I2D_put (a->organization, i2d_DISPLAYTEXT); |
| 613 | M_ASN1_I2D_put_SEQUENCE(a->noticenos, i2d_ASN1_INTEGER); | 616 | M_ASN1_I2D_put_SEQUENCE_type(ASN1_INTEGER, a->noticenos, |
| 617 | i2d_ASN1_INTEGER); | ||
| 614 | 618 | ||
| 615 | M_ASN1_I2D_finish(); | 619 | M_ASN1_I2D_finish(); |
| 616 | } | 620 | } |
| @@ -639,7 +643,8 @@ NOTICEREF *d2i_NOTICEREF(NOTICEREF **a, unsigned char **pp,long length) | |||
| 639 | if(!ret->organization) { | 643 | if(!ret->organization) { |
| 640 | M_ASN1_D2I_get(ret->organization, d2i_DISPLAYTEXT); | 644 | M_ASN1_D2I_get(ret->organization, d2i_DISPLAYTEXT); |
| 641 | } | 645 | } |
| 642 | M_ASN1_D2I_get_seq(ret->noticenos, d2i_ASN1_INTEGER, ASN1_STRING_free); | 646 | M_ASN1_D2I_get_seq_type(ASN1_INTEGER, ret->noticenos, d2i_ASN1_INTEGER, |
| 647 | ASN1_STRING_free); | ||
| 643 | M_ASN1_D2I_Finish(a, NOTICEREF_free, ASN1_F_D2I_NOTICEREF); | 648 | M_ASN1_D2I_Finish(a, NOTICEREF_free, ASN1_F_D2I_NOTICEREF); |
| 644 | } | 649 | } |
| 645 | 650 | ||
| @@ -647,8 +652,8 @@ void NOTICEREF_free(NOTICEREF *a) | |||
| 647 | { | 652 | { |
| 648 | if (a == NULL) return; | 653 | if (a == NULL) return; |
| 649 | M_DISPLAYTEXT_free(a->organization); | 654 | M_DISPLAYTEXT_free(a->organization); |
| 650 | sk_pop_free(a->noticenos, ASN1_STRING_free); | 655 | sk_ASN1_INTEGER_pop_free(a->noticenos, ASN1_STRING_free); |
| 651 | Free (a); | 656 | OPENSSL_free (a); |
| 652 | } | 657 | } |
| 653 | 658 | ||
| 654 | IMPLEMENT_STACK_OF(POLICYQUALINFO) | 659 | IMPLEMENT_STACK_OF(POLICYQUALINFO) |
diff --git a/src/lib/libcrypto/x509v3/v3_crld.c b/src/lib/libcrypto/x509v3/v3_crld.c index e459d2595a..67feea4017 100644 --- a/src/lib/libcrypto/x509v3/v3_crld.c +++ b/src/lib/libcrypto/x509v3/v3_crld.c | |||
| @@ -87,7 +87,7 @@ static STACK_OF(CONF_VALUE) *i2v_crld(X509V3_EXT_METHOD *method, | |||
| 87 | int i; | 87 | int i; |
| 88 | for(i = 0; i < sk_DIST_POINT_num(crld); i++) { | 88 | for(i = 0; i < sk_DIST_POINT_num(crld); i++) { |
| 89 | point = sk_DIST_POINT_value(crld, i); | 89 | point = sk_DIST_POINT_value(crld, i); |
| 90 | if(point->distpoint->fullname) { | 90 | if(point->distpoint && point->distpoint->fullname) { |
| 91 | exts = i2v_GENERAL_NAMES(NULL, | 91 | exts = i2v_GENERAL_NAMES(NULL, |
| 92 | point->distpoint->fullname, exts); | 92 | point->distpoint->fullname, exts); |
| 93 | } | 93 | } |
| @@ -95,7 +95,7 @@ static STACK_OF(CONF_VALUE) *i2v_crld(X509V3_EXT_METHOD *method, | |||
| 95 | X509V3_add_value("reasons","<UNSUPPORTED>", &exts); | 95 | X509V3_add_value("reasons","<UNSUPPORTED>", &exts); |
| 96 | if(point->CRLissuer) | 96 | if(point->CRLissuer) |
| 97 | X509V3_add_value("CRLissuer","<UNSUPPORTED>", &exts); | 97 | X509V3_add_value("CRLissuer","<UNSUPPORTED>", &exts); |
| 98 | if(point->distpoint->relativename) | 98 | if(point->distpoint && point->distpoint->relativename) |
| 99 | X509V3_add_value("RelativeName","<UNSUPPORTED>", &exts); | 99 | X509V3_add_value("RelativeName","<UNSUPPORTED>", &exts); |
| 100 | } | 100 | } |
| 101 | return exts; | 101 | return exts; |
| @@ -109,7 +109,7 @@ static STACK_OF(DIST_POINT) *v2i_crld(X509V3_EXT_METHOD *method, | |||
| 109 | GENERAL_NAME *gen = NULL; | 109 | GENERAL_NAME *gen = NULL; |
| 110 | CONF_VALUE *cnf; | 110 | CONF_VALUE *cnf; |
| 111 | int i; | 111 | int i; |
| 112 | if(!(crld = sk_DIST_POINT_new(NULL))) goto merr; | 112 | if(!(crld = sk_DIST_POINT_new_null())) goto merr; |
| 113 | for(i = 0; i < sk_CONF_VALUE_num(nval); i++) { | 113 | for(i = 0; i < sk_CONF_VALUE_num(nval); i++) { |
| 114 | DIST_POINT *point; | 114 | DIST_POINT *point; |
| 115 | cnf = sk_CONF_VALUE_value(nval, i); | 115 | cnf = sk_CONF_VALUE_value(nval, i); |
| @@ -213,7 +213,7 @@ void DIST_POINT_free(DIST_POINT *a) | |||
| 213 | DIST_POINT_NAME_free(a->distpoint); | 213 | DIST_POINT_NAME_free(a->distpoint); |
| 214 | M_ASN1_BIT_STRING_free(a->reasons); | 214 | M_ASN1_BIT_STRING_free(a->reasons); |
| 215 | sk_GENERAL_NAME_pop_free(a->CRLissuer, GENERAL_NAME_free); | 215 | sk_GENERAL_NAME_pop_free(a->CRLissuer, GENERAL_NAME_free); |
| 216 | Free (a); | 216 | OPENSSL_free (a); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | int i2d_DIST_POINT_NAME(DIST_POINT_NAME *a, unsigned char **pp) | 219 | int i2d_DIST_POINT_NAME(DIST_POINT_NAME *a, unsigned char **pp) |
| @@ -256,7 +256,7 @@ void DIST_POINT_NAME_free(DIST_POINT_NAME *a) | |||
| 256 | if (a == NULL) return; | 256 | if (a == NULL) return; |
| 257 | sk_X509_NAME_ENTRY_pop_free(a->relativename, X509_NAME_ENTRY_free); | 257 | sk_X509_NAME_ENTRY_pop_free(a->relativename, X509_NAME_ENTRY_free); |
| 258 | sk_GENERAL_NAME_pop_free(a->fullname, GENERAL_NAME_free); | 258 | sk_GENERAL_NAME_pop_free(a->fullname, GENERAL_NAME_free); |
| 259 | Free (a); | 259 | OPENSSL_free (a); |
| 260 | } | 260 | } |
| 261 | 261 | ||
| 262 | DIST_POINT_NAME *d2i_DIST_POINT_NAME(DIST_POINT_NAME **a, unsigned char **pp, | 262 | DIST_POINT_NAME *d2i_DIST_POINT_NAME(DIST_POINT_NAME **a, unsigned char **pp, |
diff --git a/src/lib/libcrypto/x509v3/v3_extku.c b/src/lib/libcrypto/x509v3/v3_extku.c index e039d21cbf..53ec40a027 100644 --- a/src/lib/libcrypto/x509v3/v3_extku.c +++ b/src/lib/libcrypto/x509v3/v3_extku.c | |||
| @@ -129,7 +129,7 @@ ASN1_OBJECT *objtmp; | |||
| 129 | CONF_VALUE *val; | 129 | CONF_VALUE *val; |
| 130 | int i; | 130 | int i; |
| 131 | 131 | ||
| 132 | if(!(extku = sk_ASN1_OBJECT_new(NULL))) { | 132 | if(!(extku = sk_ASN1_OBJECT_new_null())) { |
| 133 | X509V3err(X509V3_F_V2I_EXT_KU,ERR_R_MALLOC_FAILURE); | 133 | X509V3err(X509V3_F_V2I_EXT_KU,ERR_R_MALLOC_FAILURE); |
| 134 | return NULL; | 134 | return NULL; |
| 135 | } | 135 | } |
diff --git a/src/lib/libcrypto/x509v3/v3_genn.c b/src/lib/libcrypto/x509v3/v3_genn.c index 894afa7e03..d44751458e 100644 --- a/src/lib/libcrypto/x509v3/v3_genn.c +++ b/src/lib/libcrypto/x509v3/v3_genn.c | |||
| @@ -211,7 +211,7 @@ void GENERAL_NAME_free(GENERAL_NAME *a) | |||
| 211 | break; | 211 | break; |
| 212 | 212 | ||
| 213 | } | 213 | } |
| 214 | Free (a); | 214 | OPENSSL_free (a); |
| 215 | } | 215 | } |
| 216 | 216 | ||
| 217 | /* Now the GeneralNames versions: a SEQUENCE OF GeneralName. These are needed as | 217 | /* Now the GeneralNames versions: a SEQUENCE OF GeneralName. These are needed as |
| @@ -220,7 +220,7 @@ void GENERAL_NAME_free(GENERAL_NAME *a) | |||
| 220 | 220 | ||
| 221 | STACK_OF(GENERAL_NAME) *GENERAL_NAMES_new() | 221 | STACK_OF(GENERAL_NAME) *GENERAL_NAMES_new() |
| 222 | { | 222 | { |
| 223 | return sk_GENERAL_NAME_new(NULL); | 223 | return sk_GENERAL_NAME_new_null(); |
| 224 | } | 224 | } |
| 225 | 225 | ||
| 226 | void GENERAL_NAMES_free(STACK_OF(GENERAL_NAME) *a) | 226 | void GENERAL_NAMES_free(STACK_OF(GENERAL_NAME) *a) |
| @@ -286,6 +286,6 @@ void OTHERNAME_free(OTHERNAME *a) | |||
| 286 | if (a == NULL) return; | 286 | if (a == NULL) return; |
| 287 | ASN1_OBJECT_free(a->type_id); | 287 | ASN1_OBJECT_free(a->type_id); |
| 288 | ASN1_TYPE_free(a->value); | 288 | ASN1_TYPE_free(a->value); |
| 289 | Free (a); | 289 | OPENSSL_free (a); |
| 290 | } | 290 | } |
| 291 | 291 | ||
diff --git a/src/lib/libcrypto/x509v3/v3_ia5.c b/src/lib/libcrypto/x509v3/v3_ia5.c index af3525f33e..f3bba38269 100644 --- a/src/lib/libcrypto/x509v3/v3_ia5.c +++ b/src/lib/libcrypto/x509v3/v3_ia5.c | |||
| @@ -82,7 +82,7 @@ static char *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method, | |||
| 82 | { | 82 | { |
| 83 | char *tmp; | 83 | char *tmp; |
| 84 | if(!ia5 || !ia5->length) return NULL; | 84 | if(!ia5 || !ia5->length) return NULL; |
| 85 | tmp = Malloc(ia5->length + 1); | 85 | tmp = OPENSSL_malloc(ia5->length + 1); |
| 86 | memcpy(tmp, ia5->data, ia5->length); | 86 | memcpy(tmp, ia5->data, ia5->length); |
| 87 | tmp[ia5->length] = 0; | 87 | tmp[ia5->length] = 0; |
| 88 | return tmp; | 88 | return tmp; |
diff --git a/src/lib/libcrypto/x509v3/v3_info.c b/src/lib/libcrypto/x509v3/v3_info.c index 78d2135046..a045a629ee 100644 --- a/src/lib/libcrypto/x509v3/v3_info.c +++ b/src/lib/libcrypto/x509v3/v3_info.c | |||
| @@ -94,7 +94,7 @@ static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD *method | |||
| 94 | if(!ret) break; | 94 | if(!ret) break; |
| 95 | vtmp = sk_CONF_VALUE_value(ret, i); | 95 | vtmp = sk_CONF_VALUE_value(ret, i); |
| 96 | i2t_ASN1_OBJECT(objtmp, 80, desc->method); | 96 | i2t_ASN1_OBJECT(objtmp, 80, desc->method); |
| 97 | ntmp = Malloc(strlen(objtmp) + strlen(vtmp->name) + 5); | 97 | ntmp = OPENSSL_malloc(strlen(objtmp) + strlen(vtmp->name) + 5); |
| 98 | if(!ntmp) { | 98 | if(!ntmp) { |
| 99 | X509V3err(X509V3_F_I2V_AUTHORITY_INFO_ACCESS, | 99 | X509V3err(X509V3_F_I2V_AUTHORITY_INFO_ACCESS, |
| 100 | ERR_R_MALLOC_FAILURE); | 100 | ERR_R_MALLOC_FAILURE); |
| @@ -103,7 +103,7 @@ static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD *method | |||
| 103 | strcpy(ntmp, objtmp); | 103 | strcpy(ntmp, objtmp); |
| 104 | strcat(ntmp, " - "); | 104 | strcat(ntmp, " - "); |
| 105 | strcat(ntmp, vtmp->name); | 105 | strcat(ntmp, vtmp->name); |
| 106 | Free(vtmp->name); | 106 | OPENSSL_free(vtmp->name); |
| 107 | vtmp->name = ntmp; | 107 | vtmp->name = ntmp; |
| 108 | 108 | ||
| 109 | } | 109 | } |
| @@ -119,7 +119,7 @@ static STACK_OF(ACCESS_DESCRIPTION) *v2i_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD | |||
| 119 | ACCESS_DESCRIPTION *acc; | 119 | ACCESS_DESCRIPTION *acc; |
| 120 | int i, objlen; | 120 | int i, objlen; |
| 121 | char *objtmp, *ptmp; | 121 | char *objtmp, *ptmp; |
| 122 | if(!(ainfo = sk_ACCESS_DESCRIPTION_new(NULL))) { | 122 | if(!(ainfo = sk_ACCESS_DESCRIPTION_new_null())) { |
| 123 | X509V3err(X509V3_F_V2I_ACCESS_DESCRIPTION,ERR_R_MALLOC_FAILURE); | 123 | X509V3err(X509V3_F_V2I_ACCESS_DESCRIPTION,ERR_R_MALLOC_FAILURE); |
| 124 | return NULL; | 124 | return NULL; |
| 125 | } | 125 | } |
| @@ -140,7 +140,7 @@ static STACK_OF(ACCESS_DESCRIPTION) *v2i_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD | |||
| 140 | ctmp.value = cnf->value; | 140 | ctmp.value = cnf->value; |
| 141 | if(!(acc->location = v2i_GENERAL_NAME(method, ctx, &ctmp))) | 141 | if(!(acc->location = v2i_GENERAL_NAME(method, ctx, &ctmp))) |
| 142 | goto err; | 142 | goto err; |
| 143 | if(!(objtmp = Malloc(objlen + 1))) { | 143 | if(!(objtmp = OPENSSL_malloc(objlen + 1))) { |
| 144 | X509V3err(X509V3_F_V2I_ACCESS_DESCRIPTION,ERR_R_MALLOC_FAILURE); | 144 | X509V3err(X509V3_F_V2I_ACCESS_DESCRIPTION,ERR_R_MALLOC_FAILURE); |
| 145 | goto err; | 145 | goto err; |
| 146 | } | 146 | } |
| @@ -150,10 +150,10 @@ static STACK_OF(ACCESS_DESCRIPTION) *v2i_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD | |||
| 150 | if(!acc->method) { | 150 | if(!acc->method) { |
| 151 | X509V3err(X509V3_F_V2I_ACCESS_DESCRIPTION,X509V3_R_BAD_OBJECT); | 151 | X509V3err(X509V3_F_V2I_ACCESS_DESCRIPTION,X509V3_R_BAD_OBJECT); |
| 152 | ERR_add_error_data(2, "value=", objtmp); | 152 | ERR_add_error_data(2, "value=", objtmp); |
| 153 | Free(objtmp); | 153 | OPENSSL_free(objtmp); |
| 154 | goto err; | 154 | goto err; |
| 155 | } | 155 | } |
| 156 | Free(objtmp); | 156 | OPENSSL_free(objtmp); |
| 157 | 157 | ||
| 158 | } | 158 | } |
| 159 | return ainfo; | 159 | return ainfo; |
| @@ -204,12 +204,12 @@ void ACCESS_DESCRIPTION_free(ACCESS_DESCRIPTION *a) | |||
| 204 | if (a == NULL) return; | 204 | if (a == NULL) return; |
| 205 | ASN1_OBJECT_free(a->method); | 205 | ASN1_OBJECT_free(a->method); |
| 206 | GENERAL_NAME_free(a->location); | 206 | GENERAL_NAME_free(a->location); |
| 207 | Free (a); | 207 | OPENSSL_free (a); |
| 208 | } | 208 | } |
| 209 | 209 | ||
| 210 | STACK_OF(ACCESS_DESCRIPTION) *AUTHORITY_INFO_ACCESS_new(void) | 210 | STACK_OF(ACCESS_DESCRIPTION) *AUTHORITY_INFO_ACCESS_new(void) |
| 211 | { | 211 | { |
| 212 | return sk_ACCESS_DESCRIPTION_new(NULL); | 212 | return sk_ACCESS_DESCRIPTION_new_null(); |
| 213 | } | 213 | } |
| 214 | 214 | ||
| 215 | void AUTHORITY_INFO_ACCESS_free(STACK_OF(ACCESS_DESCRIPTION) *a) | 215 | void AUTHORITY_INFO_ACCESS_free(STACK_OF(ACCESS_DESCRIPTION) *a) |
diff --git a/src/lib/libcrypto/x509v3/v3_lib.c b/src/lib/libcrypto/x509v3/v3_lib.c index 4242d130a2..ea86b9ebb9 100644 --- a/src/lib/libcrypto/x509v3/v3_lib.c +++ b/src/lib/libcrypto/x509v3/v3_lib.c | |||
| @@ -64,25 +64,27 @@ | |||
| 64 | 64 | ||
| 65 | #include "ext_dat.h" | 65 | #include "ext_dat.h" |
| 66 | 66 | ||
| 67 | static STACK *ext_list = NULL; | 67 | static STACK_OF(X509V3_EXT_METHOD) *ext_list = NULL; |
| 68 | 68 | ||
| 69 | static int ext_cmp(X509V3_EXT_METHOD **a, X509V3_EXT_METHOD **b); | 69 | static int ext_cmp(const X509V3_EXT_METHOD * const *a, |
| 70 | const X509V3_EXT_METHOD * const *b); | ||
| 70 | static void ext_list_free(X509V3_EXT_METHOD *ext); | 71 | static void ext_list_free(X509V3_EXT_METHOD *ext); |
| 71 | 72 | ||
| 72 | int X509V3_EXT_add(X509V3_EXT_METHOD *ext) | 73 | int X509V3_EXT_add(X509V3_EXT_METHOD *ext) |
| 73 | { | 74 | { |
| 74 | if(!ext_list && !(ext_list = sk_new(ext_cmp))) { | 75 | if(!ext_list && !(ext_list = sk_X509V3_EXT_METHOD_new(ext_cmp))) { |
| 75 | X509V3err(X509V3_F_X509V3_EXT_ADD,ERR_R_MALLOC_FAILURE); | 76 | X509V3err(X509V3_F_X509V3_EXT_ADD,ERR_R_MALLOC_FAILURE); |
| 76 | return 0; | 77 | return 0; |
| 77 | } | 78 | } |
| 78 | if(!sk_push(ext_list, (char *)ext)) { | 79 | if(!sk_X509V3_EXT_METHOD_push(ext_list, ext)) { |
| 79 | X509V3err(X509V3_F_X509V3_EXT_ADD,ERR_R_MALLOC_FAILURE); | 80 | X509V3err(X509V3_F_X509V3_EXT_ADD,ERR_R_MALLOC_FAILURE); |
| 80 | return 0; | 81 | return 0; |
| 81 | } | 82 | } |
| 82 | return 1; | 83 | return 1; |
| 83 | } | 84 | } |
| 84 | 85 | ||
| 85 | static int ext_cmp(X509V3_EXT_METHOD **a, X509V3_EXT_METHOD **b) | 86 | static int ext_cmp(const X509V3_EXT_METHOD * const *a, |
| 87 | const X509V3_EXT_METHOD * const *b) | ||
| 86 | { | 88 | { |
| 87 | return ((*a)->ext_nid - (*b)->ext_nid); | 89 | return ((*a)->ext_nid - (*b)->ext_nid); |
| 88 | } | 90 | } |
| @@ -95,12 +97,12 @@ X509V3_EXT_METHOD *X509V3_EXT_get_nid(int nid) | |||
| 95 | tmp.ext_nid = nid; | 97 | tmp.ext_nid = nid; |
| 96 | ret = (X509V3_EXT_METHOD **) OBJ_bsearch((char *)&t, | 98 | ret = (X509V3_EXT_METHOD **) OBJ_bsearch((char *)&t, |
| 97 | (char *)standard_exts, STANDARD_EXTENSION_COUNT, | 99 | (char *)standard_exts, STANDARD_EXTENSION_COUNT, |
| 98 | sizeof(X509V3_EXT_METHOD *), (int (*)())ext_cmp); | 100 | sizeof(X509V3_EXT_METHOD *), (int (*)(const void *, const void *))ext_cmp); |
| 99 | if(ret) return *ret; | 101 | if(ret) return *ret; |
| 100 | if(!ext_list) return NULL; | 102 | if(!ext_list) return NULL; |
| 101 | idx = sk_find(ext_list, (char *)&tmp); | 103 | idx = sk_X509V3_EXT_METHOD_find(ext_list, &tmp); |
| 102 | if(idx == -1) return NULL; | 104 | if(idx == -1) return NULL; |
| 103 | return (X509V3_EXT_METHOD *)sk_value(ext_list, idx); | 105 | return sk_X509V3_EXT_METHOD_value(ext_list, idx); |
| 104 | } | 106 | } |
| 105 | 107 | ||
| 106 | X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext) | 108 | X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext) |
| @@ -125,7 +127,7 @@ int X509V3_EXT_add_alias(int nid_to, int nid_from) | |||
| 125 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,X509V3_R_EXTENSION_NOT_FOUND); | 127 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,X509V3_R_EXTENSION_NOT_FOUND); |
| 126 | return 0; | 128 | return 0; |
| 127 | } | 129 | } |
| 128 | if(!(tmpext = (X509V3_EXT_METHOD *)Malloc(sizeof(X509V3_EXT_METHOD)))) { | 130 | if(!(tmpext = (X509V3_EXT_METHOD *)OPENSSL_malloc(sizeof(X509V3_EXT_METHOD)))) { |
| 129 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,ERR_R_MALLOC_FAILURE); | 131 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,ERR_R_MALLOC_FAILURE); |
| 130 | return 0; | 132 | return 0; |
| 131 | } | 133 | } |
| @@ -137,13 +139,13 @@ int X509V3_EXT_add_alias(int nid_to, int nid_from) | |||
| 137 | 139 | ||
| 138 | void X509V3_EXT_cleanup(void) | 140 | void X509V3_EXT_cleanup(void) |
| 139 | { | 141 | { |
| 140 | sk_pop_free(ext_list, ext_list_free); | 142 | sk_X509V3_EXT_METHOD_pop_free(ext_list, ext_list_free); |
| 141 | ext_list = NULL; | 143 | ext_list = NULL; |
| 142 | } | 144 | } |
| 143 | 145 | ||
| 144 | static void ext_list_free(X509V3_EXT_METHOD *ext) | 146 | static void ext_list_free(X509V3_EXT_METHOD *ext) |
| 145 | { | 147 | { |
| 146 | if(ext->ext_flags & X509V3_EXT_DYNAMIC) Free(ext); | 148 | if(ext->ext_flags & X509V3_EXT_DYNAMIC) OPENSSL_free(ext); |
| 147 | } | 149 | } |
| 148 | 150 | ||
| 149 | /* Legacy function: we don't need to add standard extensions | 151 | /* Legacy function: we don't need to add standard extensions |
| @@ -213,9 +215,11 @@ void *X509V3_get_d2i(STACK_OF(X509_EXTENSION) *x, int nid, int *crit, int *idx) | |||
| 213 | if(crit) *crit = found_ex->critical; | 215 | if(crit) *crit = found_ex->critical; |
| 214 | return X509V3_EXT_d2i(found_ex); | 216 | return X509V3_EXT_d2i(found_ex); |
| 215 | } | 217 | } |
| 216 | 218 | ||
| 217 | /* Extension not found */ | 219 | /* Extension not found */ |
| 218 | if(idx) *idx = -1; | 220 | if(idx) *idx = -1; |
| 219 | if(crit) *crit = -1; | 221 | if(crit) *crit = -1; |
| 220 | return NULL; | 222 | return NULL; |
| 221 | } | 223 | } |
| 224 | |||
| 225 | IMPLEMENT_STACK_OF(X509V3_EXT_METHOD) | ||
diff --git a/src/lib/libcrypto/x509v3/v3_pku.c b/src/lib/libcrypto/x509v3/v3_pku.c index 30a62c6090..47f9e8f123 100644 --- a/src/lib/libcrypto/x509v3/v3_pku.c +++ b/src/lib/libcrypto/x509v3/v3_pku.c | |||
| @@ -121,7 +121,7 @@ void PKEY_USAGE_PERIOD_free(PKEY_USAGE_PERIOD *a) | |||
| 121 | if (a == NULL) return; | 121 | if (a == NULL) return; |
| 122 | M_ASN1_GENERALIZEDTIME_free(a->notBefore); | 122 | M_ASN1_GENERALIZEDTIME_free(a->notBefore); |
| 123 | M_ASN1_GENERALIZEDTIME_free(a->notAfter); | 123 | M_ASN1_GENERALIZEDTIME_free(a->notAfter); |
| 124 | Free (a); | 124 | OPENSSL_free (a); |
| 125 | } | 125 | } |
| 126 | 126 | ||
| 127 | static int i2r_PKEY_USAGE_PERIOD(X509V3_EXT_METHOD *method, | 127 | static int i2r_PKEY_USAGE_PERIOD(X509V3_EXT_METHOD *method, |
diff --git a/src/lib/libcrypto/x509v3/v3_prn.c b/src/lib/libcrypto/x509v3/v3_prn.c index bee624c6be..dbc4fb1f16 100644 --- a/src/lib/libcrypto/x509v3/v3_prn.c +++ b/src/lib/libcrypto/x509v3/v3_prn.c | |||
| @@ -133,7 +133,7 @@ int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, int flag, int indent) | |||
| 133 | 133 | ||
| 134 | err: | 134 | err: |
| 135 | sk_CONF_VALUE_pop_free(nval, X509V3_conf_free); | 135 | sk_CONF_VALUE_pop_free(nval, X509V3_conf_free); |
| 136 | if(value) Free(value); | 136 | if(value) OPENSSL_free(value); |
| 137 | method->ext_free(ext_str); | 137 | method->ext_free(ext_str); |
| 138 | return ok; | 138 | return ok; |
| 139 | } | 139 | } |
diff --git a/src/lib/libcrypto/x509v3/v3_purp.c b/src/lib/libcrypto/x509v3/v3_purp.c index 5594a1d64f..867699b26f 100644 --- a/src/lib/libcrypto/x509v3/v3_purp.c +++ b/src/lib/libcrypto/x509v3/v3_purp.c | |||
| @@ -59,21 +59,24 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include "cryptlib.h" | 60 | #include "cryptlib.h" |
| 61 | #include <openssl/x509v3.h> | 61 | #include <openssl/x509v3.h> |
| 62 | #include <openssl/x509_vfy.h> | ||
| 62 | 63 | ||
| 63 | 64 | ||
| 64 | static void x509v3_cache_extensions(X509 *x); | 65 | static void x509v3_cache_extensions(X509 *x); |
| 65 | 66 | ||
| 66 | static int ca_check(X509 *x); | 67 | static int ca_check(const X509 *x); |
| 67 | static int check_purpose_ssl_client(X509_PURPOSE *xp, X509 *x, int ca); | 68 | static int check_ssl_ca(const X509 *x); |
| 68 | static int check_purpose_ssl_server(X509_PURPOSE *xp, X509 *x, int ca); | 69 | static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x, int ca); |
| 69 | static int check_purpose_ns_ssl_server(X509_PURPOSE *xp, X509 *x, int ca); | 70 | static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca); |
| 70 | static int purpose_smime(X509 *x, int ca); | 71 | static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca); |
| 71 | static int check_purpose_smime_sign(X509_PURPOSE *xp, X509 *x, int ca); | 72 | static int purpose_smime(const X509 *x, int ca); |
| 72 | static int check_purpose_smime_encrypt(X509_PURPOSE *xp, X509 *x, int ca); | 73 | static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x, int ca); |
| 73 | static int check_purpose_crl_sign(X509_PURPOSE *xp, X509 *x, int ca); | 74 | static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x, int ca); |
| 74 | static int no_check(X509_PURPOSE *xp, X509 *x, int ca); | 75 | static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x, int ca); |
| 75 | 76 | static int no_check(const X509_PURPOSE *xp, const X509 *x, int ca); | |
| 76 | static int xp_cmp(X509_PURPOSE **a, X509_PURPOSE **b); | 77 | |
| 78 | static int xp_cmp(const X509_PURPOSE * const *a, | ||
| 79 | const X509_PURPOSE * const *b); | ||
| 77 | static void xptable_free(X509_PURPOSE *p); | 80 | static void xptable_free(X509_PURPOSE *p); |
| 78 | 81 | ||
| 79 | static X509_PURPOSE xstandard[] = { | 82 | static X509_PURPOSE xstandard[] = { |
| @@ -92,15 +95,19 @@ IMPLEMENT_STACK_OF(X509_PURPOSE) | |||
| 92 | 95 | ||
| 93 | static STACK_OF(X509_PURPOSE) *xptable = NULL; | 96 | static STACK_OF(X509_PURPOSE) *xptable = NULL; |
| 94 | 97 | ||
| 95 | static int xp_cmp(X509_PURPOSE **a, X509_PURPOSE **b) | 98 | static int xp_cmp(const X509_PURPOSE * const *a, |
| 99 | const X509_PURPOSE * const *b) | ||
| 96 | { | 100 | { |
| 97 | return (*a)->purpose - (*b)->purpose; | 101 | return (*a)->purpose - (*b)->purpose; |
| 98 | } | 102 | } |
| 99 | 103 | ||
| 104 | /* As much as I'd like to make X509_check_purpose use a "const" X509* | ||
| 105 | * I really can't because it does recalculate hashes and do other non-const | ||
| 106 | * things. */ | ||
| 100 | int X509_check_purpose(X509 *x, int id, int ca) | 107 | int X509_check_purpose(X509 *x, int id, int ca) |
| 101 | { | 108 | { |
| 102 | int idx; | 109 | int idx; |
| 103 | X509_PURPOSE *pt; | 110 | const X509_PURPOSE *pt; |
| 104 | if(!(x->ex_flags & EXFLAG_SET)) { | 111 | if(!(x->ex_flags & EXFLAG_SET)) { |
| 105 | CRYPTO_w_lock(CRYPTO_LOCK_X509); | 112 | CRYPTO_w_lock(CRYPTO_LOCK_X509); |
| 106 | x509v3_cache_extensions(x); | 113 | x509v3_cache_extensions(x); |
| @@ -152,7 +159,7 @@ int X509_PURPOSE_get_by_id(int purpose) | |||
| 152 | } | 159 | } |
| 153 | 160 | ||
| 154 | int X509_PURPOSE_add(int id, int trust, int flags, | 161 | int X509_PURPOSE_add(int id, int trust, int flags, |
| 155 | int (*ck)(X509_PURPOSE *, X509 *, int), | 162 | int (*ck)(const X509_PURPOSE *, const X509 *, int), |
| 156 | char *name, char *sname, void *arg) | 163 | char *name, char *sname, void *arg) |
| 157 | { | 164 | { |
| 158 | int idx; | 165 | int idx; |
| @@ -165,17 +172,17 @@ int X509_PURPOSE_add(int id, int trust, int flags, | |||
| 165 | idx = X509_PURPOSE_get_by_id(id); | 172 | idx = X509_PURPOSE_get_by_id(id); |
| 166 | /* Need a new entry */ | 173 | /* Need a new entry */ |
| 167 | if(idx == -1) { | 174 | if(idx == -1) { |
| 168 | if(!(ptmp = Malloc(sizeof(X509_PURPOSE)))) { | 175 | if(!(ptmp = OPENSSL_malloc(sizeof(X509_PURPOSE)))) { |
| 169 | X509V3err(X509V3_F_X509_PURPOSE_ADD,ERR_R_MALLOC_FAILURE); | 176 | X509V3err(X509V3_F_X509_PURPOSE_ADD,ERR_R_MALLOC_FAILURE); |
| 170 | return 0; | 177 | return 0; |
| 171 | } | 178 | } |
| 172 | ptmp->flags = X509_PURPOSE_DYNAMIC; | 179 | ptmp->flags = X509_PURPOSE_DYNAMIC; |
| 173 | } else ptmp = X509_PURPOSE_get0(idx); | 180 | } else ptmp = X509_PURPOSE_get0(idx); |
| 174 | 181 | ||
| 175 | /* Free existing name if dynamic */ | 182 | /* OPENSSL_free existing name if dynamic */ |
| 176 | if(ptmp->flags & X509_PURPOSE_DYNAMIC_NAME) { | 183 | if(ptmp->flags & X509_PURPOSE_DYNAMIC_NAME) { |
| 177 | Free(ptmp->name); | 184 | OPENSSL_free(ptmp->name); |
| 178 | Free(ptmp->sname); | 185 | OPENSSL_free(ptmp->sname); |
| 179 | } | 186 | } |
| 180 | /* dup supplied name */ | 187 | /* dup supplied name */ |
| 181 | ptmp->name = BUF_strdup(name); | 188 | ptmp->name = BUF_strdup(name); |
| @@ -214,10 +221,10 @@ static void xptable_free(X509_PURPOSE *p) | |||
| 214 | if (p->flags & X509_PURPOSE_DYNAMIC) | 221 | if (p->flags & X509_PURPOSE_DYNAMIC) |
| 215 | { | 222 | { |
| 216 | if (p->flags & X509_PURPOSE_DYNAMIC_NAME) { | 223 | if (p->flags & X509_PURPOSE_DYNAMIC_NAME) { |
| 217 | Free(p->name); | 224 | OPENSSL_free(p->name); |
| 218 | Free(p->sname); | 225 | OPENSSL_free(p->sname); |
| 219 | } | 226 | } |
| 220 | Free(p); | 227 | OPENSSL_free(p); |
| 221 | } | 228 | } |
| 222 | } | 229 | } |
| 223 | 230 | ||
| @@ -249,16 +256,18 @@ int X509_PURPOSE_get_trust(X509_PURPOSE *xp) | |||
| 249 | return xp->trust; | 256 | return xp->trust; |
| 250 | } | 257 | } |
| 251 | 258 | ||
| 252 | #ifndef NO_SHA | ||
| 253 | static void x509v3_cache_extensions(X509 *x) | 259 | static void x509v3_cache_extensions(X509 *x) |
| 254 | { | 260 | { |
| 255 | BASIC_CONSTRAINTS *bs; | 261 | BASIC_CONSTRAINTS *bs; |
| 256 | ASN1_BIT_STRING *usage; | 262 | ASN1_BIT_STRING *usage; |
| 257 | ASN1_BIT_STRING *ns; | 263 | ASN1_BIT_STRING *ns; |
| 258 | STACK_OF(ASN1_OBJECT) *extusage; | 264 | STACK_OF(ASN1_OBJECT) *extusage; |
| 265 | |||
| 259 | int i; | 266 | int i; |
| 260 | if(x->ex_flags & EXFLAG_SET) return; | 267 | if(x->ex_flags & EXFLAG_SET) return; |
| 268 | #ifndef NO_SHA | ||
| 261 | X509_digest(x, EVP_sha1(), x->sha1_hash, NULL); | 269 | X509_digest(x, EVP_sha1(), x->sha1_hash, NULL); |
| 270 | #endif | ||
| 262 | /* Does subject name match issuer ? */ | 271 | /* Does subject name match issuer ? */ |
| 263 | if(!X509_NAME_cmp(X509_get_subject_name(x), X509_get_issuer_name(x))) | 272 | if(!X509_NAME_cmp(X509_get_subject_name(x), X509_get_issuer_name(x))) |
| 264 | x->ex_flags |= EXFLAG_SS; | 273 | x->ex_flags |= EXFLAG_SS; |
| @@ -322,9 +331,10 @@ static void x509v3_cache_extensions(X509 *x) | |||
| 322 | x->ex_flags |= EXFLAG_NSCERT; | 331 | x->ex_flags |= EXFLAG_NSCERT; |
| 323 | ASN1_BIT_STRING_free(ns); | 332 | ASN1_BIT_STRING_free(ns); |
| 324 | } | 333 | } |
| 334 | x->skid =X509_get_ext_d2i(x, NID_subject_key_identifier, NULL, NULL); | ||
| 335 | x->akid =X509_get_ext_d2i(x, NID_authority_key_identifier, NULL, NULL); | ||
| 325 | x->ex_flags |= EXFLAG_SET; | 336 | x->ex_flags |= EXFLAG_SET; |
| 326 | } | 337 | } |
| 327 | #endif | ||
| 328 | 338 | ||
| 329 | /* CA checks common to all purposes | 339 | /* CA checks common to all purposes |
| 330 | * return codes: | 340 | * return codes: |
| @@ -342,7 +352,7 @@ static void x509v3_cache_extensions(X509 *x) | |||
| 342 | #define ns_reject(x, usage) \ | 352 | #define ns_reject(x, usage) \ |
| 343 | (((x)->ex_flags & EXFLAG_NSCERT) && !((x)->ex_nscert & (usage))) | 353 | (((x)->ex_flags & EXFLAG_NSCERT) && !((x)->ex_nscert & (usage))) |
| 344 | 354 | ||
| 345 | static int ca_check(X509 *x) | 355 | static int ca_check(const X509 *x) |
| 346 | { | 356 | { |
| 347 | /* keyUsage if present should allow cert signing */ | 357 | /* keyUsage if present should allow cert signing */ |
| 348 | if(ku_reject(x, KU_KEY_CERT_SIGN)) return 0; | 358 | if(ku_reject(x, KU_KEY_CERT_SIGN)) return 0; |
| @@ -356,22 +366,26 @@ static int ca_check(X509 *x) | |||
| 356 | } | 366 | } |
| 357 | } | 367 | } |
| 358 | 368 | ||
| 369 | /* Check SSL CA: common checks for SSL client and server */ | ||
| 370 | static int check_ssl_ca(const X509 *x) | ||
| 371 | { | ||
| 372 | int ca_ret; | ||
| 373 | ca_ret = ca_check(x); | ||
| 374 | if(!ca_ret) return 0; | ||
| 375 | /* check nsCertType if present */ | ||
| 376 | if(x->ex_flags & EXFLAG_NSCERT) { | ||
| 377 | if(x->ex_nscert & NS_SSL_CA) return ca_ret; | ||
| 378 | return 0; | ||
| 379 | } | ||
| 380 | if(ca_ret != 2) return ca_ret; | ||
| 381 | else return 0; | ||
| 382 | } | ||
| 383 | |||
| 359 | 384 | ||
| 360 | static int check_purpose_ssl_client(X509_PURPOSE *xp, X509 *x, int ca) | 385 | static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x, int ca) |
| 361 | { | 386 | { |
| 362 | if(xku_reject(x,XKU_SSL_CLIENT)) return 0; | 387 | if(xku_reject(x,XKU_SSL_CLIENT)) return 0; |
| 363 | if(ca) { | 388 | if(ca) return check_ssl_ca(x); |
| 364 | int ca_ret; | ||
| 365 | ca_ret = ca_check(x); | ||
| 366 | if(!ca_ret) return 0; | ||
| 367 | /* check nsCertType if present */ | ||
| 368 | if(x->ex_flags & EXFLAG_NSCERT) { | ||
| 369 | if(x->ex_nscert & NS_SSL_CA) return ca_ret; | ||
| 370 | return 0; | ||
| 371 | } | ||
| 372 | if(ca_ret != 2) return ca_ret; | ||
| 373 | else return 0; | ||
| 374 | } | ||
| 375 | /* We need to do digital signatures with it */ | 389 | /* We need to do digital signatures with it */ |
| 376 | if(ku_reject(x,KU_DIGITAL_SIGNATURE)) return 0; | 390 | if(ku_reject(x,KU_DIGITAL_SIGNATURE)) return 0; |
| 377 | /* nsCertType if present should allow SSL client use */ | 391 | /* nsCertType if present should allow SSL client use */ |
| @@ -379,11 +393,10 @@ static int check_purpose_ssl_client(X509_PURPOSE *xp, X509 *x, int ca) | |||
| 379 | return 1; | 393 | return 1; |
| 380 | } | 394 | } |
| 381 | 395 | ||
| 382 | static int check_purpose_ssl_server(X509_PURPOSE *xp, X509 *x, int ca) | 396 | static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca) |
| 383 | { | 397 | { |
| 384 | if(xku_reject(x,XKU_SSL_SERVER|XKU_SGC)) return 0; | 398 | if(xku_reject(x,XKU_SSL_SERVER|XKU_SGC)) return 0; |
| 385 | /* Otherwise same as SSL client for a CA */ | 399 | if(ca) return check_ssl_ca(x); |
| 386 | if(ca) return check_purpose_ssl_client(xp, x, 1); | ||
| 387 | 400 | ||
| 388 | if(ns_reject(x, NS_SSL_SERVER)) return 0; | 401 | if(ns_reject(x, NS_SSL_SERVER)) return 0; |
| 389 | /* Now as for keyUsage: we'll at least need to sign OR encipher */ | 402 | /* Now as for keyUsage: we'll at least need to sign OR encipher */ |
| @@ -393,7 +406,7 @@ static int check_purpose_ssl_server(X509_PURPOSE *xp, X509 *x, int ca) | |||
| 393 | 406 | ||
| 394 | } | 407 | } |
| 395 | 408 | ||
| 396 | static int check_purpose_ns_ssl_server(X509_PURPOSE *xp, X509 *x, int ca) | 409 | static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca) |
| 397 | { | 410 | { |
| 398 | int ret; | 411 | int ret; |
| 399 | ret = check_purpose_ssl_server(xp, x, ca); | 412 | ret = check_purpose_ssl_server(xp, x, ca); |
| @@ -404,7 +417,7 @@ static int check_purpose_ns_ssl_server(X509_PURPOSE *xp, X509 *x, int ca) | |||
| 404 | } | 417 | } |
| 405 | 418 | ||
| 406 | /* common S/MIME checks */ | 419 | /* common S/MIME checks */ |
| 407 | static int purpose_smime(X509 *x, int ca) | 420 | static int purpose_smime(const X509 *x, int ca) |
| 408 | { | 421 | { |
| 409 | if(xku_reject(x,XKU_SMIME)) return 0; | 422 | if(xku_reject(x,XKU_SMIME)) return 0; |
| 410 | if(ca) { | 423 | if(ca) { |
| @@ -428,7 +441,7 @@ static int purpose_smime(X509 *x, int ca) | |||
| 428 | return 1; | 441 | return 1; |
| 429 | } | 442 | } |
| 430 | 443 | ||
| 431 | static int check_purpose_smime_sign(X509_PURPOSE *xp, X509 *x, int ca) | 444 | static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x, int ca) |
| 432 | { | 445 | { |
| 433 | int ret; | 446 | int ret; |
| 434 | ret = purpose_smime(x, ca); | 447 | ret = purpose_smime(x, ca); |
| @@ -437,7 +450,7 @@ static int check_purpose_smime_sign(X509_PURPOSE *xp, X509 *x, int ca) | |||
| 437 | return ret; | 450 | return ret; |
| 438 | } | 451 | } |
| 439 | 452 | ||
| 440 | static int check_purpose_smime_encrypt(X509_PURPOSE *xp, X509 *x, int ca) | 453 | static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x, int ca) |
| 441 | { | 454 | { |
| 442 | int ret; | 455 | int ret; |
| 443 | ret = purpose_smime(x, ca); | 456 | ret = purpose_smime(x, ca); |
| @@ -446,7 +459,7 @@ static int check_purpose_smime_encrypt(X509_PURPOSE *xp, X509 *x, int ca) | |||
| 446 | return ret; | 459 | return ret; |
| 447 | } | 460 | } |
| 448 | 461 | ||
| 449 | static int check_purpose_crl_sign(X509_PURPOSE *xp, X509 *x, int ca) | 462 | static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x, int ca) |
| 450 | { | 463 | { |
| 451 | if(ca) { | 464 | if(ca) { |
| 452 | int ca_ret; | 465 | int ca_ret; |
| @@ -457,7 +470,64 @@ static int check_purpose_crl_sign(X509_PURPOSE *xp, X509 *x, int ca) | |||
| 457 | return 1; | 470 | return 1; |
| 458 | } | 471 | } |
| 459 | 472 | ||
| 460 | static int no_check(X509_PURPOSE *xp, X509 *x, int ca) | 473 | static int no_check(const X509_PURPOSE *xp, const X509 *x, int ca) |
| 461 | { | 474 | { |
| 462 | return 1; | 475 | return 1; |
| 463 | } | 476 | } |
| 477 | |||
| 478 | /* Various checks to see if one certificate issued the second. | ||
| 479 | * This can be used to prune a set of possible issuer certificates | ||
| 480 | * which have been looked up using some simple method such as by | ||
| 481 | * subject name. | ||
| 482 | * These are: | ||
| 483 | * 1. Check issuer_name(subject) == subject_name(issuer) | ||
| 484 | * 2. If akid(subject) exists check it matches issuer | ||
| 485 | * 3. If key_usage(issuer) exists check it supports certificate signing | ||
| 486 | * returns 0 for OK, positive for reason for mismatch, reasons match | ||
| 487 | * codes for X509_verify_cert() | ||
| 488 | */ | ||
| 489 | |||
| 490 | int X509_check_issued(X509 *issuer, X509 *subject) | ||
| 491 | { | ||
| 492 | if(X509_NAME_cmp(X509_get_subject_name(issuer), | ||
| 493 | X509_get_issuer_name(subject))) | ||
| 494 | return X509_V_ERR_SUBJECT_ISSUER_MISMATCH; | ||
| 495 | x509v3_cache_extensions(issuer); | ||
| 496 | x509v3_cache_extensions(subject); | ||
| 497 | if(subject->akid) { | ||
| 498 | /* Check key ids (if present) */ | ||
| 499 | if(subject->akid->keyid && issuer->skid && | ||
| 500 | ASN1_OCTET_STRING_cmp(subject->akid->keyid, issuer->skid) ) | ||
| 501 | return X509_V_ERR_AKID_SKID_MISMATCH; | ||
| 502 | /* Check serial number */ | ||
| 503 | if(subject->akid->serial && | ||
| 504 | ASN1_INTEGER_cmp(X509_get_serialNumber(issuer), | ||
| 505 | subject->akid->serial)) | ||
| 506 | return X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH; | ||
| 507 | /* Check issuer name */ | ||
| 508 | if(subject->akid->issuer) { | ||
| 509 | /* Ugh, for some peculiar reason AKID includes | ||
| 510 | * SEQUENCE OF GeneralName. So look for a DirName. | ||
| 511 | * There may be more than one but we only take any | ||
| 512 | * notice of the first. | ||
| 513 | */ | ||
| 514 | STACK_OF(GENERAL_NAME) *gens; | ||
| 515 | GENERAL_NAME *gen; | ||
| 516 | X509_NAME *nm = NULL; | ||
| 517 | int i; | ||
| 518 | gens = subject->akid->issuer; | ||
| 519 | for(i = 0; i < sk_GENERAL_NAME_num(gens); i++) { | ||
| 520 | gen = sk_GENERAL_NAME_value(gens, i); | ||
| 521 | if(gen->type == GEN_DIRNAME) { | ||
| 522 | nm = gen->d.dirn; | ||
| 523 | break; | ||
| 524 | } | ||
| 525 | } | ||
| 526 | if(nm && X509_NAME_cmp(nm, X509_get_issuer_name(issuer))) | ||
| 527 | return X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH; | ||
| 528 | } | ||
| 529 | } | ||
| 530 | if(ku_reject(issuer, KU_KEY_CERT_SIGN)) return X509_V_ERR_KEYUSAGE_NO_CERTSIGN; | ||
| 531 | return X509_V_OK; | ||
| 532 | } | ||
| 533 | |||
diff --git a/src/lib/libcrypto/x509v3/v3_sxnet.c b/src/lib/libcrypto/x509v3/v3_sxnet.c index 20ba8ac8d6..bfecacd336 100644 --- a/src/lib/libcrypto/x509v3/v3_sxnet.c +++ b/src/lib/libcrypto/x509v3/v3_sxnet.c | |||
| @@ -132,7 +132,7 @@ void SXNET_free(SXNET *a) | |||
| 132 | if (a == NULL) return; | 132 | if (a == NULL) return; |
| 133 | M_ASN1_INTEGER_free(a->version); | 133 | M_ASN1_INTEGER_free(a->version); |
| 134 | sk_SXNETID_pop_free(a->ids, SXNETID_free); | 134 | sk_SXNETID_pop_free(a->ids, SXNETID_free); |
| 135 | Free (a); | 135 | OPENSSL_free (a); |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | int i2d_SXNETID(SXNETID *a, unsigned char **pp) | 138 | int i2d_SXNETID(SXNETID *a, unsigned char **pp) |
| @@ -176,7 +176,7 @@ void SXNETID_free(SXNETID *a) | |||
| 176 | if (a == NULL) return; | 176 | if (a == NULL) return; |
| 177 | M_ASN1_INTEGER_free(a->zone); | 177 | M_ASN1_INTEGER_free(a->zone); |
| 178 | M_ASN1_OCTET_STRING_free(a->user); | 178 | M_ASN1_OCTET_STRING_free(a->user); |
| 179 | Free (a); | 179 | OPENSSL_free (a); |
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, | 182 | static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, |
| @@ -192,7 +192,7 @@ static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, | |||
| 192 | id = sk_SXNETID_value(sx->ids, i); | 192 | id = sk_SXNETID_value(sx->ids, i); |
| 193 | tmp = i2s_ASN1_INTEGER(NULL, id->zone); | 193 | tmp = i2s_ASN1_INTEGER(NULL, id->zone); |
| 194 | BIO_printf(out, "\n%*sZone: %s, User: ", indent, "", tmp); | 194 | BIO_printf(out, "\n%*sZone: %s, User: ", indent, "", tmp); |
| 195 | Free(tmp); | 195 | OPENSSL_free(tmp); |
| 196 | M_ASN1_OCTET_STRING_print(out, id->user); | 196 | M_ASN1_OCTET_STRING_print(out, id->user); |
| 197 | } | 197 | } |
| 198 | return 1; | 198 | return 1; |
diff --git a/src/lib/libcrypto/x509v3/v3_utl.c b/src/lib/libcrypto/x509v3/v3_utl.c index 4c2c4a9483..619f161b58 100644 --- a/src/lib/libcrypto/x509v3/v3_utl.c +++ b/src/lib/libcrypto/x509v3/v3_utl.c | |||
| @@ -65,6 +65,10 @@ | |||
| 65 | #include <openssl/x509v3.h> | 65 | #include <openssl/x509v3.h> |
| 66 | 66 | ||
| 67 | static char *strip_spaces(char *name); | 67 | static char *strip_spaces(char *name); |
| 68 | static int sk_strcmp(const char * const *a, const char * const *b); | ||
| 69 | static STACK *get_email(X509_NAME *name, STACK_OF(GENERAL_NAME) *gens); | ||
| 70 | static void str_free(void *str); | ||
| 71 | static int append_ia5(STACK **sk, ASN1_IA5STRING *email); | ||
| 68 | 72 | ||
| 69 | /* Add a CONF_VALUE name value pair to stack */ | 73 | /* Add a CONF_VALUE name value pair to stack */ |
| 70 | 74 | ||
| @@ -75,8 +79,8 @@ int X509V3_add_value(const char *name, const char *value, | |||
| 75 | char *tname = NULL, *tvalue = NULL; | 79 | char *tname = NULL, *tvalue = NULL; |
| 76 | if(name && !(tname = BUF_strdup(name))) goto err; | 80 | if(name && !(tname = BUF_strdup(name))) goto err; |
| 77 | if(value && !(tvalue = BUF_strdup(value))) goto err;; | 81 | if(value && !(tvalue = BUF_strdup(value))) goto err;; |
| 78 | if(!(vtmp = (CONF_VALUE *)Malloc(sizeof(CONF_VALUE)))) goto err; | 82 | if(!(vtmp = (CONF_VALUE *)OPENSSL_malloc(sizeof(CONF_VALUE)))) goto err; |
| 79 | if(!*extlist && !(*extlist = sk_CONF_VALUE_new(NULL))) goto err; | 83 | if(!*extlist && !(*extlist = sk_CONF_VALUE_new_null())) goto err; |
| 80 | vtmp->section = NULL; | 84 | vtmp->section = NULL; |
| 81 | vtmp->name = tname; | 85 | vtmp->name = tname; |
| 82 | vtmp->value = tvalue; | 86 | vtmp->value = tvalue; |
| @@ -84,9 +88,9 @@ int X509V3_add_value(const char *name, const char *value, | |||
| 84 | return 1; | 88 | return 1; |
| 85 | err: | 89 | err: |
| 86 | X509V3err(X509V3_F_X509V3_ADD_VALUE,ERR_R_MALLOC_FAILURE); | 90 | X509V3err(X509V3_F_X509V3_ADD_VALUE,ERR_R_MALLOC_FAILURE); |
| 87 | if(vtmp) Free(vtmp); | 91 | if(vtmp) OPENSSL_free(vtmp); |
| 88 | if(tname) Free(tname); | 92 | if(tname) OPENSSL_free(tname); |
| 89 | if(tvalue) Free(tvalue); | 93 | if(tvalue) OPENSSL_free(tvalue); |
| 90 | return 0; | 94 | return 0; |
| 91 | } | 95 | } |
| 92 | 96 | ||
| @@ -101,10 +105,10 @@ int X509V3_add_value_uchar(const char *name, const unsigned char *value, | |||
| 101 | void X509V3_conf_free(CONF_VALUE *conf) | 105 | void X509V3_conf_free(CONF_VALUE *conf) |
| 102 | { | 106 | { |
| 103 | if(!conf) return; | 107 | if(!conf) return; |
| 104 | if(conf->name) Free(conf->name); | 108 | if(conf->name) OPENSSL_free(conf->name); |
| 105 | if(conf->value) Free(conf->value); | 109 | if(conf->value) OPENSSL_free(conf->value); |
| 106 | if(conf->section) Free(conf->section); | 110 | if(conf->section) OPENSSL_free(conf->section); |
| 107 | Free(conf); | 111 | OPENSSL_free(conf); |
| 108 | } | 112 | } |
| 109 | 113 | ||
| 110 | int X509V3_add_value_bool(const char *name, int asn1_bool, | 114 | int X509V3_add_value_bool(const char *name, int asn1_bool, |
| @@ -176,7 +180,7 @@ int X509V3_add_value_int(const char *name, ASN1_INTEGER *aint, | |||
| 176 | if(!aint) return 1; | 180 | if(!aint) return 1; |
| 177 | if(!(strtmp = i2s_ASN1_INTEGER(NULL, aint))) return 0; | 181 | if(!(strtmp = i2s_ASN1_INTEGER(NULL, aint))) return 0; |
| 178 | ret = X509V3_add_value(name, strtmp, extlist); | 182 | ret = X509V3_add_value(name, strtmp, extlist); |
| 179 | Free(strtmp); | 183 | OPENSSL_free(strtmp); |
| 180 | return ret; | 184 | return ret; |
| 181 | } | 185 | } |
| 182 | 186 | ||
| @@ -298,11 +302,11 @@ STACK_OF(CONF_VALUE) *X509V3_parse_list(char *line) | |||
| 298 | } | 302 | } |
| 299 | X509V3_add_value(ntmp, NULL, &values); | 303 | X509V3_add_value(ntmp, NULL, &values); |
| 300 | } | 304 | } |
| 301 | Free(linebuf); | 305 | OPENSSL_free(linebuf); |
| 302 | return values; | 306 | return values; |
| 303 | 307 | ||
| 304 | err: | 308 | err: |
| 305 | Free(linebuf); | 309 | OPENSSL_free(linebuf); |
| 306 | sk_CONF_VALUE_pop_free(values, X509V3_conf_free); | 310 | sk_CONF_VALUE_pop_free(values, X509V3_conf_free); |
| 307 | return NULL; | 311 | return NULL; |
| 308 | 312 | ||
| @@ -325,8 +329,9 @@ static char *strip_spaces(char *name) | |||
| 325 | 329 | ||
| 326 | /* hex string utilities */ | 330 | /* hex string utilities */ |
| 327 | 331 | ||
| 328 | /* Given a buffer of length 'len' return a Malloc'ed string with its | 332 | /* Given a buffer of length 'len' return a OPENSSL_malloc'ed string with its |
| 329 | * hex representation | 333 | * hex representation |
| 334 | * @@@ (Contents of buffer are always kept in ASCII, also on EBCDIC machines) | ||
| 330 | */ | 335 | */ |
| 331 | 336 | ||
| 332 | char *hex_to_string(unsigned char *buffer, long len) | 337 | char *hex_to_string(unsigned char *buffer, long len) |
| @@ -336,7 +341,7 @@ char *hex_to_string(unsigned char *buffer, long len) | |||
| 336 | int i; | 341 | int i; |
| 337 | static char hexdig[] = "0123456789ABCDEF"; | 342 | static char hexdig[] = "0123456789ABCDEF"; |
| 338 | if(!buffer || !len) return NULL; | 343 | if(!buffer || !len) return NULL; |
| 339 | if(!(tmp = Malloc(len * 3 + 1))) { | 344 | if(!(tmp = OPENSSL_malloc(len * 3 + 1))) { |
| 340 | X509V3err(X509V3_F_HEX_TO_STRING,ERR_R_MALLOC_FAILURE); | 345 | X509V3err(X509V3_F_HEX_TO_STRING,ERR_R_MALLOC_FAILURE); |
| 341 | return NULL; | 346 | return NULL; |
| 342 | } | 347 | } |
| @@ -347,6 +352,10 @@ char *hex_to_string(unsigned char *buffer, long len) | |||
| 347 | *q++ = ':'; | 352 | *q++ = ':'; |
| 348 | } | 353 | } |
| 349 | q[-1] = 0; | 354 | q[-1] = 0; |
| 355 | #ifdef CHARSET_EBCDIC | ||
| 356 | ebcdic2ascii(tmp, tmp, q - tmp - 1); | ||
| 357 | #endif | ||
| 358 | |||
| 350 | return tmp; | 359 | return tmp; |
| 351 | } | 360 | } |
| 352 | 361 | ||
| @@ -362,14 +371,20 @@ unsigned char *string_to_hex(char *str, long *len) | |||
| 362 | X509V3err(X509V3_F_STRING_TO_HEX,X509V3_R_INVALID_NULL_ARGUMENT); | 371 | X509V3err(X509V3_F_STRING_TO_HEX,X509V3_R_INVALID_NULL_ARGUMENT); |
| 363 | return NULL; | 372 | return NULL; |
| 364 | } | 373 | } |
| 365 | if(!(hexbuf = Malloc(strlen(str) >> 1))) goto err; | 374 | if(!(hexbuf = OPENSSL_malloc(strlen(str) >> 1))) goto err; |
| 366 | for(p = (unsigned char *)str, q = hexbuf; *p;) { | 375 | for(p = (unsigned char *)str, q = hexbuf; *p;) { |
| 367 | ch = *p++; | 376 | ch = *p++; |
| 377 | #ifdef CHARSET_EBCDIC | ||
| 378 | ch = os_toebcdic[ch]; | ||
| 379 | #endif | ||
| 368 | if(ch == ':') continue; | 380 | if(ch == ':') continue; |
| 369 | cl = *p++; | 381 | cl = *p++; |
| 382 | #ifdef CHARSET_EBCDIC | ||
| 383 | cl = os_toebcdic[cl]; | ||
| 384 | #endif | ||
| 370 | if(!cl) { | 385 | if(!cl) { |
| 371 | X509V3err(X509V3_F_STRING_TO_HEX,X509V3_R_ODD_NUMBER_OF_DIGITS); | 386 | X509V3err(X509V3_F_STRING_TO_HEX,X509V3_R_ODD_NUMBER_OF_DIGITS); |
| 372 | Free(hexbuf); | 387 | OPENSSL_free(hexbuf); |
| 373 | return NULL; | 388 | return NULL; |
| 374 | } | 389 | } |
| 375 | if(isupper(ch)) ch = tolower(ch); | 390 | if(isupper(ch)) ch = tolower(ch); |
| @@ -391,12 +406,12 @@ unsigned char *string_to_hex(char *str, long *len) | |||
| 391 | return hexbuf; | 406 | return hexbuf; |
| 392 | 407 | ||
| 393 | err: | 408 | err: |
| 394 | if(hexbuf) Free(hexbuf); | 409 | if(hexbuf) OPENSSL_free(hexbuf); |
| 395 | X509V3err(X509V3_F_STRING_TO_HEX,ERR_R_MALLOC_FAILURE); | 410 | X509V3err(X509V3_F_STRING_TO_HEX,ERR_R_MALLOC_FAILURE); |
| 396 | return NULL; | 411 | return NULL; |
| 397 | 412 | ||
| 398 | badhex: | 413 | badhex: |
| 399 | Free(hexbuf); | 414 | OPENSSL_free(hexbuf); |
| 400 | X509V3err(X509V3_F_STRING_TO_HEX,X509V3_R_ILLEGAL_HEX_DIGIT); | 415 | X509V3err(X509V3_F_STRING_TO_HEX,X509V3_R_ILLEGAL_HEX_DIGIT); |
| 401 | return NULL; | 416 | return NULL; |
| 402 | 417 | ||
| @@ -416,3 +431,86 @@ int name_cmp(const char *name, const char *cmp) | |||
| 416 | if(!c || (c=='.')) return 0; | 431 | if(!c || (c=='.')) return 0; |
| 417 | return 1; | 432 | return 1; |
| 418 | } | 433 | } |
| 434 | |||
| 435 | static int sk_strcmp(const char * const *a, const char * const *b) | ||
| 436 | { | ||
| 437 | return strcmp(*a, *b); | ||
| 438 | } | ||
| 439 | |||
| 440 | STACK *X509_get1_email(X509 *x) | ||
| 441 | { | ||
| 442 | STACK_OF(GENERAL_NAME) *gens; | ||
| 443 | STACK *ret; | ||
| 444 | gens = X509_get_ext_d2i(x, NID_subject_alt_name, NULL, NULL); | ||
| 445 | ret = get_email(X509_get_subject_name(x), gens); | ||
| 446 | sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free); | ||
| 447 | return ret; | ||
| 448 | } | ||
| 449 | |||
| 450 | STACK *X509_REQ_get1_email(X509_REQ *x) | ||
| 451 | { | ||
| 452 | STACK_OF(GENERAL_NAME) *gens; | ||
| 453 | STACK_OF(X509_EXTENSION) *exts; | ||
| 454 | STACK *ret; | ||
| 455 | exts = X509_REQ_get_extensions(x); | ||
| 456 | gens = X509V3_get_d2i(exts, NID_subject_alt_name, NULL, NULL); | ||
| 457 | ret = get_email(X509_REQ_get_subject_name(x), gens); | ||
| 458 | sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free); | ||
| 459 | sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free); | ||
| 460 | return ret; | ||
| 461 | } | ||
| 462 | |||
| 463 | |||
| 464 | static STACK *get_email(X509_NAME *name, STACK_OF(GENERAL_NAME) *gens) | ||
| 465 | { | ||
| 466 | STACK *ret = NULL; | ||
| 467 | X509_NAME_ENTRY *ne; | ||
| 468 | ASN1_IA5STRING *email; | ||
| 469 | GENERAL_NAME *gen; | ||
| 470 | int i; | ||
| 471 | /* Now add any email address(es) to STACK */ | ||
| 472 | i = -1; | ||
| 473 | /* First supplied X509_NAME */ | ||
| 474 | while((i = X509_NAME_get_index_by_NID(name, | ||
| 475 | NID_pkcs9_emailAddress, i)) > 0) { | ||
| 476 | ne = X509_NAME_get_entry(name, i); | ||
| 477 | email = X509_NAME_ENTRY_get_data(ne); | ||
| 478 | if(!append_ia5(&ret, email)) return NULL; | ||
| 479 | } | ||
| 480 | for(i = 0; i < sk_GENERAL_NAME_num(gens); i++) | ||
| 481 | { | ||
| 482 | gen = sk_GENERAL_NAME_value(gens, i); | ||
| 483 | if(gen->type != GEN_EMAIL) continue; | ||
| 484 | if(!append_ia5(&ret, gen->d.ia5)) return NULL; | ||
| 485 | } | ||
| 486 | return ret; | ||
| 487 | } | ||
| 488 | |||
| 489 | static void str_free(void *str) | ||
| 490 | { | ||
| 491 | OPENSSL_free(str); | ||
| 492 | } | ||
| 493 | |||
| 494 | static int append_ia5(STACK **sk, ASN1_IA5STRING *email) | ||
| 495 | { | ||
| 496 | char *emtmp; | ||
| 497 | /* First some sanity checks */ | ||
| 498 | if(email->type != V_ASN1_IA5STRING) return 1; | ||
| 499 | if(!email->data || !email->length) return 1; | ||
| 500 | if(!*sk) *sk = sk_new(sk_strcmp); | ||
| 501 | if(!*sk) return 0; | ||
| 502 | /* Don't add duplicates */ | ||
| 503 | if(sk_find(*sk, (char *)email->data) != -1) return 1; | ||
| 504 | emtmp = BUF_strdup((char *)email->data); | ||
| 505 | if(!emtmp || !sk_push(*sk, emtmp)) { | ||
| 506 | X509_email_free(*sk); | ||
| 507 | *sk = NULL; | ||
| 508 | return 0; | ||
| 509 | } | ||
| 510 | return 1; | ||
| 511 | } | ||
| 512 | |||
| 513 | void X509_email_free(STACK *sk) | ||
| 514 | { | ||
| 515 | sk_pop_free(sk, str_free); | ||
| 516 | } | ||
diff --git a/src/lib/libcrypto/x509v3/x509v3.h b/src/lib/libcrypto/x509v3/x509v3.h index 96ceb7c4fb..0453b12d63 100644 --- a/src/lib/libcrypto/x509v3/x509v3.h +++ b/src/lib/libcrypto/x509v3/x509v3.h | |||
| @@ -58,14 +58,14 @@ | |||
| 58 | #ifndef HEADER_X509V3_H | 58 | #ifndef HEADER_X509V3_H |
| 59 | #define HEADER_X509V3_H | 59 | #define HEADER_X509V3_H |
| 60 | 60 | ||
| 61 | #ifdef __cplusplus | ||
| 62 | extern "C" { | ||
| 63 | #endif | ||
| 64 | |||
| 65 | #include <openssl/bio.h> | 61 | #include <openssl/bio.h> |
| 66 | #include <openssl/x509.h> | 62 | #include <openssl/x509.h> |
| 67 | #include <openssl/conf.h> | 63 | #include <openssl/conf.h> |
| 68 | 64 | ||
| 65 | #ifdef __cplusplus | ||
| 66 | extern "C" { | ||
| 67 | #endif | ||
| 68 | |||
| 69 | /* Forward reference */ | 69 | /* Forward reference */ |
| 70 | struct v3_ext_method; | 70 | struct v3_ext_method; |
| 71 | struct v3_ext_ctx; | 71 | struct v3_ext_ctx; |
| @@ -131,6 +131,8 @@ void *db; | |||
| 131 | typedef struct v3_ext_method X509V3_EXT_METHOD; | 131 | typedef struct v3_ext_method X509V3_EXT_METHOD; |
| 132 | typedef struct v3_ext_ctx X509V3_CTX; | 132 | typedef struct v3_ext_ctx X509V3_CTX; |
| 133 | 133 | ||
| 134 | DECLARE_STACK_OF(X509V3_EXT_METHOD) | ||
| 135 | |||
| 134 | /* ext_flags values */ | 136 | /* ext_flags values */ |
| 135 | #define X509V3_EXT_DYNAMIC 0x1 | 137 | #define X509V3_EXT_DYNAMIC 0x1 |
| 136 | #define X509V3_EXT_CTX_DEP 0x2 | 138 | #define X509V3_EXT_CTX_DEP 0x2 |
| @@ -227,7 +229,7 @@ typedef struct SXNET_st { | |||
| 227 | 229 | ||
| 228 | typedef struct NOTICEREF_st { | 230 | typedef struct NOTICEREF_st { |
| 229 | ASN1_STRING *organization; | 231 | ASN1_STRING *organization; |
| 230 | STACK *noticenos; | 232 | STACK_OF(ASN1_INTEGER) *noticenos; |
| 231 | } NOTICEREF; | 233 | } NOTICEREF; |
| 232 | 234 | ||
| 233 | typedef struct USERNOTICE_st { | 235 | typedef struct USERNOTICE_st { |
| @@ -332,7 +334,8 @@ typedef struct x509_purpose_st { | |||
| 332 | int purpose; | 334 | int purpose; |
| 333 | int trust; /* Default trust ID */ | 335 | int trust; /* Default trust ID */ |
| 334 | int flags; | 336 | int flags; |
| 335 | int (*check_purpose)(struct x509_purpose_st *, X509 *, int); | 337 | int (*check_purpose)(const struct x509_purpose_st *, |
| 338 | const X509 *, int); | ||
| 336 | char *name; | 339 | char *name; |
| 337 | char *sname; | 340 | char *sname; |
| 338 | void *usr_data; | 341 | void *usr_data; |
| @@ -529,12 +532,13 @@ int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, int flag, int indent); | |||
| 529 | int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); | 532 | int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); |
| 530 | 533 | ||
| 531 | int X509_check_purpose(X509 *x, int id, int ca); | 534 | int X509_check_purpose(X509 *x, int id, int ca); |
| 535 | int X509_check_issued(X509 *issuer, X509 *subject); | ||
| 532 | int X509_PURPOSE_get_count(void); | 536 | int X509_PURPOSE_get_count(void); |
| 533 | X509_PURPOSE * X509_PURPOSE_get0(int idx); | 537 | X509_PURPOSE * X509_PURPOSE_get0(int idx); |
| 534 | int X509_PURPOSE_get_by_sname(char *sname); | 538 | int X509_PURPOSE_get_by_sname(char *sname); |
| 535 | int X509_PURPOSE_get_by_id(int id); | 539 | int X509_PURPOSE_get_by_id(int id); |
| 536 | int X509_PURPOSE_add(int id, int trust, int flags, | 540 | int X509_PURPOSE_add(int id, int trust, int flags, |
| 537 | int (*ck)(X509_PURPOSE *, X509 *, int), | 541 | int (*ck)(const X509_PURPOSE *, const X509 *, int), |
| 538 | char *name, char *sname, void *arg); | 542 | char *name, char *sname, void *arg); |
| 539 | char *X509_PURPOSE_get0_name(X509_PURPOSE *xp); | 543 | char *X509_PURPOSE_get0_name(X509_PURPOSE *xp); |
| 540 | char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp); | 544 | char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp); |
| @@ -542,6 +546,11 @@ int X509_PURPOSE_get_trust(X509_PURPOSE *xp); | |||
| 542 | void X509_PURPOSE_cleanup(void); | 546 | void X509_PURPOSE_cleanup(void); |
| 543 | int X509_PURPOSE_get_id(X509_PURPOSE *); | 547 | int X509_PURPOSE_get_id(X509_PURPOSE *); |
| 544 | 548 | ||
| 549 | STACK *X509_get1_email(X509 *x); | ||
| 550 | STACK *X509_REQ_get1_email(X509_REQ *x); | ||
| 551 | void X509_email_free(STACK *sk); | ||
| 552 | |||
| 553 | |||
| 545 | /* BEGIN ERROR CODES */ | 554 | /* BEGIN ERROR CODES */ |
| 546 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 555 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
| 547 | * made after this point may be overwritten when the script is next run. | 556 | * made after this point may be overwritten when the script is next run. |
