ssl3_set_handshake_header returns
Change ssl_set_handshake_header from return void to returning int, and handle error return code appropriately. Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
@@ -3087,13 +3087,15 @@ int ssl3_pending(const SSL *s)
|
||||
SSL3_RT_APPLICATION_DATA) ? s->s3->rrec.length : 0;
|
||||
}
|
||||
|
||||
void ssl3_set_handshake_header(SSL *s, int htype, unsigned long len)
|
||||
int ssl3_set_handshake_header(SSL *s, int htype, unsigned long len)
|
||||
{
|
||||
unsigned char *p = (unsigned char *)s->init_buf->data;
|
||||
*(p++) = htype;
|
||||
l2n3(len, p);
|
||||
s->init_num = (int)len + SSL3_HM_HEADER_LENGTH;
|
||||
s->init_off = 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int ssl3_handshake_write(SSL *s)
|
||||
|
||||
Reference in New Issue
Block a user