Remove PKCS1_CHECK
The code guarded by PKCS1_CHECK appears to be unhelpful, and the guard is explicitly undefined in ssl_locl.h Remove both. Change-Id: I3cd45a744a8f35b02181b1e48fd1ef11af5e6f4a Reviewed-on: https://boringssl-review.googlesource.com/1383 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
499b440135
commit
75d1589f60
@ -2113,10 +2113,6 @@ int ssl3_send_client_key_exchange(SSL *s)
|
||||
p+=2;
|
||||
n=RSA_public_encrypt(sizeof tmp_buf,
|
||||
tmp_buf,p,rsa,RSA_PKCS1_PADDING);
|
||||
#ifdef PKCS1_CHECK
|
||||
if (s->options & SSL_OP_PKCS1_CHECK_1) p[1]++;
|
||||
if (s->options & SSL_OP_PKCS1_CHECK_2) tmp_buf[0]=0x70;
|
||||
#endif
|
||||
if (n <= 0)
|
||||
{
|
||||
OPENSSL_PUT_ERROR(SSL, ssl3_send_client_key_exchange, SSL_R_BAD_RSA_ENCRYPT);
|
||||
|
@ -158,8 +158,6 @@
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/stack.h>
|
||||
|
||||
#undef PKCS1_CHECK
|
||||
|
||||
#define c2l(c,l) (l = ((unsigned long)(*((c)++))) , \
|
||||
l|=(((unsigned long)(*((c)++)))<< 8), \
|
||||
l|=(((unsigned long)(*((c)++)))<<16), \
|
||||
|
Loading…
Reference in New Issue
Block a user