• Home
  • Raw
  • Download

Lines Matching refs:global

48 static int schannel_load_lib(struct tls_global *global)  in schannel_load_lib()  argument
52 global->hsecurity = LoadLibrary(TEXT("Secur32.dll")); in schannel_load_lib()
53 if (global->hsecurity == NULL) { in schannel_load_lib()
60 global->hsecurity, "InitSecurityInterfaceA"); in schannel_load_lib()
65 FreeLibrary(global->hsecurity); in schannel_load_lib()
66 global->hsecurity = NULL; in schannel_load_lib()
70 global->sspi = pInitSecurityInterface(); in schannel_load_lib()
71 if (global->sspi == NULL) { in schannel_load_lib()
75 FreeLibrary(global->hsecurity); in schannel_load_lib()
76 global->hsecurity = NULL; in schannel_load_lib()
86 struct tls_global *global; in tls_init() local
88 global = os_zalloc(sizeof(*global)); in tls_init()
89 if (global == NULL) in tls_init()
91 if (schannel_load_lib(global)) { in tls_init()
92 os_free(global); in tls_init()
95 return global; in tls_init()
101 struct tls_global *global = ssl_ctx; in tls_deinit() local
103 if (global->my_cert_store) in tls_deinit()
104 CertCloseStore(global->my_cert_store, 0); in tls_deinit()
105 FreeLibrary(global->hsecurity); in tls_deinit()
106 os_free(global); in tls_deinit()
146 struct tls_global *global = ssl_ctx; in tls_connection_shutdown() local
153 global->sspi->DeleteSecurityContext(&conn->context); in tls_connection_shutdown()
212 static struct wpabuf * tls_conn_hs_clienthello(struct tls_global *global, in tls_conn_hs_clienthello() argument
238 status = global->sspi->InitializeSecurityContextW( in tls_conn_hs_clienthello()
243 status = global->sspi->InitializeSecurityContextA( in tls_conn_hs_clienthello()
264 global->sspi->FreeContextBuffer(outbufs[0].pvBuffer); in tls_conn_hs_clienthello()
283 static int tls_get_eap(struct tls_global *global, struct tls_connection *conn) in tls_get_eap() argument
291 status = global->sspi->QueryContextAttributes( in tls_get_eap()
316 struct tls_global *global = tls_ctx; in tls_connection_handshake() local
328 return tls_conn_hs_clienthello(global, conn); in tls_connection_handshake()
363 status = global->sspi->InitializeSecurityContextW( in tls_connection_handshake()
368 status = global->sspi->InitializeSecurityContextA( in tls_connection_handshake()
388 global->sspi->FreeContextBuffer(outbufs[0].pvBuffer); in tls_connection_handshake()
407 tls_get_eap(global, conn); in tls_connection_handshake()
422 global->sspi->FreeContextBuffer(inbufs[1].pvBuffer); in tls_connection_handshake()
442 global->sspi->DeleteSecurityContext(&conn->context); in tls_connection_handshake()
450 global->sspi->FreeContextBuffer(inbufs[1].pvBuffer); in tls_connection_handshake()
471 struct tls_global *global = tls_ctx; in tls_connection_encrypt() local
479 status = global->sspi->QueryContextAttributes(&conn->context, in tls_connection_encrypt()
513 status = global->sspi->EncryptMessage(&conn->context, 0, &buf, 0); in tls_connection_encrypt()
553 struct tls_global *global = tls_ctx; in tls_connection_decrypt() local
578 status = global->sspi->DecryptMessage(&conn->context, &buf, 0, in tls_connection_decrypt()
687 struct tls_global *global = tls_ctx; in tls_connection_set_params() local
695 if (global->my_cert_store == NULL && in tls_connection_set_params()
696 (global->my_cert_store = CertOpenSystemStore(0, TEXT("MY"))) == in tls_connection_set_params()
711 status = global->sspi->AcquireCredentialsHandleW( in tls_connection_set_params()
715 status = global->sspi->AcquireCredentialsHandleA( in tls_connection_set_params()