diff options
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; |