Lines Matching refs:global
36 struct tls_global *global; member
42 struct tls_global *global; in tls_init() local
56 global = os_zalloc(sizeof(*global)); in tls_init()
57 if (global == NULL) in tls_init()
60 global->event_cb = conf->event_cb; in tls_init()
61 global->cb_ctx = conf->cb_ctx; in tls_init()
62 global->cert_in_cb = conf->cert_in_cb; in tls_init()
65 return global; in tls_init()
70 struct tls_global *global = ssl_ctx; in tls_deinit() local
81 tlsv1_cred_free(global->server_cred); in tls_deinit()
83 os_free(global); in tls_deinit()
96 struct tls_global *global = tls_ctx; in tls_connection_init() local
101 conn->global = global; in tls_connection_init()
104 if (!global->server) { in tls_connection_init()
110 tlsv1_client_set_cb(conn->client, global->event_cb, in tls_connection_init()
111 global->cb_ctx, global->cert_in_cb); in tls_connection_init()
115 if (global->server) { in tls_connection_init()
116 conn->server = tlsv1_server_init(global->server_cred); in tls_connection_init()
302 struct tls_global *global = tls_ctx; in tls_global_set_params() local
310 global->server = 1; in tls_global_set_params()
311 tlsv1_cred_free(global->server_cred); in tls_global_set_params()
312 global->server_cred = cred = tlsv1_cred_alloc(); in tls_global_set_params()
359 struct tls_global *global = tls_ctx; in tls_global_set_verify() local
360 global->check_crl = check_crl; in tls_global_set_verify()