summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-09-24 17:59:54 +0000
committerjsing <jsing@openbsd.org>2020-09-24 17:59:54 +0000
commit435f94b74e31aaa328aa82ba94c8fdad60dbb4d7 (patch)
tree7386ada5c49e9ffdf8de1e0b91ddd85d53355dd2 /lib/libssl/ssl_locl.h
parentmi_ast() needs curcpu()->ci_want_resched rather than ci->ci_want_resched, (diff)
downloadwireguard-openbsd-435f94b74e31aaa328aa82ba94c8fdad60dbb4d7.tar.xz
wireguard-openbsd-435f94b74e31aaa328aa82ba94c8fdad60dbb4d7.zip
Release read and write buffers using freezero().
Provide a ssl3_release_buffer() function that correctly frees a buffer and call it from the appropriate locations. While here also change ssl3_release_{read,write}_buffer() to void since they cannot fail and no callers check the return value currently. ok beck@ inoguchi@ tb@
Diffstat (limited to 'lib/libssl/ssl_locl.h')
-rw-r--r--lib/libssl/ssl_locl.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h
index a3b8a805720..d4ba7f66d4a 100644
--- a/lib/libssl/ssl_locl.h
+++ b/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_locl.h,v 1.293 2020/09/17 15:23:29 jsing Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.294 2020/09/24 17:59:54 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1223,8 +1223,9 @@ int ssl3_setup_buffers(SSL *s);
int ssl3_setup_init_buffer(SSL *s);
int ssl3_setup_read_buffer(SSL *s);
int ssl3_setup_write_buffer(SSL *s);
-int ssl3_release_read_buffer(SSL *s);
-int ssl3_release_write_buffer(SSL *s);
+void ssl3_release_buffer(SSL3_BUFFER_INTERNAL *b);
+void ssl3_release_read_buffer(SSL *s);
+void ssl3_release_write_buffer(SSL *s);
int ssl3_new(SSL *s);
void ssl3_free(SSL *s);
int ssl3_accept(SSL *s);