]> git.ipfire.org Git - thirdparty/asterisk.git/commit
STIR/SHAKEN: OPENSSL_free serial hex from openssl.
authorBen Ford <bford@digium.com>
Tue, 11 May 2021 17:26:13 +0000 (12:26 -0500)
committerBenjamin Keith Ford <bford@digium.com>
Tue, 11 May 2021 18:15:58 +0000 (13:15 -0500)
commite0cbdfe0633a702b10dda3bd9b40512c06e529c7
treec060d07bf47035a23f08a9022b0d464133860d02
parent5e6508b56fb6fc766fbcedbd4d5656e7e543e93f
STIR/SHAKEN: OPENSSL_free serial hex from openssl.

We're getting the serial number of the certificate from openssl and
freeing it with ast_free(), but it needs to be freed with OPENSSL_free()
instead. Now we duplicate the string and free the one from openssl with
OPENSSL_free(), which means we can still use ast_free() on the returned
string.

https://wiki.asterisk.org/wiki/display/AST/OpenSIPit+2021

Change-Id: Ia6e1a4028c1933a0e1d204b769ebb9f5a11f00ab
res/res_stir_shaken/stir_shaken.c