Lines Matching refs:ctx

148 int ctx_set_verify_locations(SSL_CTX *ctx,
154 if (!noCAfile && SSL_CTX_set_default_verify_file(ctx) <= 0)
156 if (!noCApath && SSL_CTX_set_default_verify_dir(ctx) <= 0)
158 if (!noCAstore && SSL_CTX_set_default_verify_store(ctx) <= 0)
164 if (CAfile != NULL && !SSL_CTX_load_verify_file(ctx, CAfile))
166 if (CApath != NULL && !SSL_CTX_load_verify_dir(ctx, CApath))
168 if (CAstore != NULL && !SSL_CTX_load_verify_store(ctx, CAstore))
175 int ctx_set_ctlog_list_file(SSL_CTX *ctx, const char *path)
178 return SSL_CTX_set_default_ctlog_list_file(ctx);
180 return SSL_CTX_set_ctlog_list_file(ctx, path);
870 OSSL_STORE_CTX *ctx = NULL;
954 ctx = OSSL_STORE_attach(bio, "file", libctx, propq,
960 ctx = OSSL_STORE_open_ex(uri, libctx, propq, get_ui_method(), &uidata,
963 if (ctx == NULL) {
967 if (expect > 0 && !OSSL_STORE_expect(ctx, expect))
971 while (cnt_expectations > 0 && !OSSL_STORE_eof(ctx)) {
972 OSSL_STORE_INFO *info = OSSL_STORE_load(ctx);
1048 OSSL_STORE_close(ctx);
2022 int pkey_ctrl_string(EVP_PKEY_CTX *ctx, const char *value)
2036 rv = EVP_PKEY_CTX_ctrl_str(ctx, stmp, vtmp);
2060 void policies_print(X509_STORE_CTX *ctx)
2064 tree = X509_STORE_CTX_get0_policy_tree(ctx);
2065 explicit_policy = X509_STORE_CTX_get_explicit_policy(ctx);
2213 static int do_sign_init(EVP_MD_CTX *ctx, EVP_PKEY *pkey,
2219 if (ctx == NULL)
2231 return EVP_DigestSignInit_ex(ctx, &pkctx, md, app_get0_libctx(),
2406 static STACK_OF(X509_CRL) *crls_http_cb(const X509_STORE_CTX *ctx,
2417 x = X509_STORE_CTX_get_current_cert(ctx);
3059 fd = open(filename, mode, 0600, "ctx=bin");
3344 EVP_PKEY *app_keygen(EVP_PKEY_CTX *ctx, const char *alg, int bits, int verbose)
3358 if (EVP_PKEY_keygen(ctx, &res) <= 0)
3364 EVP_PKEY *app_paramgen(EVP_PKEY_CTX *ctx, const char *alg)
3371 if (EVP_PKEY_paramgen(ctx, &res) <= 0)