Update HPUX config, work around HPUX library incompatibility.
[openssl.git] / apps / s_client.c
index ae3ce3e4e855aebeb09cbe1cd47e3eca99f7e942..f0c2280d2ec326e94fd980a0a677a7248e19eb20 100644 (file)
 #include <openssl/pem.h>
 #include "s_apps.h"
 
+#if defined(NO_RSA) && !defined(NO_SSL2)
+#define NO_SSL2
+#endif
+
 #undef PROG
 #define PROG   s_client_main
 
@@ -716,6 +720,11 @@ static void print_stuff(BIO *bio, SSL *s, int full)
                p=SSL_get_shared_ciphers(s,buf,BUFSIZ);
                if (p != NULL)
                        {
+                       /* This works only for SSL 2.  In later protocol
+                        * versions, the client does not know what other
+                        * ciphers (in addition to the one to be used
+                        * in the current connection) the server supports. */
+
                        BIO_printf(bio,"---\nCiphers common between both SSL endpoints:\n");
                        j=i=0;
                        while (*p)