Lines Matching refs:res
489 u8 *res, *ad; in tls_connection_handshake2() local
497 res = tlsv1_client_handshake(conn->client, in tls_connection_handshake2()
501 if (res == NULL) in tls_connection_handshake2()
503 out = wpabuf_alloc_ext_data(res, res_len); in tls_connection_handshake2()
505 os_free(res); in tls_connection_handshake2()
532 u8 *res; in tls_connection_server_handshake() local
542 res = tlsv1_server_handshake(conn->server, wpabuf_head(in_data), in tls_connection_server_handshake()
544 if (res == NULL && tlsv1_server_established(conn->server)) in tls_connection_server_handshake()
546 if (res == NULL) in tls_connection_server_handshake()
548 out = wpabuf_alloc_ext_data(res, res_len); in tls_connection_server_handshake()
550 os_free(res); in tls_connection_server_handshake()
568 int res; in tls_connection_encrypt() local
572 res = tlsv1_client_encrypt(conn->client, wpabuf_head(in_data), in tls_connection_encrypt()
576 if (res < 0) { in tls_connection_encrypt()
580 wpabuf_put(buf, res); in tls_connection_encrypt()
587 int res; in tls_connection_encrypt() local
591 res = tlsv1_server_encrypt(conn->server, wpabuf_head(in_data), in tls_connection_encrypt()
595 if (res < 0) { in tls_connection_encrypt()
599 wpabuf_put(buf, res); in tls_connection_encrypt()
633 int res; in tls_connection_decrypt2() local
637 res = tlsv1_server_decrypt(conn->server, wpabuf_head(in_data), in tls_connection_decrypt2()
641 if (res < 0) { in tls_connection_decrypt2()
645 wpabuf_put(buf, res); in tls_connection_decrypt2()