Lines Matching refs:ssl
94 mbedtls_ssl_context ssl; in main() local
110 mbedtls_ssl_init( &ssl ); in main()
183 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
189 if( ( ret = mbedtls_ssl_set_hostname( &ssl, SERVER_NAME ) ) != 0 ) in main()
195 mbedtls_ssl_set_bio( &ssl, &server_fd, in main()
198 mbedtls_ssl_set_timer_cb( &ssl, &timer, mbedtls_timing_set_delay, in main()
209 do ret = mbedtls_ssl_handshake( &ssl ); in main()
229 if( ( flags = mbedtls_ssl_get_verify_result( &ssl ) ) != 0 ) in main()
251 do ret = mbedtls_ssl_write( &ssl, (unsigned char *) MESSAGE, len ); in main()
273 do ret = mbedtls_ssl_read( &ssl, buf, len ); in main()
308 do ret = mbedtls_ssl_close_notify( &ssl ); in main()
331 mbedtls_ssl_free( &ssl ); in main()