Home
last modified time | relevance | path

Searched refs:context_buf (Results 1 – 3 of 3) sorted by relevance

/mbedtls-latest/programs/ssl/
Dssl_client2.c848 unsigned char *context_buf = NULL; in main() local
2840 if ((context_buf = mbedtls_calloc(1, buf_len)) == NULL) { in main()
2848 if ((ret = mbedtls_ssl_context_save(&ssl, context_buf, in main()
2866 mbedtls_base64_encode(NULL, 0, &b64_len, context_buf, buf_len); in main()
2875 context_buf, buf_len)) != 0) { in main()
2941 if ((ret = mbedtls_ssl_context_load(&ssl, context_buf, in main()
2949 mbedtls_free(context_buf); in main()
2950 context_buf = NULL; in main()
3152 if (context_buf != NULL) { in main()
3153 mbedtls_platform_zeroize(context_buf, context_buf_len); in main()
[all …]
Dssl_server2.c1582 unsigned char *context_buf = NULL; in main() local
4025 if ((context_buf = mbedtls_calloc(1, buf_len)) == NULL) { in main()
4033 if ((ret = mbedtls_ssl_context_save(&ssl, context_buf, in main()
4051 mbedtls_base64_encode(NULL, 0, &b64_len, context_buf, buf_len); in main()
4060 context_buf, buf_len)) != 0) { in main()
4147 if ((ret = mbedtls_ssl_context_load(&ssl, context_buf, in main()
4155 mbedtls_free(context_buf); in main()
4156 context_buf = NULL; in main()
4226 if (context_buf != NULL) { in main()
4227 mbedtls_platform_zeroize(context_buf, context_buf_len); in main()
[all …]
/mbedtls-latest/tests/src/test_helpers/
Dssl_helpers.c2038 unsigned char *context_buf = NULL; in mbedtls_test_ssl_perform_handshake() local
2236 context_buf = mbedtls_calloc(1, context_buf_len); in mbedtls_test_ssl_perform_handshake()
2237 TEST_ASSERT(context_buf != NULL); in mbedtls_test_ssl_perform_handshake()
2239 TEST_ASSERT(mbedtls_ssl_context_save(&(server.ssl), context_buf, in mbedtls_test_ssl_perform_handshake()
2268 TEST_ASSERT(mbedtls_ssl_context_load(&(server.ssl), context_buf, in mbedtls_test_ssl_perform_handshake()
2373 if (context_buf != NULL) { in mbedtls_test_ssl_perform_handshake()
2374 mbedtls_free(context_buf); in mbedtls_test_ssl_perform_handshake()