Lines Matching refs:ctx

45 int verify_callback(int ok, X509_STORE_CTX *ctx)
50 err_cert = X509_STORE_CTX_get_current_cert(ctx);
51 err = X509_STORE_CTX_get_error(ctx);
52 depth = X509_STORE_CTX_get_error_depth(ctx);
104 policies_print(ctx);
108 policies_print(ctx);
114 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file)
117 if (SSL_CTX_use_certificate_file(ctx, cert_file,
126 if (SSL_CTX_use_PrivateKey_file(ctx, key_file, SSL_FILETYPE_PEM) <= 0) {
142 if (!SSL_CTX_check_private_key(ctx)) {
151 int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key,
158 if (SSL_CTX_use_certificate(ctx, cert) <= 0) {
164 if (SSL_CTX_use_PrivateKey(ctx, key) <= 0) {
173 if (!SSL_CTX_check_private_key(ctx)) {
178 if (chain && !SSL_CTX_set1_chain(ctx, chain)) {
183 if (build_chain && !SSL_CTX_build_cert_chain(ctx, chflags)) {
963 void ssl_ctx_set_excert(SSL_CTX *ctx, SSL_EXCERT *exc)
965 SSL_CTX_set_cert_cb(ctx, set_cert_cb, exc);
1252 SSL_CTX *ctx)
1256 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx);
1289 int ssl_ctx_add_crls(SSL_CTX *ctx, STACK_OF(X509_CRL) *crls, int crl_download)
1293 st = SSL_CTX_get_cert_store(ctx);
1300 int ssl_load_stores(SSL_CTX *ctx,
1321 SSL_CTX_set1_verify_cert_store(ctx, vfy);
1335 SSL_CTX_set1_chain_cert_store(ctx, ch);
1349 int (*old_cb) (const SSL *s, const SSL_CTX *ctx, int op, int bits, int nid,
1378 static int security_callback_debug(const SSL *s, const SSL_CTX *ctx,
1387 rv = sdb->old_cb(s, ctx, op, bits, nid, other, ex);
1494 void ssl_ctx_security_debug(SSL_CTX *ctx, int verbose)
1500 sdb.old_cb = SSL_CTX_get_security_callback(ctx);
1501 SSL_CTX_set_security_callback(ctx, security_callback_debug);
1502 SSL_CTX_set0_security_ex_data(ctx, &sdb);
1520 int set_keylog_file(SSL_CTX *ctx, const char *keylog_file)
1526 if (ctx == NULL || keylog_file == NULL) {
1548 SSL_CTX_set_keylog_callback(ctx, keylog_callback);