summaryrefslogtreecommitdiff
path: root/lib/libcrypto/rsa/rsa_pk1.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-04-23 22:26:27 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-04-23 22:26:27 +0000
commit0656705cdcdac379140020e096f659fb99e26d01 (patch)
treee37e7829ff096dcc87fe63d9144b30f1fe540970 /lib/libcrypto/rsa/rsa_pk1.c
parenta60624a3cabbe08415315714a52c176095dcdec0 (diff)
Unifdef -UPKCS1_CHECK and remove SSL_OP_PKCS1_CHECK_[12], this is leftover
``debug'' code from a 15+ years old bugfix and the SSL_OP_PKCS1_CHECK_* constants have had a value of zero since ages. No production code should use them. ok beck@
Diffstat (limited to 'lib/libcrypto/rsa/rsa_pk1.c')
-rw-r--r--lib/libcrypto/rsa/rsa_pk1.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libcrypto/rsa/rsa_pk1.c b/lib/libcrypto/rsa/rsa_pk1.c
index 8560755f1d1..9eabb4fc92e 100644
--- a/lib/libcrypto/rsa/rsa_pk1.c
+++ b/lib/libcrypto/rsa/rsa_pk1.c
@@ -190,9 +190,6 @@ int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,
RSAerr(RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2,RSA_R_BLOCK_TYPE_IS_NOT_02);
return(-1);
}
-#ifdef PKCS1_CHECK
- return(num-11);
-#endif
/* scan over padding data */
j=flen-1; /* one for type. */