(note that included applications might not compile properly
if features are disabled)
+ DTLS-SRTP support:$ac_enable_srtp
OCSP support: $ac_enable_ocsp
OpenPGP support: $ac_enable_openpgp
SRP support: $ac_enable_srp
--disable-libdane
--without-p11-kit
--without-tpm
+--disable-dtls-srtp-support
@end verbatim
For the complete list, refer to the output from @code{configure --help}.
max_record.h cert_type.h server_name.h srp.h \
session_ticket.h signature.h safe_renegotiation.h \
session_ticket.c srp.c ecc.c ecc.h heartbeat.c heartbeat.h \
- status_request.h status_request.c srtp.c srtp.h
+ status_request.h status_request.c
+if ENABLE_DTLS_SRTP
+libgnutls_ext_la_SOURCES += srtp.c srtp.h
+endif
if (ret != GNUTLS_E_SUCCESS)
return ret;
+#ifdef ENABLE_DTLS_SRTP
ret = _gnutls_ext_register (&ext_mod_srtp);
if (ret != GNUTLS_E_SUCCESS)
return ret;
+#endif
return GNUTLS_E_SUCCESS;
}
AC_MSG_WARN([C99 macros not supported. This may affect compiling.])
])
+ ac_enable_srtp=yes
+ AC_MSG_CHECKING([whether to disable DTLS-SRTP extension])
+ AC_ARG_ENABLE(dtls-srtp-support,
+ AS_HELP_STRING([--disable-dtls-srtp-support],
+ [disable support for the DTLS-SRTP extension]),
+ ac_enable_srtp=no)
+ if test x$ac_enable_srtp != xno; then
+ AC_MSG_RESULT(no)
+ AC_DEFINE([ENABLE_DTLS_SRTP], 1, [enable DTLS-SRTP support])
+ else
+ ac_full=0
+ AC_MSG_RESULT(yes)
+ fi
+ AM_CONDITIONAL(ENABLE_DTLS_SRTP, test "$ac_enable_srtp" != "no")
+
ac_enable_srp=yes
AC_MSG_CHECKING([whether to disable SRP authentication support])
AC_ARG_ENABLE(srp-authentication,
if (HAVE_OPT(HEARTBEAT))
gnutls_heartbeat_enable (session, GNUTLS_HB_PEER_ALLOWED_TO_SEND);
+#ifdef ENABLE_DTLS_SRTP
if (HAVE_OPT(SRTP_PROFILES))
{
ret = gnutls_srtp_set_profile_direct (session, OPT_ARG(SRTP_PROFILES), &err);
fprintf(stderr, "Error in profiles: %s\n", gnutls_strerror(ret));
exit (1);
}
+#endif
return session;
}
(gnutls_compression_get (session)));
printf ("- Compression: %s\n", tmp);
+#ifdef ENABLE_DTLS_SRTP
rc = gnutls_srtp_get_selected_profile (session, &srtp_profile);
if (rc == 0)
printf ("- SRTP profile: %s\n", gnutls_srtp_get_profile_name (srtp_profile));
+#endif
if (verbose)
{
if (HAVE_OPT (HEARTBEAT))
gnutls_heartbeat_enable(session, GNUTLS_HB_PEER_ALLOWED_TO_SEND);
+#ifdef ENABLE_DTLS_SRTP
if (HAVE_OPT (SRTP_PROFILES))
{
ret = gnutls_srtp_set_profile_direct (session, OPT_ARG(SRTP_PROFILES), &err);
fprintf(stderr, "Error in profiles: %s\n", gnutls_strerror(ret));
exit (1);
}
+#endif
return session;
}
#include <stdio.h>
#include <stdlib.h>
-#if defined(_WIN32)
+#if defined(_WIN32) || !defined(ENABLE_DTLS_SRTP)
int
-main ()
+main (int argc, char** argv)
{
exit (77);
}