diff options
Diffstat (limited to 'src/lib/libssl/s3_clnt.c')
| -rw-r--r-- | src/lib/libssl/s3_clnt.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index b80d052e1f..a6b3c01afa 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
| @@ -459,7 +459,6 @@ int ssl3_connect(SSL *s) | |||
| 459 | SSL3_ST_CW_CHANGE_A,SSL3_ST_CW_CHANGE_B); | 459 | SSL3_ST_CW_CHANGE_A,SSL3_ST_CW_CHANGE_B); |
| 460 | if (ret <= 0) goto end; | 460 | if (ret <= 0) goto end; |
| 461 | 461 | ||
| 462 | |||
| 463 | #if defined(OPENSSL_NO_TLSEXT) || defined(OPENSSL_NO_NEXTPROTONEG) | 462 | #if defined(OPENSSL_NO_TLSEXT) || defined(OPENSSL_NO_NEXTPROTONEG) |
| 464 | s->state=SSL3_ST_CW_FINISHED_A; | 463 | s->state=SSL3_ST_CW_FINISHED_A; |
| 465 | #else | 464 | #else |
| @@ -656,7 +655,7 @@ int ssl3_client_hello(SSL *s) | |||
| 656 | unsigned char *buf; | 655 | unsigned char *buf; |
| 657 | unsigned char *p,*d; | 656 | unsigned char *p,*d; |
| 658 | int i; | 657 | int i; |
| 659 | unsigned long Time,l; | 658 | unsigned long l; |
| 660 | #ifndef OPENSSL_NO_COMP | 659 | #ifndef OPENSSL_NO_COMP |
| 661 | int j; | 660 | int j; |
| 662 | SSL_COMP *comp; | 661 | SSL_COMP *comp; |
| @@ -681,9 +680,8 @@ int ssl3_client_hello(SSL *s) | |||
| 681 | /* else use the pre-loaded session */ | 680 | /* else use the pre-loaded session */ |
| 682 | 681 | ||
| 683 | p=s->s3->client_random; | 682 | p=s->s3->client_random; |
| 684 | Time=(unsigned long)time(NULL); /* Time */ | 683 | |
| 685 | l2n(Time,p); | 684 | if (ssl_fill_hello_random(s, 0, p, SSL3_RANDOM_SIZE) <= 0) |
| 686 | if (RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-4) <= 0) | ||
| 687 | goto err; | 685 | goto err; |
| 688 | 686 | ||
| 689 | /* Do the message type and length last */ | 687 | /* Do the message type and length last */ |
| @@ -987,7 +985,10 @@ int ssl3_get_server_hello(SSL *s) | |||
| 987 | * client authentication. | 985 | * client authentication. |
| 988 | */ | 986 | */ |
| 989 | if (TLS1_get_version(s) < TLS1_2_VERSION && !ssl3_digest_cached_records(s)) | 987 | if (TLS1_get_version(s) < TLS1_2_VERSION && !ssl3_digest_cached_records(s)) |
| 988 | { | ||
| 989 | al = SSL_AD_INTERNAL_ERROR; | ||
| 990 | goto f_err; | 990 | goto f_err; |
| 991 | } | ||
| 991 | /* lets get the compression algorithm */ | 992 | /* lets get the compression algorithm */ |
| 992 | /* COMPRESSION */ | 993 | /* COMPRESSION */ |
| 993 | #ifdef OPENSSL_NO_COMP | 994 | #ifdef OPENSSL_NO_COMP |
