]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_stir_shaken: Fix compilation for CentOS7 (openssl 1.0.2)
authorGeorge Joseph <gjoseph@sangoma.com>
Mon, 1 Apr 2024 20:10:32 +0000 (14:10 -0600)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Wed, 3 Apr 2024 15:28:11 +0000 (15:28 +0000)
commitb23f089472600ccff34a7d6ce1ff6f328f51e52e
tree836905a1665dbf789b7fe3a5833fcbf48e86adee
parentf6b9d9e7d783905b4a92fb9224faf6e23681ac82
res_stir_shaken:  Fix compilation for CentOS7 (openssl 1.0.2)

* OpenSSL 1.0.2 doesn't support X509_get0_pubkey so we now use
  X509_get_pubkey.  The difference is that X509_get_pubkey requires
  the caller to free the EVP_PKEY themselves so we now let
  RAII_VAR do that.
* OpenSSL 1.0.2 doesn't support upreffing an X509_STORE so we now
  wrap it in an ao2 object.
* OpenSSL 1.0.2 doesn't support X509_STORE_get0_objects to get all
  the certs from an X509_STORE and there's no easy way to polyfill
  it so the CLI commands that list profiles will show a "not
  supported" message instead of listing the certs in a store.

Resolves: #676
res/res_stir_shaken/common_config.h
res/res_stir_shaken/crypto_utils.c
res/res_stir_shaken/crypto_utils.h
res/res_stir_shaken/verification_config.c