projects
/
project
/
ustream-ssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
openssl: un-inline ustream_ssl_session_free
[project/ustream-ssl.git]
/
ustream-openssl.c
diff --git
a/ustream-openssl.c
b/ustream-openssl.c
index
3abc6e2
..
8181107
100644
(file)
--- a/
ustream-openssl.c
+++ b/
ustream-openssl.c
@@
-100,6
+100,12
@@
__hidden void __ustream_ssl_context_free(struct ustream_ssl_ctx *ctx)
SSL_CTX_free((void *) ctx);
}
+void __ustream_ssl_session_free(void *ssl)
+{
+ SSL_shutdown(ssl);
+ SSL_free(ssl);
+}
+
static void ustream_ssl_error(struct ustream_ssl *us, int ret)
{
us->error = ret;