diff options
author | Ben Laurie <ben@openssl.org> | 1999-03-22 12:22:14 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-03-22 12:22:14 +0000 |
commit | b4cadc6e1343c01b06613053a90ed2ee85e65090 (patch) | |
tree | 5670424b0d897cd7f8161e321f0f514131265159 /crypto/x509 | |
parent | 0f423567a72b68b617ad5554e51095f1017a9d7b (diff) |
Fix security hole.
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/Makefile.ssl | 61 | ||||
-rw-r--r-- | crypto/x509/x509_vfy.c | 3 |
2 files changed, 40 insertions, 24 deletions
diff --git a/crypto/x509/Makefile.ssl b/crypto/x509/Makefile.ssl index 9f1a607630..4f61d6997b 100644 --- a/crypto/x509/Makefile.ssl +++ b/crypto/x509/Makefile.ssl @@ -105,7 +105,7 @@ by_dir.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h by_dir.o: ../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h by_dir.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h by_dir.o: ../../include/sha.h ../../include/stack.h ../cryptlib.h ../crypto.h -by_dir.o: x509.h x509_vfy.h +by_dir.o: ../opensslv.h x509.h x509_vfy.h by_file.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h by_file.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h by_file.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -115,7 +115,8 @@ by_file.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h by_file.o: ../../include/pem.h ../../include/pem2.h ../../include/pkcs7.h by_file.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h by_file.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -by_file.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +by_file.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h x509.h +by_file.o: x509_vfy.h v3_net.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h v3_net.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h v3_net.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -124,7 +125,8 @@ v3_net.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h v3_net.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h v3_net.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h v3_net.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -v3_net.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +v3_net.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h x509.h +v3_net.o: x509_vfy.h v3_x509.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h v3_x509.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h v3_x509.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -133,7 +135,8 @@ v3_x509.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h v3_x509.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h v3_x509.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h v3_x509.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -v3_x509.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +v3_x509.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h x509.h +v3_x509.o: x509_vfy.h x509_cmp.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_cmp.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_cmp.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -142,7 +145,8 @@ x509_cmp.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509_cmp.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509_cmp.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509_cmp.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509_cmp.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509_cmp.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h +x509_cmp.o: x509.h x509_vfy.h x509_d2.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_d2.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_d2.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -151,7 +155,8 @@ x509_d2.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509_d2.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509_d2.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509_d2.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509_d2.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509_d2.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h x509.h +x509_d2.o: x509_vfy.h x509_def.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_def.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_def.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -160,7 +165,8 @@ x509_def.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509_def.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509_def.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509_def.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509_def.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509_def.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h +x509_def.o: x509.h x509_vfy.h x509_err.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_err.o: ../../include/bn.h ../../include/cast.h ../../include/des.h x509_err.o: ../../include/dh.h ../../include/dsa.h ../../include/err.h @@ -168,8 +174,8 @@ x509_err.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h x509_err.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h x509_err.o: ../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h x509_err.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h -x509_err.o: ../../include/sha.h ../../include/stack.h ../crypto.h x509.h -x509_err.o: x509_vfy.h +x509_err.o: ../../include/sha.h ../../include/stack.h ../crypto.h ../opensslv.h +x509_err.o: x509.h x509_vfy.h x509_ext.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_ext.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_ext.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -178,7 +184,8 @@ x509_ext.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509_ext.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509_ext.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509_ext.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509_ext.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509_ext.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h +x509_ext.o: x509.h x509_vfy.h x509_lu.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_lu.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_lu.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -188,7 +195,7 @@ x509_lu.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h x509_lu.o: ../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h x509_lu.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h x509_lu.o: ../../include/sha.h ../../include/stack.h ../cryptlib.h ../crypto.h -x509_lu.o: x509.h x509_vfy.h +x509_lu.o: ../opensslv.h x509.h x509_vfy.h x509_obj.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_obj.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_obj.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -198,7 +205,7 @@ x509_obj.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h x509_obj.o: ../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h x509_obj.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h x509_obj.o: ../../include/sha.h ../../include/stack.h ../cryptlib.h ../crypto.h -x509_obj.o: x509.h x509_vfy.h +x509_obj.o: ../opensslv.h x509.h x509_vfy.h x509_r2x.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_r2x.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_r2x.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -207,7 +214,8 @@ x509_r2x.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509_r2x.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509_r2x.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509_r2x.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509_r2x.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509_r2x.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h +x509_r2x.o: x509.h x509_vfy.h x509_req.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_req.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_req.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -217,7 +225,7 @@ x509_req.o: ../../include/mdc2.h ../../include/objects.h ../../include/pem.h x509_req.o: ../../include/pem2.h ../../include/pkcs7.h ../../include/rc2.h x509_req.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h x509_req.o: ../../include/rsa.h ../../include/sha.h ../../include/stack.h -x509_req.o: ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509_req.o: ../cryptlib.h ../crypto.h ../opensslv.h x509.h x509_vfy.h x509_set.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_set.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_set.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -226,7 +234,8 @@ x509_set.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509_set.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509_set.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509_set.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509_set.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509_set.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h +x509_set.o: x509.h x509_vfy.h x509_txt.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_txt.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_txt.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -236,7 +245,7 @@ x509_txt.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h x509_txt.o: ../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h x509_txt.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h x509_txt.o: ../../include/sha.h ../../include/stack.h ../cryptlib.h ../crypto.h -x509_txt.o: x509.h x509_vfy.h +x509_txt.o: ../opensslv.h x509.h x509_vfy.h x509_v3.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_v3.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_v3.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -245,7 +254,8 @@ x509_v3.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509_v3.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509_v3.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509_v3.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509_v3.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509_v3.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h x509.h +x509_v3.o: x509_vfy.h x509_vfy.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509_vfy.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509_vfy.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -255,7 +265,7 @@ x509_vfy.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h x509_vfy.o: ../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h x509_vfy.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h x509_vfy.o: ../../include/sha.h ../../include/stack.h ../cryptlib.h ../crypto.h -x509_vfy.o: x509.h x509_vfy.h +x509_vfy.o: ../opensslv.h x509.h x509_vfy.h x509name.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509name.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509name.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -264,7 +274,8 @@ x509name.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509name.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509name.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509name.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509name.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509name.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h +x509name.o: x509.h x509_vfy.h x509pack.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509pack.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509pack.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -273,7 +284,8 @@ x509pack.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509pack.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509pack.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509pack.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509pack.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509pack.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h +x509pack.o: x509.h x509_vfy.h x509rset.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509rset.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509rset.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -282,7 +294,8 @@ x509rset.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509rset.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509rset.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509rset.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509rset.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509rset.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h +x509rset.o: x509.h x509_vfy.h x509type.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x509type.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x509type.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -291,7 +304,8 @@ x509type.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x509type.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x509type.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x509type.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x509type.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x509type.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h +x509type.o: x509.h x509_vfy.h x_all.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h x_all.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h x_all.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -300,4 +314,5 @@ x_all.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h x_all.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h x_all.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h x_all.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -x_all.o: ../../include/stack.h ../cryptlib.h ../crypto.h x509.h x509_vfy.h +x_all.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h x509.h +x_all.o: x509_vfy.h diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 969c016950..6bae1386d4 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -79,7 +79,8 @@ static int null_callback(); static int internal_verify(); #endif -char *X509_version="X.509 part of OpenSSL 0.9.2 31-Dec-1998"; +char *X509_version="X.509" OPENSSL_VERSION_PTEXT; + static STACK *x509_store_ctx_method=NULL; static int x509_store_ctx_num=0; #if 0 |