diff options
author | Matt Caswell <matt@openssl.org> | 2016-09-07 11:34:39 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-11-04 12:09:45 +0000 |
commit | 7ee8627f6eb7cf63b34d2701d76bb66f6db811e5 (patch) | |
tree | 3cc2467dedda4c802868d9ff2c00ca6b979e4ea6 /ssl/s3_lib.c | |
parent | eda757514ea3018c8510b4738b5e37479aeadc5e (diff) | |
download | openssl-7ee8627f6eb7cf63b34d2701d76bb66f6db811e5.tar.gz |
Convert libssl writing for size_t
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 37dea73b24..52f9214c3d 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -3829,13 +3829,14 @@ int ssl3_shutdown(SSL *s) return (0); } -int ssl3_write(SSL *s, const void *buf, int len) +int ssl3_write(SSL *s, const void *buf, size_t len, size_t *written) { clear_sys_error(); if (s->s3->renegotiate) ssl3_renegotiate_check(s); - return s->method->ssl_write_bytes(s, SSL3_RT_APPLICATION_DATA, buf, len); + return s->method->ssl_write_bytes(s, SSL3_RT_APPLICATION_DATA, buf, len, + written); } static int ssl3_read_internal(SSL *s, void *buf, size_t len, int peek, |