MT#55283 leave SRTP keys in place after DTLS shut

closes #1772

Change-Id: Iaf80e7314730537ca56112cd5f9e1f9c85ca6e3c
pull/1776/head
Michal Hajek 2 years ago committed by Richard Fuchs
parent ce22afab57
commit afd85a4f94

@ -890,7 +890,6 @@ int dtls(stream_fd *sfd, const str *s, const endpoint_t *fsin) {
/* call must be locked */
void dtls_shutdown(struct packet_stream *ps) {
if (!ps)
return;
@ -919,18 +918,15 @@ void dtls_shutdown(struct packet_stream *ps) {
}
dtls_connection_cleanup(d);
crypto_reset(&sfd->crypto);
}
if (ps->dtls_cert) {
X509_free(ps->dtls_cert);
ps->dtls_cert = NULL;
}
if (had_dtls)
call_stream_crypto_reset(ps);
ilogs(crypto, LOG_DEBUG, "Reuse SRTP crypto key");
}
void dtls_connection_cleanup(struct dtls_connection *c) {

Loading…
Cancel
Save