Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
X509_STORE_CTX_new, X509_STORE_CTX_init, X509_STORE_CTX_cleanup, X509_STORE_CTX_free, X509_STORE_CTX_get0_store, X509_STORE_CTX_set0_trusted_stack, X509_STORE_CTX_trusted_stack, X509_STORE_CTX_set_cert, X509_STORE_CTX_get0_cert, X509_STORE_CTX_set_chain, X509_STORE_CTX_set0_untrusted, X509_STORE_CTX_get0_untrusted, X509_STORE_CTX_set0_crls — X509_STORE_CTX initialisationSYNOPSIS
#include <openssl/x509_vfy.h>X509_STORE_CTX_new(void);
X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x, STACK_OF(X509) *untrusted);
X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);
X509_STORE_CTX_free(X509_STORE_CTX *ctx);
X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx);
X509_STORE_CTX_set0_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *trusted);
X509_STORE_CTX_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *trusted);
X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *x);
X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx);
X509_STORE_CTX_set_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *untrusted);
X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *untrusted);
X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx);
X509_STORE_CTX_set0_crls(X509_STORE_CTX *ctx, STACK_OF(X509_CRL) *crls);
DESCRIPTION
These functions set up an X509_STORE_CTX object for subsequent use by X509_verify_cert(3).X509_STORE_CTX ctx; X509_STORE_CTX_init(&ctx, store, cert, chain);
X509_STORE_CTX *ctx; ctx = X509_STORE_CTX_new(); if (ctx == NULL) /* Bad error */ X509_STORE_CTX_init(ctx, store, cert, chain);