Latest update.
This commit is contained in:
@@ -384,10 +384,12 @@ int ssl3_write_bytes(SSL *s, int type, const void *buf_, size_t len,
|
||||
s->rlayer.wnum = 0;
|
||||
|
||||
/*
|
||||
* If we are supposed to be sending a KeyUpdate then go into init unless we
|
||||
* have writes pending - in which case we should finish doing that first.
|
||||
* If we are supposed to be sending a KeyUpdate or NewSessionTicket then go
|
||||
* into init unless we have writes pending - in which case we should finish
|
||||
* doing that first.
|
||||
*/
|
||||
if (wb->left == 0 && s->key_update != SSL_KEY_UPDATE_NONE)
|
||||
if (wb->left == 0 && (s->key_update != SSL_KEY_UPDATE_NONE
|
||||
|| s->ext.extra_tickets_expected > 0))
|
||||
ossl_statem_set_in_init(s, 1);
|
||||
|
||||
/*
|
||||
|
||||
@@ -94,7 +94,7 @@ int ssl3_setup_write_buffer(SSL *s, size_t numwpipes, size_t len)
|
||||
headerlen = SSL3_RT_HEADER_LENGTH;
|
||||
|
||||
#if defined(SSL3_ALIGN_PAYLOAD) && SSL3_ALIGN_PAYLOAD!=0
|
||||
align = (-SSL3_RT_HEADER_LENGTH) & (SSL3_ALIGN_PAYLOAD - 1);
|
||||
align = SSL3_ALIGN_PAYLOAD - 1;
|
||||
#endif
|
||||
|
||||
len = ssl_get_max_send_fragment(s)
|
||||
|
||||
Reference in New Issue
Block a user