Lines Matching refs:ssl
609 int sni_callback( void *p_info, mbedtls_ssl_context *ssl, in sni_callback() argument
620 mbedtls_ssl_set_hs_ca_chain( ssl, cur->ca, cur->crl ); in sni_callback()
623 mbedtls_ssl_set_hs_authmode( ssl, cur->authmode ); in sni_callback()
625 return( mbedtls_ssl_set_hs_own_cert( ssl, cur->cert, cur->key ) ); in sni_callback()
746 int psk_callback( void *p_info, mbedtls_ssl_context *ssl, in psk_callback() argument
756 return( mbedtls_ssl_set_hs_psk( ssl, cur->key, cur->key_len ) ); in psk_callback()
799 mbedtls_ssl_context ssl; in main() local
848 mbedtls_ssl_init( &ssl ); in main()
1828 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
1835 mbedtls_ssl_set_bio( &ssl, &client_fd, my_send, my_recv, NULL ); in main()
1837 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, in main()
1841 mbedtls_ssl_set_timer_cb( &ssl, &timer, mbedtls_timing_set_delay, in main()
1874 mbedtls_ssl_session_reset( &ssl ); in main()
1913 if( ( ret = mbedtls_ssl_set_client_transport_id( &ssl, in main()
1926 if( ( ret = mbedtls_ssl_set_hs_ecjpake_password( &ssl, in main()
1945 do ret = mbedtls_ssl_handshake( &ssl ); in main()
1963 flags = mbedtls_ssl_get_verify_result( &ssl ); in main()
1976 mbedtls_ssl_get_version( &ssl ), mbedtls_ssl_get_ciphersuite( &ssl ) ); in main()
1979 if( ( ret = mbedtls_ssl_get_record_expansion( &ssl ) ) >= 0 ) in main()
1986 (unsigned int) mbedtls_ssl_get_max_frag_len( &ssl ) ); in main()
1992 const char *alp = mbedtls_ssl_get_alpn_protocol( &ssl ); in main()
2004 if( ( flags = mbedtls_ssl_get_verify_result( &ssl ) ) != 0 ) in main()
2017 if( mbedtls_ssl_get_peer_cert( &ssl ) != NULL ) in main()
2023 mbedtls_ssl_get_peer_cert( &ssl ) ); in main()
2049 ret = mbedtls_ssl_read( &ssl, buf, len ); in main()
2075 if( mbedtls_ssl_get_bytes_avail( &ssl ) == 0 ) in main()
2092 extra_len = (int) mbedtls_ssl_get_bytes_avail( &ssl ); in main()
2106 ret = mbedtls_ssl_read( &ssl, larger_buf + ori_len, extra_len ); in main()
2108 mbedtls_ssl_get_bytes_avail( &ssl ) != 0 ) in main()
2141 do ret = mbedtls_ssl_read( &ssl, buf, len ); in main()
2176 while( ( ret = mbedtls_ssl_renegotiate( &ssl ) ) != 0 ) in main()
2197 mbedtls_ssl_get_ciphersuite( &ssl ) ); in main()
2203 while( ( ret = mbedtls_ssl_write( &ssl, buf + written, len - written ) ) in main()
2223 do ret = mbedtls_ssl_write( &ssl, buf, len ); in main()
2254 do ret = mbedtls_ssl_close_notify( &ssl ); in main()
2301 mbedtls_ssl_free( &ssl ); in main()