Follow on from CVE-2014-3571. This fixes the code that was the original source
[oweals/openssl.git] / apps / genrsa.c
index 7b0bcc20e1961067f3dac66801e72b6f76269982..fe00af9bd2d20bc07e57716b55f89869e665345e 100644 (file)
  */
 
 #include <openssl/opensslconf.h>
-/* Until the key-gen callbacks are modified to use newer prototypes, we allow
- * deprecated functions for openssl-internal code */
-#ifdef OPENSSL_NO_DEPRECATED
-#undef OPENSSL_NO_DEPRECATED
-#endif
 
 #ifndef OPENSSL_NO_RSA
 #include <stdio.h>
@@ -327,9 +322,6 @@ static int MS_CALLBACK genrsa_cb(int p, int n, BN_GENCB *cb)
        if (p == 3) c='\n';
        BIO_write(BN_GENCB_get_arg(cb),&c,1);
        (void)BIO_flush(BN_GENCB_get_arg(cb));
-#ifdef LINT
-       p=n;
-#endif
        return 1;
        }
 #else /* !OPENSSL_NO_RSA */