summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authormiod <>2014-04-23 22:26:26 +0000
committermiod <>2014-04-23 22:26:26 +0000
commit160ce957d6c17790da2f6cdc276ca08ecb931030 (patch)
treefdc347c1b6ae5bb862c0b018453022fe0225f681 /src/lib/libc
parentb8e6d5efcf094f311e41a8f302f702930a20bdf8 (diff)
downloadopenbsd-160ce957d6c17790da2f6cdc276ca08ecb931030.tar.gz
openbsd-160ce957d6c17790da2f6cdc276ca08ecb931030.tar.bz2
openbsd-160ce957d6c17790da2f6cdc276ca08ecb931030.zip
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 '')
-rw-r--r--src/lib/libcrypto/rsa/rsa_pk1.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_pk1.c b/src/lib/libcrypto/rsa/rsa_pk1.c
index 8560755f1d..9eabb4fc92 100644
--- a/src/lib/libcrypto/rsa/rsa_pk1.c
+++ b/src/lib/libcrypto/rsa/rsa_pk1.c
@@ -190,9 +190,6 @@ int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,
190 RSAerr(RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2,RSA_R_BLOCK_TYPE_IS_NOT_02); 190 RSAerr(RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2,RSA_R_BLOCK_TYPE_IS_NOT_02);
191 return(-1); 191 return(-1);
192 } 192 }
193#ifdef PKCS1_CHECK
194 return(num-11);
195#endif
196 193
197 /* scan over padding data */ 194 /* scan over padding data */
198 j=flen-1; /* one for type. */ 195 j=flen-1; /* one for type. */