Searched refs:b64_buf (Results 1 – 3 of 3) sorted by relevance
/third_party/mbedtls/programs/ssl/ |
D | ssl_context_info.c | 1024 uint8_t *b64_buf = NULL; in main() local 1036 b64_buf = malloc( SSL_INIT_LEN ); in main() 1039 if( NULL == b64_buf || NULL == ssl_buf ) in main() 1049 size_t b64_len = read_next_b64_code( &b64_buf, &b64_max_len ); in main() 1073 print_b64( b64_buf, b64_len ); in main() 1075 ret = mbedtls_base64_decode( ssl_buf, ssl_max_len, &ssl_len, b64_buf, b64_len ); in main() 1078 mbedtls_strerror( ret, (char*) b64_buf, b64_max_len ); in main() 1079 printf_err( "base64 code cannot be decoded - %s\n", b64_buf ); in main() 1099 free( b64_buf ); in main()
|
D | ssl_client2.c | 2791 uint8_t *b64_buf; in main() local 2798 if( ( b64_buf = mbedtls_calloc( 1, b64_len ) ) == NULL ) in main() 2805 if( ( ret = mbedtls_base64_encode( b64_buf, b64_len, &b64_len, in main() 2810 mbedtls_free( b64_buf ); in main() 2818 mbedtls_free( b64_buf ); in main() 2822 if( b64_len != fwrite( b64_buf, 1, b64_len, b64_file ) ) in main() 2826 mbedtls_free( b64_buf ); in main() 2831 mbedtls_free( b64_buf ); in main()
|
D | ssl_server2.c | 3784 uint8_t *b64_buf; in main() local 3791 if( ( b64_buf = mbedtls_calloc( 1, b64_len ) ) == NULL ) in main() 3798 if( ( ret = mbedtls_base64_encode( b64_buf, b64_len, &b64_len, in main() 3803 mbedtls_free( b64_buf ); in main() 3811 mbedtls_free( b64_buf ); in main() 3815 if( b64_len != fwrite( b64_buf, 1, b64_len, b64_file ) ) in main() 3819 mbedtls_free( b64_buf ); in main() 3824 mbedtls_free( b64_buf ); in main()
|