Lines Matching defs:purpose
385 /* We have the chain complete: now we need to check its purpose */
505 * purpose
517 int purpose;
535 purpose = X509_PURPOSE_CRL_SIGN;
545 purpose = ctx->param->purpose;
603 if (ctx->param->purpose > 0) {
604 ret = X509_check_purpose(x, purpose, must_be_ca > 0);
2039 int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose)
2041 return X509_STORE_CTX_purpose_inherit(ctx, 0, purpose, 0);
2050 * This function is used to set the X509_STORE_CTX purpose and trust values.
2052 * purpose values which (if set) will be inherited by the ctx. If they aren't
2053 * set then we will usually have a default purpose in mind which should then
2055 * structure will have its own purpose and trust settings which the
2061 int purpose, int trust)
2064 /* If purpose not set use default */
2065 if (!purpose)
2066 purpose = def_purpose;
2067 /* If we have a purpose then check it is valid */
2068 if (purpose) {
2070 idx = X509_PURPOSE_get_by_id(purpose);
2086 /* If trust not set then get from purpose default */
2099 if (purpose && !ctx->param->purpose)
2100 ctx->param->purpose = purpose;