Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:global

54 static int schannel_load_lib(struct tls_global *global)
58 global->hsecurity = LoadLibrary(TEXT("Secur32.dll"));
59 if (global->hsecurity == NULL) {
66 global->hsecurity, "InitSecurityInterfaceA");
71 FreeLibrary(global->hsecurity);
72 global->hsecurity = NULL;
76 global->sspi = pInitSecurityInterface();
77 if (global->sspi == NULL) {
81 FreeLibrary(global->hsecurity);
82 global->hsecurity = NULL;
92 struct tls_global *global;
94 global = os_zalloc(sizeof(*global));
95 if (global == NULL)
97 if (schannel_load_lib(global)) {
98 os_free(global);
101 return global;
107 struct tls_global *global = ssl_ctx;
109 if (global->my_cert_store)
110 CertCloseStore(global->my_cert_store, 0);
111 FreeLibrary(global->hsecurity);
112 os_free(global);
152 struct tls_global *global = ssl_ctx;
159 global->sspi->DeleteSecurityContext(&conn->context);
218 static u8 * tls_conn_hs_clienthello(struct tls_global *global,
245 status = global->sspi->InitializeSecurityContextW(
250 status = global->sspi->InitializeSecurityContextA(
272 global->sspi->FreeContextBuffer(outbufs[0].pvBuffer);
291 static int tls_get_eap(struct tls_global *global, struct tls_connection *conn)
299 status = global->sspi->QueryContextAttributes(
324 struct tls_global *global = ssl_ctx;
336 return tls_conn_hs_clienthello(global, conn, out_len);
372 status = global->sspi->InitializeSecurityContextW(
377 status = global->sspi->InitializeSecurityContextA(
400 global->sspi->FreeContextBuffer(outbufs[0].pvBuffer);
419 tls_get_eap(global, conn);
437 global->sspi->FreeContextBuffer(inbufs[1].pvBuffer);
457 global->sspi->DeleteSecurityContext(&conn->context);
465 global->sspi->FreeContextBuffer(inbufs[1].pvBuffer);
486 struct tls_global *global = ssl_ctx;
494 status = global->sspi->QueryContextAttributes(&conn->context,
535 status = global->sspi->EncryptMessage(&conn->context, 0, &buf, 0);
574 struct tls_global *global = ssl_ctx;
602 status = global->sspi->DecryptMessage(&conn->context, &buf, 0,
720 struct tls_global *global = tls_ctx;
728 if (global->my_cert_store == NULL &&
729 (global->my_cert_store = CertOpenSystemStore(0, TEXT("MY"))) ==
744 status = global->sspi->AcquireCredentialsHandleW(
748 status = global->sspi->AcquireCredentialsHandleA(