Print debug info for extended master secret extension
[openssl.git] / apps / s_cb.c
index 0c1dfc57d77b0749af8d416d93d8dfb8a11cef73..643d91a160bc6118c852972b14c981cc74e81cef 100644 (file)
@@ -714,6 +714,9 @@ static STRINT_PAIR tlsext_types[] = {
 #ifdef TLSEXT_TYPE_application_layer_protocol_negotiation
     {"application layer protocol negotiation",
      TLSEXT_TYPE_application_layer_protocol_negotiation},
+#endif
+#ifdef TLSEXT_TYPE_extended_master_secret
+    {"extended master secret", TLSEXT_TYPE_extended_master_secret},
 #endif
     {NULL}
 };
@@ -1381,13 +1384,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) {