MINOR: quic: Implement qc_ssl_eary_data_accepted().
authorFrederic Lecaille <flecaille@haproxy.com>
Fri, 30 Aug 2024 13:16:01 +0000 (15:16 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 5 Sep 2024 14:25:03 +0000 (16:25 +0200)
commit7cae9b607fd487ed533b03b020946ec5df911d5d
treeab234af5846238157d488bd7c7249ce62e12c423
parentceb7dbf4201acbb03ab7a22e7a116d4c4e443463
MINOR: quic: Implement qc_ssl_eary_data_accepted().

This function is a wrapper around SSL_get_early_data_status() for
OpenSSL derived stack and SSL_early_data_accepted() boringSSL derived
stacks like AWS-LC. It returns true for a TLS server if it has
accepted the early data received from a client.

Also implement quic_ssl_early_data_status_str() which is dedicated to be used
for debugging purposes (traces). This function converts the enum returned
by the two function mentionned above to a human readable string.

(cherry picked from commit 609b1245610c8f3e219a1eff12d13559cae109cd)
Signed-off-by: Frederic Lecaille <flecaille@haproxy.com>
include/haproxy/quic_ssl.h