Home
last modified time | relevance | path

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

/openthread-latest/third_party/mbedtls/repo/programs/ssl/
Dssl_client2.c847 unsigned char *context_buf = NULL; in main() local
2813 if ((context_buf = mbedtls_calloc(1, buf_len)) == NULL) { in main()
2821 if ((ret = mbedtls_ssl_context_save(&ssl, context_buf, in main()
2839 mbedtls_base64_encode(NULL, 0, &b64_len, context_buf, buf_len); in main()
2848 context_buf, buf_len)) != 0) { in main()
2914 if ((ret = mbedtls_ssl_context_load(&ssl, context_buf, in main()
2922 mbedtls_free(context_buf); in main()
2923 context_buf = NULL; in main()
3125 if (context_buf != NULL) { in main()
3126 mbedtls_platform_zeroize(context_buf, context_buf_len); in main()
[all …]
Dssl_server2.c1581 unsigned char *context_buf = NULL; in main() local
4015 if ((context_buf = mbedtls_calloc(1, buf_len)) == NULL) { in main()
4023 if ((ret = mbedtls_ssl_context_save(&ssl, context_buf, in main()
4041 mbedtls_base64_encode(NULL, 0, &b64_len, context_buf, buf_len); in main()
4050 context_buf, buf_len)) != 0) { in main()
4137 if ((ret = mbedtls_ssl_context_load(&ssl, context_buf, in main()
4145 mbedtls_free(context_buf); in main()
4146 context_buf = NULL; in main()
4216 if (context_buf != NULL) { in main()
4217 mbedtls_platform_zeroize(context_buf, context_buf_len); in main()
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/src/test_helpers/
Dssl_helpers.c2019 unsigned char *context_buf = NULL; in mbedtls_test_ssl_perform_handshake() local
2217 context_buf = mbedtls_calloc(1, context_buf_len); in mbedtls_test_ssl_perform_handshake()
2218 TEST_ASSERT(context_buf != NULL); in mbedtls_test_ssl_perform_handshake()
2220 TEST_ASSERT(mbedtls_ssl_context_save(&(server.ssl), context_buf, in mbedtls_test_ssl_perform_handshake()
2249 TEST_ASSERT(mbedtls_ssl_context_load(&(server.ssl), context_buf, in mbedtls_test_ssl_perform_handshake()
2354 if (context_buf != NULL) { in mbedtls_test_ssl_perform_handshake()
2355 mbedtls_free(context_buf); in mbedtls_test_ssl_perform_handshake()