Searched refs:b64_buf (Results 1 – 3 of 3) sorted by relevance
/third_party/mbedtls/programs/ssl/ |
D | ssl_context_info.c | 930 uint8_t *b64_buf = NULL; in main() local 941 b64_buf = malloc(SSL_INIT_LEN); in main() 944 if (NULL == b64_buf || NULL == ssl_buf) { in main() 952 size_t b64_len = read_next_b64_code(&b64_buf, &b64_max_len); in main() 973 print_b64(b64_buf, b64_len); in main() 975 ret = mbedtls_base64_decode(ssl_buf, ssl_max_len, &ssl_len, b64_buf, b64_len); in main() 977 mbedtls_strerror(ret, (char *) b64_buf, b64_max_len); in main() 978 printf_err("base64 code cannot be decoded - %s\n", b64_buf); in main() 995 free(b64_buf); in main()
|
D | ssl_client2.c | 2825 uint8_t *b64_buf; in main() local 2832 if ((b64_buf = mbedtls_calloc(1, b64_len)) == NULL) { in main() 2838 if ((ret = mbedtls_base64_encode(b64_buf, b64_len, &b64_len, in main() 2842 mbedtls_free(b64_buf); in main() 2849 mbedtls_free(b64_buf); in main() 2853 if (b64_len != fwrite(b64_buf, 1, b64_len, b64_file)) { in main() 2856 mbedtls_free(b64_buf); in main() 2861 mbedtls_free(b64_buf); in main()
|
D | ssl_server2.c | 4001 uint8_t *b64_buf; in main() local 4008 if ((b64_buf = mbedtls_calloc(1, b64_len)) == NULL) { in main() 4014 if ((ret = mbedtls_base64_encode(b64_buf, b64_len, &b64_len, in main() 4018 mbedtls_free(b64_buf); in main() 4025 mbedtls_free(b64_buf); in main() 4029 if (b64_len != fwrite(b64_buf, 1, b64_len, b64_file)) { in main() 4032 mbedtls_free(b64_buf); in main() 4037 mbedtls_free(b64_buf); in main()
|