Lines Matching refs:purpose
43 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
338 /* We have the chain complete: now we need to check its purpose */
446 * with the supplied purpose
458 int purpose;
476 purpose = X509_PURPOSE_CRL_SIGN;
486 purpose = ctx->param->purpose;
552 if (ctx->param->purpose > 0)
554 ret = X509_check_purpose(x, purpose, must_be_ca > 0);
1909 int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose)
1911 return X509_STORE_CTX_purpose_inherit(ctx, 0, purpose, 0);
1919 /* This function is used to set the X509_STORE_CTX purpose and trust
1921 * own trust and purpose values which (if set) will be inherited by
1923 * purpose in mind which should then be used to set the trust value.
1925 * purpose and trust settings which the application can set: if they
1930 int purpose, int trust)
1933 /* If purpose not set use default */
1934 if (!purpose) purpose = def_purpose;
1935 /* If we have a purpose then check it is valid */
1936 if (purpose)
1939 idx = X509_PURPOSE_get_by_id(purpose);
1958 /* If trust not set then get from purpose default */
1972 if (purpose && !ctx->param->purpose) ctx->param->purpose = purpose;