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/libssl/d1_clnt.c | |
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 'src/lib/libssl/d1_clnt.c')
-rw-r--r-- | src/lib/libssl/d1_clnt.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/libssl/d1_clnt.c b/src/lib/libssl/d1_clnt.c index cf9bc2d33e..38118b1385 100644 --- a/src/lib/libssl/d1_clnt.c +++ b/src/lib/libssl/d1_clnt.c | |||
@@ -975,12 +975,6 @@ dtls1_send_client_key_exchange(SSL *s) | |||
975 | p += 2; | 975 | p += 2; |
976 | n = RSA_public_encrypt(sizeof tmp_buf, | 976 | n = RSA_public_encrypt(sizeof tmp_buf, |
977 | tmp_buf, p, rsa, RSA_PKCS1_PADDING); | 977 | tmp_buf, p, rsa, RSA_PKCS1_PADDING); |
978 | #ifdef PKCS1_CHECK | ||
979 | if (s->options & SSL_OP_PKCS1_CHECK_1) | ||
980 | p[1]++; | ||
981 | if (s->options & SSL_OP_PKCS1_CHECK_2) | ||
982 | tmp_buf[0] = 0x70; | ||
983 | #endif | ||
984 | if (n <= 0) { | 978 | if (n <= 0) { |
985 | SSLerr(SSL_F_DTLS1_SEND_CLIENT_KEY_EXCHANGE, SSL_R_BAD_RSA_ENCRYPT); | 979 | SSLerr(SSL_F_DTLS1_SEND_CLIENT_KEY_EXCHANGE, SSL_R_BAD_RSA_ENCRYPT); |
986 | goto err; | 980 | goto err; |