]> 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:06 +0000 (15:28 +0000)
commitaf6002564bc4d2e68cbcd7fb999d4de098b4b9f8
tree0623e3e69454deb52aaee2a890af30aebf648a20
parent3fb9d895865f62ca0d5ab5655035c9113ec31a18
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