You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/07/26 03:11:52 UTC

[GitHub] [trafficserver] maskit commented on a change in pull request #8165: WIP NOAdds new API: TSSslSNIGet

maskit commented on a change in pull request #8165:
URL: https://github.com/apache/trafficserver/pull/8165#discussion_r676263459



##########
File path: src/traffic_server/InkAPI.cc
##########
@@ -9306,6 +9306,26 @@ TSVConnSslConnectionGet(TSVConn sslp)
   return ssl;
 }
 
+const char *
+TSSslSNIGet(TSVConn sslp, int *length)
+{
+  char const *server_name   = nullptr;
+  NetVConnection *vc        = reinterpret_cast<NetVConnection *>(sslp);
+  SSLNetVConnection *ssl_vc = dynamic_cast<SSLNetVConnection *>(vc);

Review comment:
       We don't need SSLNetVC here because `get_server_name()` is declared in `NetVConnection`.




-- 
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: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org