summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-09-20 14:52:39 +0200
committerSimon Josefsson <simon@josefsson.org>2007-09-20 14:52:39 +0200
commitbdcd70e2b483f15189855cf966d96759686555a1 (patch)
tree495c4d558b82c8ec266980e9c3f56f82d773e200 /configure.in
parent15688b6cb74ad0a89b90a536db0771fc89eb3685 (diff)
downloadgnutls-bdcd70e2b483f15189855cf966d96759686555a1.tar.gz
Support for Opaque PRF Input TLS extension.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index d9d3a3c4b7..ad23d965d9 100644
--- a/configure.in
+++ b/configure.in
@@ -368,6 +368,29 @@ AC_ARG_WITH(builtin-crypto,
ac_cv_libgcrypt=yes)
LTLIBGCRYPT=$LIBGCRYPT_LIBS
+AC_MSG_CHECKING([whether to enable Opaque PRF input support])
+AC_ARG_ENABLE(opaque-prf-input,
+ AS_HELP_STRING([--enable-opaque-prf-input=DD],
+ [enable Opaque PRF input using DD as extension type]),
+ ac_opaque_prf_input=$enableval, ac_opaque_prf_input=no)
+if test "$ac_opaque_prf_input" != "no"; then
+ if ! echo $ac_opaque_prf_input | egrep -q '^[[0-9]]+$'; then
+ ac_opaque_prf_input=no
+ AC_MSG_WARN([[
+*** Could not parse Opaque PRF Input extension type.
+*** Use --enable-opaque-prf-input=XX where XX is decimal, for example
+*** to use extension value 42 use --enable-opqaue-prf-input=42]])
+ fi
+fi
+if test "$ac_opaque_prf_input" != "no"; then
+ AC_MSG_RESULT([yes (extension value $ac_opaque_prf_input)])
+ AC_DEFINE_UNQUOTED(ENABLE_OPRFI, $ac_opaque_prf_input,
+ [enable Opaque PRF Input])
+else
+ AC_MSG_RESULT(no)
+fi
+AM_CONDITIONAL(ENABLE_OPRFI, test "$ac_opaque_prf_input" != "no")
+
AC_MSG_CHECKING([whether to disable SRP authentication support])
AC_ARG_ENABLE(srp-authentication,
AS_HELP_STRING([--disable-srp-authentication],