From: Nikos Mavrogiannopoulos Date: Fri, 1 Nov 2013 19:42:30 +0000 (+0100) Subject: conditionally use ALPN. Reported by Jaak Ristioja. X-Git-Tag: gnutls_3_2_7~122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc932953a18ed27404dfd285198762092e4139c1;p=thirdparty%2Fgnutls.git conditionally use ALPN. Reported by Jaak Ristioja. --- diff --git a/src/common.c b/src/common.c index fb51d5e6d5..e3e614864e 100644 --- a/src/common.c +++ b/src/common.c @@ -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) {