Cleanup.
This commit is contained in:
@@ -798,11 +798,10 @@ int dtls1_client_hello(SSL *s)
|
|||||||
|
|
||||||
/* if client_random is initialized, reuse it, we are
|
/* if client_random is initialized, reuse it, we are
|
||||||
* required to use same upon reply to HelloVerify */
|
* required to use same upon reply to HelloVerify */
|
||||||
for (i=0;p[i]=='\0' && i<sizeof(s->s3->client_random);i++) ;
|
for (i=0;p[i]=='\0' && i<sizeof(s->s3->client_random);i++)
|
||||||
|
;
|
||||||
if (i==sizeof(s->s3->client_random))
|
if (i==sizeof(s->s3->client_random))
|
||||||
{
|
|
||||||
ssl_fill_hello_random(s,0,p,sizeof(s->s3->client_random));
|
ssl_fill_hello_random(s,0,p,sizeof(s->s3->client_random));
|
||||||
}
|
|
||||||
|
|
||||||
/* Do the message type and length last */
|
/* Do the message type and length last */
|
||||||
d=p= &(buf[DTLS1_HM_HEADER_LENGTH]);
|
d=p= &(buf[DTLS1_HM_HEADER_LENGTH]);
|
||||||
|
@@ -274,6 +274,7 @@ static int ssl23_no_ssl2_ciphers(SSL *s)
|
|||||||
int ssl_fill_hello_random(SSL *s, int server, unsigned char *result, int len)
|
int ssl_fill_hello_random(SSL *s, int server, unsigned char *result, int len)
|
||||||
{
|
{
|
||||||
int send_time = 0;
|
int send_time = 0;
|
||||||
|
|
||||||
if (len < 4)
|
if (len < 4)
|
||||||
return 0;
|
return 0;
|
||||||
if (server)
|
if (server)
|
||||||
|
Reference in New Issue
Block a user