vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sun Nov 18 14:06:05 2018 +0200| [6b18a904d884b4c28508451c3927c657b8e7cc22] | committer: Rémi Denis-Courmont
tls: add destroy callback > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b18a904d884b4c28508451c3927c657b8e7cc22 --- include/vlc_tls.h | 1 + src/network/tls.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/vlc_tls.h b/include/vlc_tls.h index 95569b55c7..08772cbced 100644 --- a/include/vlc_tls.h +++ b/include/vlc_tls.h @@ -147,6 +147,7 @@ typedef struct vlc_tls_creds int (*handshake)(vlc_tls_t *session, const char *hostname, const char *service, char ** /*restrict*/ alp); + void (*destroy)(struct vlc_tls_creds *); } vlc_tls_creds_t; /** diff --git a/src/network/tls.c b/src/network/tls.c index 307942b206..c2bb88585c 100644 --- a/src/network/tls.c +++ b/src/network/tls.c @@ -121,6 +121,7 @@ void vlc_tls_Delete (vlc_tls_creds_t *crd) if (crd == NULL) return; + crd->destroy(crd); vlc_module_unload(crd, crd->module, tls_unload, crd); vlc_object_release (crd); } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
