[openssl/openssl] fe2a73: PKCS12 - Add additional libctx and propq support.

Shane noreply at github.com
Mon Jan 16 16:20:30 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: fe2a7341b50450dc6acd6f8a17d4420511a5aefe
      https://github.com/openssl/openssl/commit/fe2a7341b50450dc6acd6f8a17d4420511a5aefe
  Author: slontis <shane.lontis at oracle.com>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M crypto/asn1/asn_pack.c
    M crypto/pkcs12/p12_add.c
    M crypto/pkcs12/p12_asn.c
    M crypto/pkcs12/p12_init.c
    M crypto/pkcs12/p12_kiss.c
    M crypto/pkcs12/p12_local.h
    M crypto/pkcs12/p12_sbag.c
    M crypto/pkcs12/p12_utl.c
    M doc/man3/ASN1_item_d2i_bio.pod
    M doc/man3/PKCS12_SAFEBAG_get1_cert.pod
    M include/openssl/asn1.h.in
    M include/openssl/pkcs12.h.in
    M test/pkcs12_api_test.c
    M util/libcrypto.num
    M util/missingcrypto.txt

  Log Message:
  -----------
  PKCS12 - Add additional libctx and propq support.

Fixes #19718
Fixes #19716

Added PKCS12_SAFEBAG_get1_cert_ex(), PKCS12_SAFEBAG_get1_crl_ex() and
ASN1_item_unpack_ex().

parse_bag and parse_bags now use the libctx/propq stored in the P7_CTX.
PKCS12_free() needed to be manually constructed in order to free the propq.

pkcs12_api_test.c changed so that it actually tests the libctx, propq.

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19942)




More information about the openssl-commits mailing list