Convert libssl writing for size_t
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
eda757514e
commit
7ee8627f6e
17 changed files with 270 additions and 216 deletions
|
@ -90,12 +90,14 @@ int ssl3_send_alert(SSL *s, int level, int desc)
|
|||
int ssl3_dispatch_alert(SSL *s)
|
||||
{
|
||||
int i, j;
|
||||
unsigned int alertlen;
|
||||
size_t alertlen;
|
||||
void (*cb) (const SSL *ssl, int type, int val) = NULL;
|
||||
size_t written;
|
||||
|
||||
s->s3->alert_dispatch = 0;
|
||||
alertlen = 2;
|
||||
i = do_ssl3_write(s, SSL3_RT_ALERT, &s->s3->send_alert[0], &alertlen, 1, 0);
|
||||
i = do_ssl3_write(s, SSL3_RT_ALERT, &s->s3->send_alert[0], &alertlen, 1, 0,
|
||||
&written);
|
||||
if (i <= 0) {
|
||||
s->s3->alert_dispatch = 1;
|
||||
} else {
|
||||
|
@ -121,5 +123,5 @@ int ssl3_dispatch_alert(SSL *s)
|
|||
cb(s, SSL_CB_WRITE_ALERT, j);
|
||||
}
|
||||
}
|
||||
return (i);
|
||||
return i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue