Lines Matching full:wolfssl
2 * SSL/TLS interface functions for wolfSSL TLS case
17 /* wolfSSL includes */
18 #include <wolfssl/options.h>
19 #include <wolfssl/ssl.h>
20 #include <wolfssl/error-ssl.h>
21 #include <wolfssl/wolfcrypt/asn.h>
22 #include <wolfssl/openssl/x509v3.h>
26 #include <wolfssl/wolfcrypt/aes.h>
30 #include <wolfssl/wolfcrypt/fips_test.h>
50 /* tls input data for wolfSSL Read Callback */
56 /* tls output data for wolfSSL Write Callback */
74 /* wolfssl tls_connection */
77 WOLFSSL *ssl;
160 /* wolfSSL I/O Receive CallBack */
161 static int wolfssl_receive_cb(WOLFSSL *ssl, char *buf, int sz, void *ctx) in wolfssl_receive_cb()
182 /* wolfSSL I/O Send CallBack */
183 static int wolfssl_send_cb(WOLFSSL *ssl, char *buf, int sz, void *ctx) in wolfssl_send_cb()
212 "wolfSSL: Free application session data %p (sess %p)", in remove_session_cb()
242 wpa_printf(MSG_DEBUG, "wolfSSL log:%s", log_message); in wolfSSL_logging_cb()
267 static int handle_ciphersuites(WOLFSSL_CTX *ssl_ctx, WOLFSSL *ssl, in handle_ciphersuites()
322 wpa_printf(MSG_DEBUG, "wolfSSL: cipher suites for %s", in handle_ciphersuites()
324 wpa_printf(MSG_DEBUG, "wolfSSL: openssl_ciphers: %s", in handle_ciphersuites()
326 wpa_printf(MSG_DEBUG, "wolfSSL: cipher suites: %s", in handle_ciphersuites()
328 wpa_printf(MSG_DEBUG, "wolfSSL: sigalgs: %s", in handle_ciphersuites()
330 wpa_printf(MSG_DEBUG, "wolfSSL: key size: %d", key_sz); in handle_ciphersuites()
337 "wolfSSL: Failed to set cipher string '%s'", in handle_ciphersuites()
348 "wolfSSL: Failed to set sigalgs '%s'", in handle_ciphersuites()
362 "wolfSSL: Failed to set min key size"); in handle_ciphersuites()
377 "wolfSSL: Failed to set min ecc key size"); in handle_ciphersuites()
386 wpa_printf(MSG_ERROR, "wolfSSL: Failed to set curves"); in handle_ciphersuites()
454 wpa_printf(MSG_INFO, "wolfssl: Error setting ciphersuites"); in tls_init()
1041 "wolfSSL: Matching fields: '%s' '%s' '%s'", field, in match_dn_field()
1056 "wolfSSL: cert does not contain entry for '%s'", in match_dn_field()
1090 "wolfSSL: Unknown field '%s' in check_cert_subject", in get_value_from_field()
1099 "wolfSSL: No support for multiple DN's in check_cert_subject"); in get_value_from_field()
1105 "wolfSSL: Only %d DN's are supported in check_cert_subject", in get_value_from_field()
1114 "wolfSSL: Distinguished Name field '%s' value is not defined in check_cert_subject", in get_value_from_field()
1143 "wolfSSL: Too long DN matching field value in '%s'", in tls_match_dn_field()
1151 wpa_printf(MSG_INFO, "wolfSSL: No match for DN '%s'", in tls_match_dn_field()
1219 wpa_printf(MSG_DEBUG, "wolfSSL: Certificate Policy %s", buf); in wolfssl_cert_tod()
1332 WOLFSSL *ssl; in tls_verify_cb()
1341 wpa_printf(MSG_DEBUG, "wolfSSL: No Cert"); in tls_verify_cb()
1354 wpa_printf(MSG_DEBUG, "wolfSSL: No ex_data"); in tls_verify_cb()
1380 "wolfSSL: Ignore certificate validity time mismatch"); in tls_verify_cb()
1397 "wolfSSL: Could not fetch server certificate data"); in tls_verify_cb()
1417 "wolfSSL: Ignore validation issues for a pinned server certificate"); in tls_verify_cb()
1490 "wolfSSL: Reject server certificate on probe-only run"); in tls_verify_cb()
1522 "wolfSSL: Probe for server certificate chain"); in tls_connection_ca_cert()
1534 "wolfSSL: Unsupported ca_cert hash value '%s'", in tls_connection_ca_cert()
1541 "wolfSSL: Unexpected SHA256 hash length in ca_cert '%s'", in tls_connection_ca_cert()
1547 "wolfSSL: Invalid SHA256 hash value in ca_cert '%s'", in tls_connection_ca_cert()
1553 "wolfSSL: Checking only server certificate match"); in tls_connection_ca_cert()
1608 static void tls_set_conn_flags(WOLFSSL *ssl, unsigned int flags) in tls_set_conn_flags()
1670 wpa_printf(MSG_INFO, "wolfssl: Error setting ciphersuites"); in tls_connection_set_params()
1677 wpa_printf(MSG_INFO, "wolfSSL: Failed to set ECDH curves '%s'", in tls_connection_set_params()
1712 "wolfSSL: No OCSP support included - reject configuration"); in tls_connection_set_params()
1717 "wolfSSL: No OCSP support included - allow optional OCSP case to continue"); in tls_connection_set_params()
1844 "wolfSSL: OCSP status callback - no response configured"); in ocsp_status_cb()
1852 "wolfSSL: OCSP status callback - could not read response file"); in ocsp_status_cb()
1856 "wolfSSL: OCSP status callback - send cached response"); in ocsp_status_cb()
1921 wpa_printf(MSG_INFO, "wolfssl: Error setting ciphersuites"); in tls_global_set_params()
1928 wpa_printf(MSG_INFO, "wolfSSL: Failed to set ECDH curves '%s'", in tls_global_set_params()
1938 "wolfSSL: wolfSSL_CTX_UseSessionTicket failed"); in tls_global_set_params()
1952 "wolfSSL: wolfSSL_CTX_UseOCSPStapling() failed"); in tls_global_set_params()
1960 "wolfSSL: wolfSSL_CTX_UseOCSPStapling() failed"); in tls_global_set_params()
1967 "wolfSSL: wolfSSL_EnableOCSPStapling() failed"); in tls_global_set_params()
1976 "wolfSSL: wolfSSL_CTX_SetOCSP_OverrideURL() failed"); in tls_global_set_params()
1984 "wolfSSL: wolfSSL_CTX_SetOCSP_Cb() failed"); in tls_global_set_params()
2178 "wolfSSL: Handshake finished - resumed=%d", in wolfssl_connection_handshake()
2334 "wolfssl: Cipher suite configuration failed"); in tls_connection_set_cipher_list()
2340 wpa_printf(MSG_DEBUG, "wolfssl: Sigalg configuration failed"); in tls_connection_set_cipher_list()
2372 /* no empty fragments in wolfSSL for now */ in tls_connection_enable_workaround()
2410 return os_snprintf(buf, buf_len, "wolfSSL build=%s run=%s", in tls_get_library_version()
2434 WOLFSSL *ssl; in tls_connection_get_random()
2483 WOLFSSL *ssl; in tls_connection_get_eap_fast_key()
2519 "wolfSSL: Can't use sha1_md5 in FIPS build"); in tls_connection_get_eap_fast_key()
2556 static int tls_sess_sec_cb(WOLFSSL *s, void *secret, int *secret_len, void *arg) in tls_sess_sec_cb()
2619 "wolfSSL: Success data accepted for resumed session"); in tls_connection_set_success_data_resumed()
2633 "wolfSSL: Removed cached session to disable session resumption"); in tls_connection_remove_session()
2676 wpa_printf(MSG_DEBUG, "wolfSSL: Set success data"); in tls_connection_set_success_data()
2681 "wolfSSL: No session found for success data"); in tls_connection_set_success_data()
2687 wpa_printf(MSG_DEBUG, "wolfSSL: Replacing old success data %p", in tls_connection_set_success_data()
2694 wpa_printf(MSG_DEBUG, "wolfSSL: Stored success data %p", data); in tls_connection_set_success_data()
2699 wpa_printf(MSG_INFO, "wolfSSL: Failed to store success data"); in tls_connection_set_success_data()
2709 wpa_printf(MSG_DEBUG, "wolfSSL: Get success data"); in tls_connection_get_success_data()