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_VERIFY_PARAM_get0_name, X509_VERIFY_PARAM_set1_name, X509_VERIFY_PARAM_set_flags, X509_VERIFY_PARAM_clear_flags, X509_VERIFY_PARAM_get_flags, X509_VERIFY_PARAM_set_purpose, X509_VERIFY_PARAM_set_trust, X509_VERIFY_PARAM_set_time, X509_VERIFY_PARAM_get_time, X509_VERIFY_PARAM_add0_policy, X509_VERIFY_PARAM_set1_policies, X509_VERIFY_PARAM_set_depth, X509_VERIFY_PARAM_get_depth, X509_VERIFY_PARAM_set_auth_level, X509_VERIFY_PARAM_set1_host, X509_VERIFY_PARAM_add1_host, X509_VERIFY_PARAM_set_hostflags, X509_VERIFY_PARAM_get0_peername, X509_VERIFY_PARAM_set1_email, X509_VERIFY_PARAM_set1_ip, X509_VERIFY_PARAM_set1_ip_asc — X509 verification parametersSYNOPSIS
#include <openssl/x509_vfy.h>X509_VERIFY_PARAM_get0_name(const X509_VERIFY_PARAM *param);
X509_VERIFY_PARAM_set1_name(X509_VERIFY_PARAM *param, const char *name);
X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param, unsigned long flags);
X509_VERIFY_PARAM_clear_flags(X509_VERIFY_PARAM *param, unsigned long flags);
X509_VERIFY_PARAM_get_flags(X509_VERIFY_PARAM *param);
X509_VERIFY_PARAM_set_purpose(X509_VERIFY_PARAM *param, int purpose);
X509_VERIFY_PARAM_set_trust(X509_VERIFY_PARAM *param, int trust);
X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t);
X509_VERIFY_PARAM_get_time(const, X509_VERIFY_PARAM, *param");
X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param, ASN1_OBJECT *policy);
X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param, STACK_OF(ASN1_OBJECT) *policies);
X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth);
X509_VERIFY_PARAM_get_depth(const X509_VERIFY_PARAM *param);
X509_VERIFY_PARAM_set_auth_level(X509_VERIFY_PARAM *param, int auth_level);
X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param, const char *name, size_t namelen);
X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param, const char *name, size_t namelen);
X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, unsigned int flags);
X509_VERIFY_PARAM_get0_peername(X509_VERIFY_PARAM *param);
X509_VERIFY_PARAM_set1_email(X509_VERIFY_PARAM *param, const char *email, size_t emaillen);
X509_VERIFY_PARAM_set1_ip(X509_VERIFY_PARAM *param, const unsigned char *ip, size_t iplen);
X509_VERIFY_PARAM_set1_ip_asc(X509_VERIFY_PARAM *param, const char *ipasc);
DESCRIPTION
These functions manipulate an X509_VERIFY_PARAM object associated with a certificate verification operation.RETURN VALUES
X509_VERIFY_PARAM_set1_name(), X509_VERIFY_PARAM_set_flags(), X509_VERIFY_PARAM_clear_flags(), X509_VERIFY_PARAM_set_purpose(), X509_VERIFY_PARAM_set_trust(), X509_VERIFY_PARAM_add0_policy(), and X509_VERIFY_PARAM_set1_policies() return 1 for success or 0 for failure.VERIFICATION FLAGS
The verification flags consists of zero or more of the following flags OR'ed together.EXAMPLES
Enable CRL checking when performing certificate verification during SSL connections associated with an SSL_CTX structure ctx:X509_VERIFY_PARAM *param; param = X509_VERIFY_PARAM_new(); X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_CRL_CHECK); SSL_CTX_set1_param(ctx, param); X509_VERIFY_PARAM_free(param);