mirror of
https://github.com/openssl/openssl.git
synced 2024-12-03 05:41:46 +08:00
90a1f2d76f
-Public PKCS7 methods that create a PKCS7 object now have variants that also add a libctx and propq. This includes PKCS7_new_with_libctx(), PKCS7_sign_with_libctx() and PKCS7_encrypt_with_libctx() -Added SMIME_read_PKCS7_ex() so that a created PKCS7 object can be passed to the read. -d2i_PKCS7_bio() has been modified so that after it loads the PKCS7 object it then resolves any subobjects that require the libctx/propq (such as objects containing X509 certificates). Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11884)
15 lines
523 B
C
15 lines
523 B
C
/*
|
|
* Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
|
|
#include "crypto/pkcs7.h"
|
|
|
|
const PKCS7_CTX *pkcs7_get0_ctx(const PKCS7 *p7);
|
|
OPENSSL_CTX *pkcs7_ctx_get0_libctx(const PKCS7_CTX *ctx);
|
|
const char *pkcs7_ctx_get0_propq(const PKCS7_CTX *ctx);
|