diff options
| author | miod <> | 2014-04-23 22:26:26 +0000 |
|---|---|---|
| committer | miod <> | 2014-04-23 22:26:26 +0000 |
| commit | 57f363f2f8ca275d715c73b6a4af0dadbc19d804 (patch) | |
| tree | fdc347c1b6ae5bb862c0b018453022fe0225f681 /src/lib/libc | |
| parent | 7aa32b6e8c2f36d05bd2d61063dbe667bb62842a (diff) | |
| download | openbsd-57f363f2f8ca275d715c73b6a4af0dadbc19d804.tar.gz openbsd-57f363f2f8ca275d715c73b6a4af0dadbc19d804.tar.bz2 openbsd-57f363f2f8ca275d715c73b6a4af0dadbc19d804.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.c | 3 |
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. */ |
