diff options
author | Matt Caswell <matt@openssl.org> | 2016-09-08 09:58:29 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-09-13 09:41:21 +0100 |
commit | 871bc59bc190d24ddd7b29aeb5fb2493b48e9cf5 (patch) | |
tree | d3b50db81a94966d9f7a2bc37330b3ab123d9962 /ssl/packet_locl.h | |
parent | fb790f1673884f4a9db9118e93714650f92eed66 (diff) | |
download | openssl-871bc59bc190d24ddd7b29aeb5fb2493b48e9cf5.zip openssl-871bc59bc190d24ddd7b29aeb5fb2493b48e9cf5.tar.gz openssl-871bc59bc190d24ddd7b29aeb5fb2493b48e9cf5.tar.bz2 |
Various bug fixes and tweaks to WPACKET implementation
Also added the WPACKET_cleanup() function to cleanup a WPACKET if we hit
an error.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/packet_locl.h')
-rw-r--r-- | ssl/packet_locl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/packet_locl.h b/ssl/packet_locl.h index 65ab15a..acbd966 100644 --- a/ssl/packet_locl.h +++ b/ssl/packet_locl.h @@ -584,8 +584,7 @@ struct wpacket_st { size_t written; /* - * Maximum number of bytes we will allow to be written to this WPACKET. Zero - * if no maximum + * Maximum number of bytes we will allow to be written to this WPACKET. */ size_t maxsize; @@ -621,6 +620,7 @@ int WPACKET_sub_memcpy(WPACKET *pkt, const void *src, size_t len, size_t lenbytes); int WPACKET_get_total_written(WPACKET *pkt, size_t *written); int WPACKET_get_length(WPACKET *pkt, size_t *len); +void WPACKET_cleanup(WPACKET *pkt); # ifdef __cplusplus } |