]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
conditionally use ALPN. Reported by Jaak Ristioja.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 1 Nov 2013 19:42:30 +0000 (20:42 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 1 Nov 2013 19:42:30 +0000 (20:42 +0100)
src/common.c

index fb51d5e6d5d9cc5d2415de6ce516bae03cc03db7..e3e614864e31be1d3b9a369642628f77aed26466 100644 (file)
@@ -577,9 +577,11 @@ print_info (gnutls_session_t session, int verbose, int print_cert)
       printf ("- SRTP profile: %s\n", gnutls_srtp_get_profile_name (srtp_profile));
 #endif
 
+#ifdef ENABLE_ALPN
     rc = gnutls_alpn_get_selected_protocol (session, &p);
     if (rc == 0)
       printf ("- Application protocol: %.*s\n", p.size, p.data);
+#endif
 
     if (verbose)
       {