/external/wpa_supplicant_8/src/tls/ |
tlsv1_client.h | 19 void tlsv1_client_deinit(struct tlsv1_client *conn); 20 int tlsv1_client_established(struct tlsv1_client *conn); 21 int tlsv1_client_prf(struct tlsv1_client *conn, const char *label, 23 u8 * tlsv1_client_handshake(struct tlsv1_client *conn, 27 int tlsv1_client_encrypt(struct tlsv1_client *conn, 30 struct wpabuf * tlsv1_client_decrypt(struct tlsv1_client *conn, 33 int tlsv1_client_get_cipher(struct tlsv1_client *conn, char *buf, 35 int tlsv1_client_shutdown(struct tlsv1_client *conn); 36 int tlsv1_client_resumed(struct tlsv1_client *conn); 37 int tlsv1_client_hello_ext(struct tlsv1_client *conn, int ext_type [all...] |
tlsv1_server.h | 19 void tlsv1_server_deinit(struct tlsv1_server *conn); 20 int tlsv1_server_established(struct tlsv1_server *conn); 21 int tlsv1_server_prf(struct tlsv1_server *conn, const char *label, 23 u8 * tlsv1_server_handshake(struct tlsv1_server *conn, 25 int tlsv1_server_encrypt(struct tlsv1_server *conn, 28 int tlsv1_server_decrypt(struct tlsv1_server *conn, 31 int tlsv1_server_get_cipher(struct tlsv1_server *conn, char *buf, 33 int tlsv1_server_shutdown(struct tlsv1_server *conn); 34 int tlsv1_server_resumed(struct tlsv1_server *conn); 35 int tlsv1_server_get_keys(struct tlsv1_server *conn, struct tls_keys *keys) [all...] |
tlsv1_server.c | 24 void tlsv1_server_alert(struct tlsv1_server *conn, u8 level, u8 description) 26 conn->alert_level = level; 27 conn->alert_description = description; 31 int tlsv1_server_derive_keys(struct tlsv1_server *conn, 43 os_memcpy(seed, conn->client_random, TLS_RANDOM_LEN); 44 os_memcpy(seed + TLS_RANDOM_LEN, conn->server_random, 46 if (tls_prf(conn->rl.tls_version, 49 conn->master_secret, TLS_MASTER_SECRET_LEN)) { 55 conn->master_secret, TLS_MASTER_SECRET_LEN); 58 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN) 343 struct tlsv1_server *conn; local [all...] |
tlsv1_client_read.c | 22 static int tls_process_server_key_exchange(struct tlsv1_client *conn, u8 ct, 24 static int tls_process_certificate_request(struct tlsv1_client *conn, u8 ct, 26 static int tls_process_server_hello_done(struct tlsv1_client *conn, u8 ct, 30 static int tls_process_server_hello(struct tlsv1_client *conn, u8 ct, 41 tls_alert(conn, TLS_ALERT_LEVEL_FATAL, 56 tls_alert(conn, TLS_ALERT_LEVEL_FATAL, 82 tls_alert(conn, TLS_ALERT_LEVEL_FATAL, 90 conn->rl.tls_version = tls_version; 96 os_memcpy(conn->server_random, pos, TLS_RANDOM_LEN); 99 conn->server_random, TLS_RANDOM_LEN) [all...] |
tlsv1_server_read.c | 23 static int tls_process_client_key_exchange(struct tlsv1_server *conn, u8 ct, 25 static int tls_process_change_cipher_spec(struct tlsv1_server *conn, 30 static int tls_process_client_hello(struct tlsv1_server *conn, u8 ct, 43 tlsv1_server_alert(conn, TLS_ALERT_LEVEL_FATAL, 58 tlsv1_server_alert(conn, TLS_ALERT_LEVEL_FATAL, 80 conn->client_version = WPA_GET_BE16(pos); 82 conn->client_version >> 8, conn->client_version & 0xff); 83 if (conn->client_version < TLS_VERSION_1) { 86 conn->client_version >> 8 [all...] |
tlsv1_client.c | 24 void tls_alert(struct tlsv1_client *conn, u8 level, u8 description) 26 conn->alert_level = level; 27 conn->alert_description = description; 31 void tlsv1_client_free_dh(struct tlsv1_client *conn) 33 os_free(conn->dh_p); 34 os_free(conn->dh_g); 35 os_free(conn->dh_ys); 36 conn->dh_p = conn->dh_g = conn->dh_ys = NULL 443 struct tlsv1_client *conn; local [all...] |
tlsv1_server_write.c | 24 static size_t tls_server_cert_chain_der_len(struct tlsv1_server *conn) 29 cert = conn->cred->cert; 34 cert = x509_certificate_get_subject(conn->cred->trusted_certs, 42 static int tls_write_server_hello(struct tlsv1_server *conn, 56 WPA_PUT_BE32(conn->server_random, now.sec); 57 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) { 63 conn->server_random, TLS_RANDOM_LEN); 65 conn->session_id_len = TLS_SESSION_ID_MAX_LEN; 66 if (random_get_bytes(conn->session_id, conn->session_id_len)) [all...] |
tlsv1_client_write.c | 24 static size_t tls_client_cert_chain_der_len(struct tlsv1_client *conn) 29 if (conn->cred == NULL) 32 cert = conn->cred->cert; 37 cert = x509_certificate_get_subject(conn->cred->trusted_certs, 45 u8 * tls_send_client_hello(struct tlsv1_client *conn, size_t *out_len) 55 WPA_PUT_BE32(conn->client_random, now.sec); 56 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) { 62 conn->client_random, TLS_RANDOM_LEN); 64 len = 100 + conn->num_cipher_suites * 2 + conn->client_hello_ext_len [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/tls/ |
tlsv1_client.h | 25 void tlsv1_client_deinit(struct tlsv1_client *conn); 26 int tlsv1_client_established(struct tlsv1_client *conn); 27 int tlsv1_client_prf(struct tlsv1_client *conn, const char *label, 29 u8 * tlsv1_client_handshake(struct tlsv1_client *conn, 33 int tlsv1_client_encrypt(struct tlsv1_client *conn, 36 int tlsv1_client_decrypt(struct tlsv1_client *conn, 39 int tlsv1_client_get_cipher(struct tlsv1_client *conn, char *buf, 41 int tlsv1_client_shutdown(struct tlsv1_client *conn); 42 int tlsv1_client_resumed(struct tlsv1_client *conn); 43 int tlsv1_client_hello_ext(struct tlsv1_client *conn, int ext_type [all...] |
tlsv1_client.c | 30 void tls_alert(struct tlsv1_client *conn, u8 level, u8 description) 32 conn->alert_level = level; 33 conn->alert_description = description; 37 void tlsv1_client_free_dh(struct tlsv1_client *conn) 39 os_free(conn->dh_p); 40 os_free(conn->dh_g); 41 os_free(conn->dh_ys); 42 conn->dh_p = conn->dh_g = conn->dh_ys = NULL 335 struct tlsv1_client *conn; local [all...] |
tlsv1_server.h | 25 void tlsv1_server_deinit(struct tlsv1_server *conn); 26 int tlsv1_server_established(struct tlsv1_server *conn); 27 int tlsv1_server_prf(struct tlsv1_server *conn, const char *label, 29 u8 * tlsv1_server_handshake(struct tlsv1_server *conn, 31 int tlsv1_server_encrypt(struct tlsv1_server *conn, 34 int tlsv1_server_decrypt(struct tlsv1_server *conn, 37 int tlsv1_server_get_cipher(struct tlsv1_server *conn, char *buf, 39 int tlsv1_server_shutdown(struct tlsv1_server *conn); 40 int tlsv1_server_resumed(struct tlsv1_server *conn); 41 int tlsv1_server_get_keys(struct tlsv1_server *conn, struct tls_keys *keys) [all...] |
tlsv1_server.c | 30 void tlsv1_server_alert(struct tlsv1_server *conn, u8 level, u8 description) 32 conn->alert_level = level; 33 conn->alert_description = description; 37 int tlsv1_server_derive_keys(struct tlsv1_server *conn, 49 os_memcpy(seed, conn->client_random, TLS_RANDOM_LEN); 50 os_memcpy(seed + TLS_RANDOM_LEN, conn->server_random, 54 conn->master_secret, TLS_MASTER_SECRET_LEN)) { 60 conn->master_secret, TLS_MASTER_SECRET_LEN); 63 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); 64 os_memcpy(seed + TLS_RANDOM_LEN, conn->client_random, TLS_RANDOM_LEN) 310 struct tlsv1_server *conn; local [all...] |
tlsv1_client_read.c | 27 static int tls_process_server_key_exchange(struct tlsv1_client *conn, u8 ct, 29 static int tls_process_certificate_request(struct tlsv1_client *conn, u8 ct, 31 static int tls_process_server_hello_done(struct tlsv1_client *conn, u8 ct, 35 static int tls_process_server_hello(struct tlsv1_client *conn, u8 ct, 45 tls_alert(conn, TLS_ALERT_LEVEL_FATAL, 60 tls_alert(conn, TLS_ALERT_LEVEL_FATAL, 85 tls_alert(conn, TLS_ALERT_LEVEL_FATAL, 95 os_memcpy(conn->server_random, pos, TLS_RANDOM_LEN); 98 conn->server_random, TLS_RANDOM_LEN); 105 if (conn->session_id_len && conn->session_id_len == *pos & [all...] |
tlsv1_server_write.c | 28 static size_t tls_server_cert_chain_der_len(struct tlsv1_server *conn) 33 cert = conn->cred->cert; 38 cert = x509_certificate_get_subject(conn->cred->trusted_certs, 46 static int tls_write_server_hello(struct tlsv1_server *conn, 60 WPA_PUT_BE32(conn->server_random, now.sec); 61 if (os_get_random(conn->server_random + 4, TLS_RANDOM_LEN - 4)) { 67 conn->server_random, TLS_RANDOM_LEN); 69 conn->session_id_len = TLS_SESSION_ID_MAX_LEN; 70 if (os_get_random(conn->session_id, conn->session_id_len)) [all...] |
/external/wpa_supplicant_8/src/crypto/ |
tls_internal.c | 82 struct tls_connection *conn; local 85 conn = os_zalloc(sizeof(*conn)); 86 if (conn == NULL) 91 conn->client = tlsv1_client_init(); 92 if (conn->client == NULL) { 93 os_free(conn); 100 conn->server = tlsv1_server_init(global->server_cred); 101 if (conn->server == NULL) { 102 os_free(conn); [all...] |
tls_none.c | 37 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn) 42 int tls_connection_established(void *tls_ctx, struct tls_connection *conn) 48 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn) 54 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn, 74 int tls_connection_set_verify(void *tls_ctx, struct tls_connection *conn, 81 int tls_connection_get_keys(void *tls_ctx, struct tls_connection *conn, 88 int tls_connection_prf(void *tls_ctx, struct tls_connection *conn, 97 struct tls_connection *conn, 106 struct tls_connection *conn, 115 struct tls_connection *conn, [all...] |
tls_nss.c | 75 struct tls_connection *conn = (struct tls_connection *) fd->secret; local 80 if (conn->pull_buf == NULL) { 85 end = conn->pull_buf + conn->pull_buf_len; 86 if (end - conn->pull_buf_offset < amount) 87 amount = end - conn->pull_buf_offset; 88 os_memcpy(buf, conn->pull_buf_offset, amount); 89 conn->pull_buf_offset += amount; 90 if (conn->pull_buf_offset == end) { 92 os_free(conn->pull_buf) 107 struct tls_connection *conn = (struct tls_connection *) fd->secret; local 288 struct tls_connection *conn = arg; local 318 struct tls_connection *conn = client_data; local 326 struct tls_connection *conn; local [all...] |
tls_gnutls.c | 207 struct tls_connection *conn = (struct tls_connection *) ptr; local 209 if (conn->pull_buf == NULL) { 214 end = wpabuf_head_u8(conn->pull_buf) + wpabuf_len(conn->pull_buf); 215 if ((size_t) (end - conn->pull_buf_offset) < len) 216 len = end - conn->pull_buf_offset; 217 os_memcpy(buf, conn->pull_buf_offset, len); 218 conn->pull_buf_offset += len; 219 if (conn->pull_buf_offset == end) { 221 wpabuf_free(conn->pull_buf) 236 struct tls_connection *conn = (struct tls_connection *) ptr; local 306 struct tls_connection *conn; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/ |
tls_internal.c | 88 struct tls_connection *conn; local 91 conn = os_zalloc(sizeof(*conn)); 92 if (conn == NULL) 97 conn->client = tlsv1_client_init(); 98 if (conn->client == NULL) { 99 os_free(conn); 106 conn->server = tlsv1_server_init(global->server_cred); 107 if (conn->server == NULL) { 108 os_free(conn); [all...] |
tls_none.c | 44 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn) 49 int tls_connection_established(void *tls_ctx, struct tls_connection *conn) 55 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn) 61 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn, 81 int tls_connection_set_verify(void *tls_ctx, struct tls_connection *conn, 88 int tls_connection_set_ia(void *tls_ctx, struct tls_connection *conn, 95 int tls_connection_get_keys(void *tls_ctx, struct tls_connection *conn, 102 int tls_connection_prf(void *tls_ctx, struct tls_connection *conn, 110 u8 * tls_connection_handshake(void *tls_ctx, struct tls_connection *conn, 120 struct tls_connection *conn, [all...] |
tls_gnutls.c | 243 struct tls_connection *conn = (struct tls_connection *) ptr; local 245 if (conn->pull_buf == NULL) { 250 end = conn->pull_buf + conn->pull_buf_len; 251 if ((size_t) (end - conn->pull_buf_offset) < len) 252 len = end - conn->pull_buf_offset; 253 os_memcpy(buf, conn->pull_buf_offset, len); 254 conn->pull_buf_offset += len; 255 if (conn->pull_buf_offset == end) { 257 os_free(conn->pull_buf) 272 struct tls_connection *conn = (struct tls_connection *) ptr; local 332 struct tls_connection *conn; local [all...] |
/external/qemu/proxy/ |
proxy_http_rewriter.c | 370 RewriteConnection* conn = (RewriteConnection*)root; local 372 if (conn->slirp_fd >= 0) { 373 socket_close(conn->slirp_fd); 374 conn->slirp_fd = -1; 376 http_request_free(conn->request); 378 qemu_free(conn); 383 rewrite_connection_init( RewriteConnection* conn ) 385 HttpService* service = (HttpService*) conn->root->service; 386 ProxyConnection* root = conn->root; 388 conn->slirp_fd = -1 943 RewriteConnection* conn = (RewriteConnection*)root; local 996 RewriteConnection* conn = (RewriteConnection*)root; local 1154 RewriteConnection* conn; local [all...] |
proxy_common.c | 60 proxy_connection_init( ProxyConnection* conn, 68 conn->socket = socket; 69 conn->address = address[0]; 70 conn->service = service; 71 conn->next = NULL; 73 conn->conn_free = conn_free; 74 conn->conn_select = conn_select; 75 conn->conn_poll = conn_poll; 82 snprintf( conn->name, sizeof(conn->name) 286 ProxyConnection* conn = s_connections->next; local 342 ProxyConnection* conn = service->serv_connect( service->opaque, local 363 ProxyConnection* conn = s_connections->next; local 422 ProxyConnection* conn; local 445 ProxyConnection* conn = s_connections->next; local [all...] |
/libcore/luni/src/test/java/libcore/java/sql/ |
OldConnectionTest.java | 33 Statement statement = conn.createStatement(); 40 conn.close(); 48 // Scrolling on a forward only RS not allowed. conn.close() does not wrap up 55 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, 75 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, 96 st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, 118 st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, 141 st = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, 163 conn.close(); 167 conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, -1) [all...] |
/external/libnfc-nci/src/nfa/snep/ |
nfa_snep_act.c | 68 if ( (nfa_snep_cb.conn[xx].p_cback) 69 &&(nfa_snep_cb.conn[xx].local_sap == local_sap) 70 &&((remote_sap == NFA_SNEP_ANY_SAP) || (nfa_snep_cb.conn[xx].remote_sap == remote_sap)) 71 &&((nfa_snep_cb.conn[xx].flags & flags) == flags) ) 96 if (nfa_snep_cb.conn[xx].p_cback == NULL) 98 memset (&nfa_snep_cb.conn[xx], 0x00, sizeof (tNFA_SNEP_CONN)); 117 nfa_snep_cb.conn[xx].p_cback = NULL; 137 nfa_snep_cb.conn[dlink].p_ndef_buff = NULL; 139 LLCP_DisconnectReq (nfa_snep_cb.conn[dlink].local_sap, 140 nfa_snep_cb.conn[dlink].remote_sap, TRUE) [all...] |