diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-04-16 18:23:19 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-04-16 18:26:19 +0100 |
commit | 4dba585f79725d7a5a8ccc7b7623782773ea53bd (patch) | |
tree | e6582e2e773b45c6930a344c42d5081d496869e7 /crypto/x509/x509_vfy.c | |
parent | 64a1385a83a0d1d2b4e47889898d784ba2745f71 (diff) | |
download | openssl-4dba585f79725d7a5a8ccc7b7623782773ea53bd.tar.gz |
Add X509_STORE_CTX_set0_untrusted function.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/x509/x509_vfy.c')
-rw-r--r-- | crypto/x509/x509_vfy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 312b112f50..c16762632c 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -2343,6 +2343,11 @@ STACK_OF(X509) *X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx) return ctx->untrusted; } +void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) +{ + ctx->untrusted = sk; +} + void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) { sk_X509_pop_free(ctx->chain, X509_free); |