Maaz2212 opened a new pull request, #14134: URL: https://github.com/apache/trafficserver/pull/14134
### Summary Restricts `TS_SSL_VERIFY_CLIENT_HOOK` and `TS_SSL_VERIFY_SERVER_HOOK` strictly to X.509 certificate verification. When a peer authenticates using an RFC 7250 Raw Public Key (RPK), these legacy hooks are not invoked. ### Motivation Prior to RFC 7250 RPK support, non-null contexts passed to verification hooks always carried an X.509 certificate. For RPK handshakes, no certificate exists, so ATS invoked these hooks with a null context (`nullptr`). Legacy plugins that do not explicitly check for a null certificate context (or that call `X509_STORE_CTX_get_current_cert()` without checking for `NULL`) crash `traffic_server`. Modern peer verification hooks supporting both X.509 and RPK (`TS_SSL_PEER_VERIFY_*`) will be introduced in a follow-up PR following the official ATS API review process. Fixes: #13985 -- 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]
