]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Wed, 3 Apr 2024 15:28:03 +0000 (15:28 +0000)
commit4cb56ccd28a836828409de648f195bc9ba6a6f34
treee92d657cb3e627572f5c8f704a4b088650f05ac0
parent9c2cc5bf246f55eb34a219c77f5f5d562b703cde
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