]> git.ipfire.org Git - thirdparty/curl.git/commit
rustls: allocate a buffer for TLS data.
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>
Sun, 14 Mar 2021 01:54:43 +0000 (17:54 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 16 Mar 2021 09:11:04 +0000 (10:11 +0100)
commit3780717db0bb65ae2a5cd005defbe36cd8857a5b
tree57f9b42de3cc62ccc2348c96d6042c9ca44f8e1b
parent7dbb0a87e6b54205ced5ef499d00205686ba65c6
rustls: allocate a buffer for TLS data.

Previously, rustls was using an on-stack array for TLS data. However,
crustls has an (unusual) requirement that buffers it deals with are
initialized before writing to them. By using calloc, we can ensure the
buffer is initialized once and then reuse it across calls.

Closes #6742
lib/vtls/rustls.c