Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
X509_STORE_CTX_set_flags, X509_STORE_CTX_set_time, X509_STORE_CTX_set_depth, X509_STORE_CTX_set_trust, X509_STORE_CTX_set_purpose, X509_STORE_CTX_get0_param, X509_STORE_CTX_set0_param, X509_STORE_CTX_set_default — X509_STORE_CTX parameter initialisationSYNOPSIS
#include <openssl/x509_vfy.h>X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags);
X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long dummy, time_t time);
X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);
X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust);
X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);
X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx);
X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param);
X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name);
DESCRIPTION
These functions operate on the X509_VERIFY_PARAM object used by ctx. Usually, X509_STORE_CTX_init(3) is called on ctx before these functions, and X509_verify_cert(3) afterwards.RETURN VALUES
X509_STORE_CTX_set_trust() returns 1 if the trust argument is 0 or valid or 0 if it is invalid but not 0. A return value of 1 does not imply that the trust identifier stored in the X509_VERIFY_PARAM object was changed.ERRORS
The following diagnostics can be retrieved with ERR_get_error(3), ERR_GET_REASON(3), and ERR_reason_error_string(3):- X509_R_UNKNOWN_TRUST_ID “unknown trust id”
- X509_STORE_CTX_set_trust() was called with a trust argument that is invalid but not 0. Other implementations may also return this when X509_STORE_CTX_set_purpose() is called with a purpose argument with invalid associated trust.
- X509_R_UNKNOWN_PURPOSE_ID “unknown purpose id”
- The purpose argument is invalid but not 0.