Fixed NULL pointer dereference in PKCS7_dataDecode reported by David Ramos in PR...
[openssl.git] / crypto / des / des_old.c
index 3cf9c9c8a26e162f48b120a31b86d5aae6009049..7c33ed7a93341cdaf261eb6ac70d163fa7fc37b8 100644 (file)
@@ -73,7 +73,6 @@
  */
 
 #define OPENSSL_DES_LIBDES_COMPATIBILITY
-#include <openssl/des_old.h>
 #include <openssl/des.h>
 #include <openssl/rand.h>
 
@@ -170,11 +169,13 @@ void _ossl_old_des_ede3_ofb64_encrypt(unsigned char *in, unsigned char *out,
                (DES_key_schedule *)ks3, ivec, num);
        }
 
+#if 0 /* broken code, preserved just in case anyone specifically looks for this */
 void _ossl_old_des_xwhite_in2out(_ossl_old_des_cblock (*des_key), _ossl_old_des_cblock (*in_white),
        _ossl_old_des_cblock (*out_white))
        {
        DES_xwhite_in2out(des_key, in_white, out_white);
        }
+#endif
 
 int _ossl_old_des_enc_read(int fd,char *buf,int len,des_key_schedule sched,
        _ossl_old_des_cblock *iv)