Mailing List Archive

[6862] cherokee/trunk/cherokee/info.c: Adds two new fields to the output of 'cherokee -i': "SSL/TLS" and "TLS
Revision: 6862
http://svn.cherokee-project.com/changeset/6862
Author: alo
Date: 2011-09-18 15:34:37 +0200 (Sun, 18 Sep 2011)
Log Message:
-----------
Adds two new fields to the output of 'cherokee -i': "SSL/TLS" and "TLS
SNI".

Modified Paths:
--------------
cherokee/trunk/cherokee/info.c

Modified: cherokee/trunk/cherokee/info.c
===================================================================
--- cherokee/trunk/cherokee/info.c 2011-09-18 12:59:37 UTC (rev 6861)
+++ cherokee/trunk/cherokee/info.c 2011-09-18 13:34:37 UTC (rev 6862)
@@ -107,5 +107,19 @@
#ifdef HAVE_SELECT
printf ("select ");
#endif
- printf ("\n\n");
+ printf ("\n");
+
+#ifdef HAVE_OPENSSL
+ printf (" SSL/TLS: libssl\n");
+# ifndef OPENSSL_NO_TLSEXT
+ printf (" TLS SNI: yes\n");
+# else
+ printf (" TLS SNI: no\n");
+# endif
+#else
+ printf (" SSL/TLS: no\n");
+ printf (" TLS SNI: no\n");
+#endif
+
+ printf ("\n");
}