]> 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 Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:47:40 +0000 (13:47 +0000)
commit2fd379d3be1377d47bdc19b38917346ecda08d44
tree9710c70b6d5a6a0e37313727c5db112aa53457f1
parentca6590426afe065c8f61954b77ebc1a1e7b46d2d
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
(cherry picked from commit 4cb56ccd28a836828409de648f195bc9ba6a6f34)
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