make no-dh work
[openssl.git] / apps / s_cb.c
index 0c1dfc57d77b0749af8d416d93d8dfb8a11cef73..f4559fa70f0d766fe9cc47203d3fb0a3a7647e8e 100644 (file)
@@ -1381,13 +1381,14 @@ static int security_callback_debug(SSL *s, SSL_CTX *ctx,
         }
         break;
 #endif
-
+#ifndef OPENSSL_NO_DH
     case SSL_SECOP_OTHER_DH:
         {
             DH *dh = other;
             BIO_printf(sdb->out, "%d", BN_num_bits(dh->p));
             break;
         }
+#endif
     case SSL_SECOP_OTHER_CERT:
         {
             if (cert_md) {