summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-01 20:42:30 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-01 20:42:30 +0100
commitbc932953a18ed27404dfd285198762092e4139c1 (patch)
tree4b2830f58a02e514e4e1e8c1821aa75fd16078d1 /src
parent8131d73270eac89e4eec69b2228156b02dd5e8de (diff)
downloadgnutls-bc932953a18ed27404dfd285198762092e4139c1.tar.gz
conditionally use ALPN. Reported by Jaak Ristioja.
Diffstat (limited to 'src')
-rw-r--r--src/common.c2
1 files changed, 2 insertions, 0 deletions
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)
{