c-taylor opened a new pull request, #13229:
URL: https://github.com/apache/trafficserver/pull/13229

   Skip the SSL_get_certificate() lookup and X509_cmp() DER re-parse in the 
stapling callback when an SSL_CTX has a single certificate. The shortcut is 
gated to non-dual-cert builds; under HAVE_NATIVE_DUAL_CERT_SUPPORT a CTX can 
hold multiple certs where only one has OCSP info, so map size alone cannot 
identify the negotiated cert.
   
   Give certinfo a constructor/destructor so its resources are managed by RAII, 
and allocate it with make_unique. This consolidates the cleanup that was 
duplicated across certinfo_map_free and the init error path, and fixes two 
pre-existing leaks (cid and the BoringSSL cert ref) plus an error path that 
could delete a certinfo_map still owned by the SSL_CTX.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to