Searched refs:context_buf (Results 1 – 3 of 3) sorted by relevance
/third_party/mbedtls/programs/ssl/ |
D | ssl_client2.c | 725 unsigned char *context_buf = NULL; in main() local 2767 if( ( context_buf = mbedtls_calloc( 1, buf_len ) ) == NULL ) in main() 2776 if( ( ret = mbedtls_ssl_context_save( &ssl, context_buf, in main() 2796 mbedtls_base64_encode( NULL, 0, &b64_len, context_buf, buf_len ); in main() 2806 context_buf, buf_len ) ) != 0 ) in main() 2877 if( ( ret = mbedtls_ssl_context_load( &ssl, context_buf, in main() 2886 mbedtls_free( context_buf ); in main() 2887 context_buf = NULL; in main() 3037 if( context_buf != NULL ) in main() 3038 mbedtls_platform_zeroize( context_buf, context_buf_len ); in main() [all …]
|
D | ssl_server2.c | 1363 unsigned char *context_buf = NULL; in main() local 3760 if( ( context_buf = mbedtls_calloc( 1, buf_len ) ) == NULL ) in main() 3769 if( ( ret = mbedtls_ssl_context_save( &ssl, context_buf, in main() 3789 mbedtls_base64_encode( NULL, 0, &b64_len, context_buf, buf_len ); in main() 3799 context_buf, buf_len ) ) != 0 ) in main() 3891 if( ( ret = mbedtls_ssl_context_load( &ssl, context_buf, in main() 3900 mbedtls_free( context_buf ); in main() 3901 context_buf = NULL; in main() 3965 if( context_buf != NULL ) in main() 3966 mbedtls_platform_zeroize( context_buf, context_buf_len ); in main() [all …]
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_ssl.function | 1688 unsigned char *context_buf = NULL; 1905 context_buf = mbedtls_calloc( 1, context_buf_len ); 1906 TEST_ASSERT( context_buf != NULL ); 1908 TEST_ASSERT( mbedtls_ssl_context_save( &(server.ssl), context_buf, 1935 TEST_ASSERT( mbedtls_ssl_context_load( &( server.ssl ), context_buf, 2039 if( context_buf != NULL ) 2040 mbedtls_free( context_buf );
|