Store the PEM certificate in a dynamically allocated buffer
authorFabian Keil <fk@fabiankeil.de>
Wed, 17 Mar 2021 08:13:53 +0000 (09:13 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 21 Mar 2021 06:58:53 +0000 (07:58 +0100)
commit85bc700695d99d5858dbaa1448251e48df9ce747
treefa470049a79996e25ff2d654172e9d2b864145de
parentcfee8f25226bfd41a5566766cdf4669d3cf18c51
Store the PEM certificate in a dynamically allocated buffer

... when https-inspecting.

Should prevent errors like:
2021-03-16 22:36:19.148 7f47bbfff700 Error: X509 PEM cert len 16694 is larger than buffer len 16383

As a bonus it should slightly reduce the memory usage as most
certificates are smaller than the previously used fixed buffer.

Reported by: Wen Yue
openssl.c
project.h
ssl.c
ssl_common.c