Lines Matching refs:ssl
91 mbedtls_ssl_context ssl; in main() local
103 mbedtls_ssl_init( &ssl ); in main()
177 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
183 if( ( ret = mbedtls_ssl_set_hostname( &ssl, "mbed TLS Server 1" ) ) != 0 ) in main()
189 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
197 while( ( ret = mbedtls_ssl_handshake( &ssl ) ) != 0 ) in main()
214 if( ( flags = mbedtls_ssl_get_verify_result( &ssl ) ) != 0 ) in main()
235 while( ( ret = mbedtls_ssl_write( &ssl, buf, len ) ) <= 0 ) in main()
257 ret = mbedtls_ssl_read( &ssl, buf, len ); in main()
282 mbedtls_ssl_close_notify( &ssl ); in main()
298 mbedtls_ssl_free( &ssl ); in main()