Searched refs:larger_buf (Results 1 – 1 of 1) sorted by relevance
3744 unsigned char *larger_buf; in main() local3749 larger_buf = mbedtls_calloc(1, ori_len + extra_len + 1); in main()3750 if (larger_buf == NULL) { in main()3756 memset(larger_buf, 0, ori_len + extra_len); in main()3757 memcpy(larger_buf, buf, ori_len); in main()3760 ret = mbedtls_ssl_read(&ssl, larger_buf + ori_len, extra_len); in main()3768 larger_buf[ori_len + extra_len] = '\0'; in main()3771 (char *) larger_buf); in main()3775 if (larger_buf[ori_len + extra_len - 1] == '\n') { in main()3779 mbedtls_free(larger_buf); in main()