diff options
author | Matt Caswell <matt@openssl.org> | 2015-03-09 15:33:46 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-03-23 15:23:24 +0000 |
commit | 77d514c5a00511017967f98b03a946d86c923e94 (patch) | |
tree | c97b255d989acf752b31b079ca6cc0b5cd6dd290 /ssl/s3_lib.c | |
parent | ac59d70553723cd8c7c1558071a2e1672d80daef (diff) |
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>
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index d40a181ebe..6c59824901 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -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) |