[MBEDTLS][SCHANNEL] Export mbedtls_ssl_config_free and use it. Patch by Peter Hater...
authorMark Jansen <mark.jansen@reactos.org>
Fri, 20 May 2016 17:09:56 +0000 (17:09 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Fri, 20 May 2016 17:09:56 +0000 (17:09 +0000)
svn path=/trunk/; revision=71362

reactos/dll/3rdparty/mbedtls/mbedtls.spec
reactos/dll/win32/schannel/schannel_mbedtls.c

index 26fc7cb..d9fd265 100644 (file)
@@ -23,6 +23,7 @@
 @ cdecl mbedtls_ssl_write(ptr ptr ptr)
 @ cdecl mbedtls_ssl_get_peer_cert(ptr)
 @ cdecl mbedtls_ssl_config_init(ptr)
+@ cdecl mbedtls_ssl_config_free(ptr)
 @ cdecl mbedtls_ssl_config_defaults(ptr long long long)
 @ cdecl mbedtls_ssl_conf_dbg(ptr ptr ptr)
 @ cdecl mbedtls_ssl_setup(ptr ptr)
index a90ee67..90f0c79 100644 (file)
@@ -244,6 +244,7 @@ void schan_imp_dispose_session(schan_imp_session session)
     mbedtls_ssl_free(&s->ssl);
     mbedtls_ctr_drbg_free(&s->ctr_drbg);
     mbedtls_entropy_free(&s->entropy);
+    mbedtls_ssl_config_free(&s->conf);
 
     /* safely overwrite the freed context with zeroes */
     HeapFree(GetProcessHeap(), HEAP_ZERO_MEMORY, s);