Copilot commented on code in PR #13378:
URL: https://github.com/apache/trafficserver/pull/13378#discussion_r3574346219


##########
src/iocore/net/TLSBasicSupport.cc:
##########
@@ -170,6 +172,47 @@ TLSBasicSupport::get_tls_group() const
   return this->_get_tls_group();
 }
 
+std::string_view
+TLSBasicSupport::get_tls_offered_signature_algorithms() const
+{
+  if (!this->_tls_offered_signature_algorithms.has_value()) {
+    this->_tls_offered_signature_algorithms =
+      this->_get_ssl_object() == nullptr ? "" : 
this->_get_tls_offered_signature_algorithms();
+  }
+
+  return *this->_tls_offered_signature_algorithms;
+}
+
+std::string_view
+TLSBasicSupport::get_tls_negotiated_signature_algorithm() const
+{
+  if (!this->_tls_negotiated_signature_algorithm.has_value()) {
+    this->_tls_negotiated_signature_algorithm =
+      this->_get_ssl_object() == nullptr ? "" : 
this->_get_tls_negotiated_signature_algorithm();
+  }
+
+  return *this->_tls_negotiated_signature_algorithm;
+}
+
+void
+TLSBasicSupport::capture_tls_offered_signature_algorithms()
+{
+  this->_tls_offered_signature_algorithms = this->_get_ssl_object() == nullptr 
? "" : this->_get_tls_offered_signature_algorithms();
+}

Review Comment:
   capture_tls_offered_signature_algorithms() overwrites any previously 
captured non-empty ClientHello-derived list with whatever the SSL API returns 
at cert-callback time. If that later query returns an empty string (e.g., not 
available yet / not supported), this clobbers a valid earlier capture and 
causes cqssig to log as "-" even though the client offered algorithms.



-- 
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