Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 25 of 191) sorted by relevance

12345678

/external/wpa_supplicant/
Dtls_gnutls.c239 struct tls_connection *conn = (struct tls_connection *) ptr; in tls_pull_func() local
241 if (conn->pull_buf == NULL) { in tls_pull_func()
246 end = conn->pull_buf + conn->pull_buf_len; in tls_pull_func()
247 if ((size_t) (end - conn->pull_buf_offset) < len) in tls_pull_func()
248 len = end - conn->pull_buf_offset; in tls_pull_func()
249 os_memcpy(buf, conn->pull_buf_offset, len); in tls_pull_func()
250 conn->pull_buf_offset += len; in tls_pull_func()
251 if (conn->pull_buf_offset == end) { in tls_pull_func()
253 os_free(conn->pull_buf); in tls_pull_func()
254 conn->pull_buf = conn->pull_buf_offset = NULL; in tls_pull_func()
[all …]
Dtlsv1_client.c90 static int tls_derive_keys(struct tlsv1_client *conn,
93 static int tls_process_server_key_exchange(struct tlsv1_client *conn, u8 ct,
95 static int tls_process_certificate_request(struct tlsv1_client *conn, u8 ct,
97 static int tls_process_server_hello_done(struct tlsv1_client *conn, u8 ct,
101 static void tls_alert(struct tlsv1_client *conn, u8 level, u8 description) in tls_alert() argument
103 conn->alert_level = level; in tls_alert()
104 conn->alert_description = description; in tls_alert()
108 static void tls_verify_hash_add(struct tlsv1_client *conn, const u8 *buf, in tls_verify_hash_add() argument
111 if (conn->verify_md5_client && conn->verify_sha1_client) { in tls_verify_hash_add()
112 crypto_hash_update(conn->verify_md5_client, buf, len); in tls_verify_hash_add()
[all …]
Dtls_internal.c72 struct tls_connection *conn; in tls_connection_init() local
74 conn = os_zalloc(sizeof(*conn)); in tls_connection_init()
75 if (conn == NULL) in tls_connection_init()
78 conn->client = tlsv1_client_init(); in tls_connection_init()
79 if (conn->client == NULL) { in tls_connection_init()
80 os_free(conn); in tls_connection_init()
84 return conn; in tls_connection_init()
88 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn) in tls_connection_deinit() argument
90 if (conn == NULL) in tls_connection_deinit()
92 tlsv1_client_deinit(conn->client); in tls_connection_deinit()
[all …]
Dtls_openssl.c569 struct tls_connection *conn = in ssl_info_cb() local
572 conn->read_alerts++; in ssl_info_cb()
574 conn->write_alerts++; in ssl_info_cb()
789 static int tls_engine_init(struct tls_connection *conn, const char *engine_id, in tls_engine_init() argument
808 conn->engine = ENGINE_by_id(engine_id); in tls_engine_init()
809 if (!conn->engine) { in tls_engine_init()
814 if (ENGINE_init(conn->engine) != 1) { in tls_engine_init()
822 if (ENGINE_ctrl_cmd_string(conn->engine, "PIN", pin, 0) == 0) { in tls_engine_init()
827 conn->private_key = ENGINE_load_private_key(conn->engine, in tls_engine_init()
829 if (!conn->private_key) { in tls_engine_init()
[all …]
Dtls_schannel.c124 struct tls_connection *conn; in tls_connection_init() local
126 conn = os_zalloc(sizeof(*conn)); in tls_connection_init()
127 if (conn == NULL) in tls_connection_init()
129 conn->start = 1; in tls_connection_init()
131 return conn; in tls_connection_init()
135 void tls_connection_deinit(void *ssl_ctx, struct tls_connection *conn) in tls_connection_deinit() argument
137 if (conn == NULL) in tls_connection_deinit()
140 os_free(conn); in tls_connection_deinit()
144 int tls_connection_established(void *ssl_ctx, struct tls_connection *conn) in tls_connection_established() argument
146 return conn ? conn->established : 0; in tls_connection_established()
[all …]
Dtls_none.c44 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn) in tls_connection_deinit() argument
49 int tls_connection_established(void *tls_ctx, struct tls_connection *conn) in tls_connection_established() argument
55 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn) in tls_connection_shutdown() argument
61 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn, in tls_connection_set_params() argument
81 int tls_connection_set_verify(void *tls_ctx, struct tls_connection *conn, in tls_connection_set_verify() argument
88 int tls_connection_set_ia(void *tls_ctx, struct tls_connection *conn, in tls_connection_set_ia() argument
95 int tls_connection_get_keys(void *tls_ctx, struct tls_connection *conn, in tls_connection_get_keys() argument
102 int tls_connection_prf(void *tls_ctx, struct tls_connection *conn, in tls_connection_prf() argument
110 u8 * tls_connection_handshake(void *tls_ctx, struct tls_connection *conn, in tls_connection_handshake() argument
120 struct tls_connection *conn, in tls_connection_server_handshake() argument
[all …]
Dtls.h153 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn);
161 int tls_connection_established(void *tls_ctx, struct tls_connection *conn);
174 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn);
192 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn,
224 int tls_connection_set_verify(void *tls_ctx, struct tls_connection *conn,
237 int tls_connection_set_ia(void *tls_ctx, struct tls_connection *conn,
247 int tls_connection_get_keys(void *tls_ctx, struct tls_connection *conn,
270 int tls_connection_prf(void *tls_ctx, struct tls_connection *conn,
304 u8 * tls_connection_handshake(void *tls_ctx, struct tls_connection *conn,
321 struct tls_connection *conn,
[all …]
Dtlsv1_client.h23 void tlsv1_client_deinit(struct tlsv1_client *conn);
24 int tlsv1_client_established(struct tlsv1_client *conn);
25 int tlsv1_client_prf(struct tlsv1_client *conn, const char *label,
27 u8 * tlsv1_client_handshake(struct tlsv1_client *conn,
30 int tlsv1_client_encrypt(struct tlsv1_client *conn,
33 int tlsv1_client_decrypt(struct tlsv1_client *conn,
36 int tlsv1_client_get_cipher(struct tlsv1_client *conn, char *buf,
38 int tlsv1_client_shutdown(struct tlsv1_client *conn);
39 int tlsv1_client_resumed(struct tlsv1_client *conn);
40 int tlsv1_client_hello_ext(struct tlsv1_client *conn, int ext_type,
[all …]
/external/ppp/pppd/plugins/rp-pppoe/
Ddiscovery.c81 packetIsForMe(PPPoEConnection *conn, PPPoEPacket *packet) in packetIsForMe() argument
86 if (memcmp(packet->ethHdr.h_dest, conn->myEth, ETH_ALEN)) return 0; in packetIsForMe()
89 if (!conn->useHostUniq) return 1; in packetIsForMe()
114 PPPoEConnection *conn = pc->conn; in parsePADOTags() local
120 if (conn->printACNames) { in parsePADOTags()
123 if (conn->acName && len == strlen(conn->acName) && in parsePADOTags()
124 !strncmp((char *) data, conn->acName, len)) { in parsePADOTags()
130 if (conn->printACNames && len > 0) { in parsePADOTags()
133 if (conn->serviceName && len == strlen(conn->serviceName) && in parsePADOTags()
134 !strncmp((char *) data, conn->serviceName, len)) { in parsePADOTags()
[all …]
Dplugin.c84 static PPPoEConnection *conn = NULL; variable
98 conn = malloc(sizeof(PPPoEConnection)); in PPPOEInitDevice()
99 if (!conn) { in PPPOEInitDevice()
102 memset(conn, 0, sizeof(PPPoEConnection)); in PPPOEInitDevice()
104 SET_STRING(conn->acName, acName); in PPPOEInitDevice()
107 SET_STRING(conn->serviceName, pppd_pppoe_service); in PPPOEInitDevice()
109 SET_STRING(conn->ifName, devnam); in PPPOEInitDevice()
110 conn->discoverySocket = -1; in PPPOEInitDevice()
111 conn->sessionSocket = -1; in PPPOEInitDevice()
112 conn->useHostUniq = 1; in PPPOEInitDevice()
[all …]
Dpppoe-discovery.c31 PPPoEConnection *conn; in main() local
33 conn = malloc(sizeof(PPPoEConnection)); in main()
34 if (!conn) in main()
37 memset(conn, 0, sizeof(PPPoEConnection)); in main()
42 conn->serviceName = xstrdup(optarg); in main()
45 conn->acName = xstrdup(optarg); in main()
48 conn->useHostUniq = 1; in main()
51 conn->debugFile = fopen(optarg, "w"); in main()
52 if (!conn->debugFile) { in main()
57 fprintf(conn->debugFile, "pppoe-discovery %s\n", VERSION); in main()
[all …]
Dcommon.c396 sendPADT(PPPoEConnection *conn, char const *msg) in sendPADT() argument
404 if (!conn->session) return; in sendPADT()
407 if (conn->discoverySocket < 0) return; in sendPADT()
409 memcpy(packet.ethHdr.h_dest, conn->peerEth, ETH_ALEN); in sendPADT()
410 memcpy(packet.ethHdr.h_source, conn->myEth, ETH_ALEN); in sendPADT()
416 packet.session = conn->session; in sendPADT()
420 conn->session = 0; in sendPADT()
423 if (conn->useHostUniq) { in sendPADT()
447 if (conn->cookie.type) { in sendPADT()
449 ntohs(conn->cookie.length) + TAG_HDR_SIZE); in sendPADT()
[all …]
/external/qemu/proxy/
Dproxy_common.c59 proxy_connection_init( ProxyConnection* conn, in proxy_connection_init() argument
67 conn->socket = socket; in proxy_connection_init()
68 conn->address = address[0]; in proxy_connection_init()
69 conn->service = service; in proxy_connection_init()
70 conn->next = NULL; in proxy_connection_init()
72 conn->conn_free = conn_free; in proxy_connection_init()
73 conn->conn_select = conn_select; in proxy_connection_init()
74 conn->conn_poll = conn_poll; in proxy_connection_init()
81 snprintf( conn->name, sizeof(conn->name), in proxy_connection_init()
87 conn->name[sizeof(conn->name)-1] = 0; in proxy_connection_init()
[all …]
Dproxy_http_rewriter.c362 RewriteConnection* conn = (RewriteConnection*)root; in rewrite_connection_free() local
364 if (conn->slirp_fd >= 0) { in rewrite_connection_free()
365 socket_close(conn->slirp_fd); in rewrite_connection_free()
366 conn->slirp_fd = -1; in rewrite_connection_free()
368 http_request_free(conn->request); in rewrite_connection_free()
370 qemu_free(conn); in rewrite_connection_free()
375 rewrite_connection_init( RewriteConnection* conn ) in rewrite_connection_init() argument
377 HttpService* service = (HttpService*) conn->root->service; in rewrite_connection_init()
378 ProxyConnection* root = conn->root; in rewrite_connection_init()
380 conn->slirp_fd = -1; in rewrite_connection_init()
[all …]
Dproxy_http_connector.c50 connection_init( Connection* conn ) in connection_init() argument
52 HttpService* service = (HttpService*) conn->root->service; in connection_init()
53 ProxyConnection* root = conn->root; in connection_init()
64 conn->state = STATE_SEND_HEADER; in connection_init()
69 conn->state = STATE_CONNECTING; in connection_init()
86 Connection* conn = (Connection*)root; in connection_select() local
88 switch (conn->state) { in connection_select()
110 Connection* conn = (Connection*)root; in connection_poll() local
116 switch (conn->state) in connection_poll()
120 conn->state = STATE_SEND_HEADER; in connection_poll()
[all …]
Dproxy_int.h56 typedef void (*ProxyConnectionFreeFunc) ( ProxyConnection* conn );
59 typedef void (*ProxyConnectionSelectFunc) ( ProxyConnection* conn,
63 typedef void (*ProxyConnectionPollFunc) ( ProxyConnection* conn,
96 proxy_connection_init( ProxyConnection* conn,
105 proxy_connection_done( ProxyConnection* conn );
112 proxy_connection_free( ProxyConnection* conn,
139 proxy_connection_send( ProxyConnection* conn, int fd );
150 proxy_connection_receive( ProxyConnection* conn, int fd, int wanted );
161 proxy_connection_receive_line( ProxyConnection* conn, int fd );
165 proxy_connection_rewind( ProxyConnection* conn );
/external/apache-http/src/org/apache/http/impl/conn/
DAbstractClientConnAdapter.java31 package org.apache.http.impl.conn;
48 import org.apache.http.conn.OperatedClientConnection;
49 import org.apache.http.conn.ManagedClientConnection;
50 import org.apache.http.conn.ClientConnectionManager;
114 OperatedClientConnection conn) { in AbstractClientConnAdapter() argument
118 wrappedConnection = conn; in AbstractClientConnAdapter()
169 OperatedClientConnection conn = getWrappedConnection(); in isOpen() local
170 if (conn == null) in isOpen()
173 return conn.isOpen(); in isOpen()
181 OperatedClientConnection conn = getWrappedConnection(); in isStale()
[all …]
DDefaultClientConnectionOperator.java32 package org.apache.http.impl.conn;
44 import org.apache.http.conn.HttpHostConnectException;
45 import org.apache.http.conn.OperatedClientConnection;
46 import org.apache.http.conn.ClientConnectionOperator;
47 import org.apache.http.conn.scheme.LayeredSocketFactory;
48 import org.apache.http.conn.scheme.Scheme;
49 import org.apache.http.conn.scheme.SchemeRegistry;
50 import org.apache.http.conn.scheme.SocketFactory;
96 public void openConnection(OperatedClientConnection conn, in openConnection() argument
103 if (conn == null) { in openConnection()
[all …]
/external/bluetooth/bluez/test/
Dagent.c50 static DBusHandlerResult agent_filter(DBusConnection *conn, in agent_filter() argument
77 static DBusHandlerResult request_pincode_message(DBusConnection *conn, in request_pincode_message() argument
111 dbus_connection_send(conn, reply, NULL); in request_pincode_message()
113 dbus_connection_flush(conn); in request_pincode_message()
120 static DBusHandlerResult request_passkey_message(DBusConnection *conn, in request_passkey_message() argument
158 dbus_connection_send(conn, reply, NULL); in request_passkey_message()
160 dbus_connection_flush(conn); in request_passkey_message()
167 static DBusHandlerResult cancel_message(DBusConnection *conn, in cancel_message() argument
185 dbus_connection_send(conn, reply, NULL); in cancel_message()
187 dbus_connection_flush(conn); in cancel_message()
[all …]
/external/bluetooth/bluez/src/
Ddbus-common.c58 DBusConnection *conn = get_dbus_connection(); in system_bus_reconnect() local
64 if (conn) { in system_bus_reconnect()
65 if (dbus_connection_get_is_connected(conn)) in system_bus_reconnect()
109 static void disconnect_callback(DBusConnection *conn, void *user_data) in disconnect_callback() argument
119 DBusConnection *conn = get_dbus_connection(); in hcid_dbus_unregister() local
124 if (!conn || !dbus_connection_get_is_connected(conn)) in hcid_dbus_unregister()
128 if (!dbus_connection_list_registered(conn, "/", &children)) in hcid_dbus_unregister()
153 DBusConnection *conn = get_dbus_connection(); in hcid_dbus_exit() local
155 if (!conn || !dbus_connection_get_is_connected(conn)) in hcid_dbus_exit()
158 manager_cleanup(conn, "/"); in hcid_dbus_exit()
[all …]
/external/bluetooth/bluez/gdbus/
Dmainloop.c53 DBusConnection *conn; member
67 static DBusHandlerResult disconnect_filter(DBusConnection *conn, in disconnect_filter() argument
75 dc_data->disconnect_cb(conn, dc_data->user_data); in disconnect_filter()
76 dbus_connection_unref(conn); in disconnect_filter()
109 if (dbus_connection_get_dispatch_status(info->conn) == DBUS_DISPATCH_DATA_REMAINS) in watch_func()
110 g_timeout_add(DISPATCH_TIMEOUT, message_dispatch_cb, info->conn); in watch_func()
118 DBusConnection *conn = data; in add_watch() local
129 info->conn = dbus_connection_ref(conn); in add_watch()
152 dbus_connection_unref(info->conn); in remove_watch()
220 static void dispatch_status_cb(DBusConnection *conn, in dispatch_status_cb() argument
[all …]
/external/apache-http/src/org/apache/http/protocol/
DHttpRequestExecutor.java105 final HttpClientConnection conn, in execute() argument
111 if (conn == null) { in execute()
119 HttpResponse response = doSendRequest(request, conn, context); in execute()
121 response = doReceiveResponse(request, conn, context); in execute()
125 conn.close(); in execute()
128 conn.close(); in execute()
131 conn.close(); in execute()
185 final HttpClientConnection conn, in doSendRequest() argument
191 if (conn == null) { in doSendRequest()
201 conn.sendRequestHeader(request); in doSendRequest()
[all …]
/external/dbus/test/name-test/
Dtest-names.c72 check_connection (DBusConnection *conn, in check_connection() argument
106 reply = dbus_connection_send_with_reply_and_block (conn, in check_connection()
197 match_acquired_or_lost_signal (DBusConnection *conn, const char *member, const char *name) in match_acquired_or_lost_signal() argument
205 _dbus_connection_lock (conn); in match_acquired_or_lost_signal()
206 _dbus_connection_do_iteration_unlocked (conn, in match_acquired_or_lost_signal()
211 _dbus_connection_unlock (conn); in match_acquired_or_lost_signal()
212 msg = dbus_connection_pop_message (conn); in match_acquired_or_lost_signal()
253 match_name_owner_changed_signal (DBusConnection *conn, const char *bus_name, const char *lost_name,… in match_name_owner_changed_signal() argument
260 _dbus_connection_lock (conn); in match_name_owner_changed_signal()
261 _dbus_connection_do_iteration_unlocked (conn, in match_name_owner_changed_signal()
[all …]
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DThreadSafeClientConnManager.java31 package org.apache.http.impl.conn.tsccm;
38 import org.apache.http.conn.routing.HttpRoute;
39 import org.apache.http.conn.scheme.SchemeRegistry;
40 import org.apache.http.conn.ClientConnectionManager;
41 import org.apache.http.conn.ClientConnectionOperator;
42 import org.apache.http.conn.ClientConnectionRequest;
43 import org.apache.http.conn.ConnectionPoolTimeoutException;
44 import org.apache.http.conn.ManagedClientConnection;
45 import org.apache.http.conn.OperatedClientConnection;
47 import org.apache.http.impl.conn.DefaultClientConnectionOperator;
[all …]
/external/webkit/V8Binding/v8/src/
Ddebug-agent.cc204 SmartPointer<char> DebuggerAgentUtil::ReceiveMessage(const Socket* conn) { in ReceiveMessage() argument
219 received = conn->Receive(&c, 1); in ReceiveMessage()
281 received = ReceiveAll(conn, buffer, content_length); in ReceiveMessage()
292 bool DebuggerAgentUtil::SendConnectMessage(const Socket* conn, in SendConnectMessage() argument
302 ok = conn->Send(buffer, len); in SendConnectMessage()
307 ok = conn->Send(buffer, len); in SendConnectMessage()
312 ok = conn->Send(buffer, len); in SendConnectMessage()
318 ok = conn->Send(buffer, len); in SendConnectMessage()
324 ok = conn->Send(buffer, len); in SendConnectMessage()
329 ok = conn->Send(buffer, len); in SendConnectMessage()
[all …]

12345678