fix build with no-srtp
authorJ Mohan Rao Arisankala <mohan@computer.org>
Sat, 27 Feb 2016 03:20:07 +0000 (08:50 +0530)
committerRich Salz <rsalz@openssl.org>
Sat, 27 Feb 2016 22:41:34 +0000 (17:41 -0500)
- srtp_profiles variable is defined when building with SRTP, keeping
the variable usage also under ifndef OPENSSL_NO_SRTP
- alpn help option was kept under ifndef OPENSSL_NO_SRTP

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/s_server.c

index c28aa51d4058241583d49397574ff2113697bd85..5ca1c5f1a80f2917f0d962826ed73916980136bf 100644 (file)
@@ -987,9 +987,9 @@ OPTIONS s_server_options[] = {
 #ifndef OPENSSL_NO_SRTP
     {"use_srtp", OPT_SRTP_PROFILES, 's',
      "Offer SRTP key management with a colon-separated profile list"},
+#endif
     {"alpn", OPT_ALPN, 's',
      "Set the advertised protocols for the ALPN extension (comma-separated list)"},
-#endif
 #ifndef OPENSSL_NO_ENGINE
     {"engine", OPT_ENGINE, 's', "Use engine, possibly a hardware device"},
 #endif
@@ -1490,9 +1490,11 @@ int s_server_main(int argc, char *argv[])
         case OPT_ALPN:
             alpn_in = opt_arg();
             break;
+#ifndef OPENSSL_NO_SRTP
         case OPT_SRTP_PROFILES:
             srtp_profiles = opt_arg();
             break;
+#endif
         case OPT_KEYMATEXPORT:
             keymatexportlabel = opt_arg();
             break;