Lines Matching defs:context

100 	struct tls_context *context;
134 struct tls_context *context = os_zalloc(sizeof(*context));
135 if (context == NULL)
138 context->event_cb = conf->event_cb;
139 context->cb_ctx = conf->cb_ctx;
140 context->cert_in_cb = conf->cert_in_cb;
142 return context;
584 if (conn->context->event_cb != NULL) {
586 struct tls_context *context = conn->context;
591 context->event_cb(context->cb_ctx, TLS_ALERT, &ev);
749 struct tls_context *context;
752 tls_global = context = tls_context_new(conf);
753 if (context == NULL)
803 context = tls_context_new(conf);
804 if (context == NULL)
807 context = tls_global;
816 if (context != tls_global)
817 os_free(context);
828 SSL_CTX_set_app_data(ssl, context);
856 struct tls_context *context = SSL_CTX_get_app_data(ssl);
857 if (context != tls_global)
858 os_free(context);
1026 struct tls_context *context = SSL_CTX_get_app_data(ssl);
1028 struct tls_context *context = tls_global;
1042 conn->context = context;
1341 struct tls_context *context = conn->context;
1343 if (context->event_cb == NULL)
1354 context->event_cb(context->cb_ctx, TLS_CERT_CHAIN_FAILURE, &ev);
1365 struct tls_context *context = conn->context;
1370 if (context->event_cb == NULL)
1374 if (conn->cert_probe || context->cert_in_cb) {
1392 context->event_cb(context->cb_ctx, TLS_PEER_CERTIFICATE, &ev);
1404 struct tls_context *context;
1429 context = conn->context;
1521 if (preverify_ok && context->event_cb != NULL)
1522 context->event_cb(context->cb_ctx,
1823 * Set session id context in order to avoid fatal errors when client
1824 * tries to resume a session. However, set the context to a unique
1996 * always add it to the context...