+
+#if HAVE_OPENSSL_SSL_H
+void *cs_get_ssl(COMSTACK cs)
+{
+ struct tcpip_state *state;
+ if (!cs || cs->type != ssl_type)
+ return 0;
+ state = (struct tcpip_state *) cs->cprivate;
+ return state->ssl;
+}
+#else
+void *cs_get_ssl(COMSTACK cs)
+{
+ return 0;
+}
+#endif