latest (yet unreleased) draft. Unfortunately this breaks
compatibility with previous versions.
- Changed the makefiles to be more portable.
+- SRP ciphersuites were moved to the gnutls library.
Version 1.1.11 (16/07/2004)
- Added the '_t' suffix to all exported symbols.
#define LIBGNUTLS_EXTRA_VERSION LIBGNUTLS_VERSION
-/* SRP */
-
-typedef struct DSTRUCT* gnutls_srp_server_credentials_t;
-typedef struct DSTRUCT* gnutls_srp_client_credentials_t;
-
-void gnutls_srp_free_client_credentials( gnutls_srp_client_credentials_t sc);
-int gnutls_srp_allocate_client_credentials( gnutls_srp_client_credentials_t *sc);
-int gnutls_srp_set_client_credentials( gnutls_srp_client_credentials_t res, char *username, char* password);
-
-void gnutls_srp_free_server_credentials( gnutls_srp_server_credentials_t sc);
-int gnutls_srp_allocate_server_credentials( gnutls_srp_server_credentials_t *sc);
-int gnutls_srp_set_server_credentials_file( gnutls_srp_server_credentials_t res,
- const char *password_file, const char* password_conf_file);
-
-const char* gnutls_srp_server_get_username( gnutls_session_t state);
-
-int gnutls_srp_verifier( const char* username, const char* password, const gnutls_datum_t *salt,
- const gnutls_datum_t* g, const gnutls_datum_t* n,
- gnutls_datum_t * res);
-
-/* The static parameters defined in draft-ietf-tls-srp-05
- * Those should be used as input to gnutls_srp_verifier().
- */
-extern const gnutls_datum_t gnutls_srp_2048_group_prime;
-extern const gnutls_datum_t gnutls_srp_2048_group_generator;
-
-extern const gnutls_datum_t gnutls_srp_1536_group_prime;
-extern const gnutls_datum_t gnutls_srp_1536_group_generator;
-
-extern const gnutls_datum_t gnutls_srp_1024_group_prime;
-extern const gnutls_datum_t gnutls_srp_1024_group_generator;
-
-typedef int gnutls_srp_server_credentials_function(
- gnutls_session_t,
- const char* username, gnutls_datum_t* salt,
- gnutls_datum_t* verifier, gnutls_datum_t* generator,
- gnutls_datum_t* prime
-);
-void gnutls_srp_set_server_credentials_function(
- gnutls_srp_server_credentials_t,
- gnutls_srp_server_credentials_function *);
-
-typedef int gnutls_srp_client_credentials_function(gnutls_session_t, unsigned int,
- char **, char**);
-void gnutls_srp_set_client_credentials_function( gnutls_srp_client_credentials_t,
- gnutls_srp_client_credentials_function *);
-
-
/* Openpgp certificate stuff
*/
gnutls_sig.h gnutls_mem.h gnutls_ui.h \
io_debug.h ext_max_record.h gnutls_session_pack.h \
gnutls_alert.h gnutls_str.h gnutls_state.h gnutls_x509.h \
- ext_cert_type.h gnutls_rsa_export.h ext_server_name.h auth_dh_common.h
+ ext_cert_type.h gnutls_rsa_export.h ext_server_name.h auth_dh_common.h \
+ ext_srp.h gnutls_srp.h auth_srp.h auth_srp_passwd.h
lib_LTLIBRARIES = libgnutls.la
X509_COBJECTS = x509/crl.c x509/dn.c x509/common.c x509/x509.c x509/extensions.c \
x509/privkey_pkcs8.c x509/pkcs12.c x509/pkcs12_bag.c x509/pkcs12_encr.c \
x509/x509_write.c x509/crl_write.c x509/compat.c
+SRP_COBJECTS = ext_srp.c gnutls_srp.c auth_srp.c auth_srp_passwd.c \
+ auth_srp_sb64.c auth_srp_rsa.c
+
COBJECTS = gnutls_record.c gnutls_compress.c debug.c \
gnutls_cipher.c gnutls_buffers.c gnutls_handshake.c gnutls_num.c \
gnutls_errors.c gnutls_algorithms.c gnutls_dh.c gnutls_kx.c \
# Separate so we can create the documentation
-libgnutls_la_SOURCES = $(COBJECTS) $(X509_COBJECTS) $(MINITASN1_COBJECTS)
+libgnutls_la_SOURCES = $(COBJECTS) $(X509_COBJECTS) $(MINITASN1_COBJECTS) $(SRP_COBJECTS)
libgnutls_la_LDFLAGS = $(LIBTASN1_LIBS) $(LIBGCRYPT_LIBS) \
$(libgnutls_version_script_cmd) \
*
* This file is part of GNUTLS.
*
- * GNUTLS-EXTRA is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * The GNUTLS library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * GNUTLS-EXTRA is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
-#include "gnutls_int.h"
+#include <gnutls_int.h>
#ifdef ENABLE_SRP
/*
- * Copyright (C) 2001,2003 Nikos Mavroyanopoulos
+ * Copyright (C) 2001,2002,2003 Nikos Mavroyanopoulos
* Copyright (C) 2004 Free Software Foundation
*
* This file is part of GNUTLS.
*
- * GNUTLS-EXTRA is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * The GNUTLS library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * GNUTLS-EXTRA is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
/* Functions for operating in an SRP passwd file are included here */
-#include "gnutls_int.h"
+#include <gnutls_int.h>
#ifdef ENABLE_SRP
#include "x509_b64.h"
#include "gnutls_errors.h"
-#include "auth_srp_passwd.h"
+#include <auth_srp_passwd.h>
#include "auth_srp.h"
#include "gnutls_auth_int.h"
#include "gnutls_srp.h"
*
* This file is part of GNUTLS.
*
- * GNUTLS-EXTRA is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * The GNUTLS library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * GNUTLS-EXTRA is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
-#include "gnutls_int.h"
+#include <gnutls_int.h>
#ifdef ENABLE_SRP
/*
- * Copyright (C) 2001,2002 Nikos Mavroyanopoulos <nmav@hellug.gr>
+ * Copyright (C) 2001,2002,2003 Nikos Mavroyanopoulos
* Copyright (C) 2004 Free Software Foundation
*
* This file is part of GNUTLS.
*
- * GNUTLS-EXTRA is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * The GNUTLS library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * GNUTLS-EXTRA is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#include <gnutls_int.h>
/*
- * Copyright (C) 2001,2002 Nikos Mavroyanopoulos
+ * Copyright (C) 2001,2002,2003 Nikos Mavroyanopoulos
* Copyright (C) 2004 Free Software Foundation
*
* This file is part of GNUTLS.
*
- * GNUTLS-EXTRA is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * The GNUTLS library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * GNUTLS-EXTRA is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
-#include "gnutls_int.h"
+#include <gnutls_int.h>
#include <ext_srp.h>
#ifdef ENABLE_SRP
int gnutls_fingerprint(gnutls_digest_algorithm_t algo, const gnutls_datum_t* data,
void* result, size_t* result_size);
+
+/* SRP
+ */
+
+typedef struct DSTRUCT* gnutls_srp_server_credentials_t;
+typedef struct DSTRUCT* gnutls_srp_client_credentials_t;
+
+void gnutls_srp_free_client_credentials( gnutls_srp_client_credentials_t sc);
+int gnutls_srp_allocate_client_credentials( gnutls_srp_client_credentials_t *sc);
+int gnutls_srp_set_client_credentials( gnutls_srp_client_credentials_t res, char *username, char* password);
+
+void gnutls_srp_free_server_credentials( gnutls_srp_server_credentials_t sc);
+int gnutls_srp_allocate_server_credentials( gnutls_srp_server_credentials_t *sc);
+int gnutls_srp_set_server_credentials_file( gnutls_srp_server_credentials_t res,
+ const char *password_file, const char* password_conf_file);
+
+const char* gnutls_srp_server_get_username( gnutls_session_t state);
+
+int gnutls_srp_verifier( const char* username, const char* password, const gnutls_datum_t *salt,
+ const gnutls_datum_t* g, const gnutls_datum_t* n,
+ gnutls_datum_t * res);
+
+/* The static parameters defined in draft-ietf-tls-srp-05
+ * Those should be used as input to gnutls_srp_verifier().
+ */
+extern const gnutls_datum_t gnutls_srp_2048_group_prime;
+extern const gnutls_datum_t gnutls_srp_2048_group_generator;
+
+extern const gnutls_datum_t gnutls_srp_1536_group_prime;
+extern const gnutls_datum_t gnutls_srp_1536_group_generator;
+
+extern const gnutls_datum_t gnutls_srp_1024_group_prime;
+extern const gnutls_datum_t gnutls_srp_1024_group_generator;
+
+typedef int gnutls_srp_server_credentials_function(
+ gnutls_session_t,
+ const char* username, gnutls_datum_t* salt,
+ gnutls_datum_t* verifier, gnutls_datum_t* generator,
+ gnutls_datum_t* prime
+);
+void gnutls_srp_set_server_credentials_function(
+ gnutls_srp_server_credentials_t,
+ gnutls_srp_server_credentials_function *);
+
+typedef int gnutls_srp_client_credentials_function(gnutls_session_t, unsigned int,
+ char **, char**);
+void gnutls_srp_set_client_credentials_function( gnutls_srp_client_credentials_t,
+ gnutls_srp_client_credentials_function *);
+
extern mod_auth_st dhe_rsa_auth_struct;
extern mod_auth_st dhe_dss_auth_struct;
extern mod_auth_st anon_auth_struct;
+extern mod_auth_st srp_auth_struct;
+extern mod_auth_st srp_rsa_auth_struct;
+extern mod_auth_st srp_dss_auth_struct;
#define MAX_KX_ALGOS 10
{"RSA EXPORT", GNUTLS_KX_RSA_EXPORT, &rsa_export_auth_struct, 0, 1},
{"DHE RSA", GNUTLS_KX_DHE_RSA, &dhe_rsa_auth_struct, 1, 0},
{"DHE DSS", GNUTLS_KX_DHE_DSS, &dhe_dss_auth_struct, 1, 0},
+
+ {"SRP DSS", GNUTLS_KX_SRP_DSS, &srp_dss_auth_struct, 0, 0},
+ {"SRP RSA", GNUTLS_KX_SRP_RSA, &srp_rsa_auth_struct, 0, 0},
+ {"SRP", GNUTLS_KX_SRP, &srp_auth_struct, 0, 0},
/* other algorithms are appended here by gnutls-extra
* initialization function.
*/
#include "ext_max_record.h"
#include <ext_cert_type.h>
#include <ext_server_name.h>
-#include "gnutls_num.h"
+#include <ext_srp.h>
+#include <gnutls_num.h>
/* Key Exchange Section */
#define GNUTLS_EXTENSION_ENTRY(type, ext_func_recv, ext_func_send) \
GNUTLS_EXTENSION_ENTRY(GNUTLS_EXTENSION_SERVER_NAME,
_gnutls_server_name_recv_params,
_gnutls_server_name_send_params),
+ GNUTLS_EXTENSION_ENTRY(GNUTLS_EXTENSION_SRP,
+ _gnutls_srp_recv_params,
+ _gnutls_srp_send_params),
{0, 0, 0, 0}
};
/*
- * Copyright (C) 2001,2003 Nikos Mavroyanopoulos
+ * Copyright (C) 2001,2002,2003 Nikos Mavroyanopoulos
* Copyright (C) 2004 Free Software Foundation
*
* This file is part of GNUTLS.
*
- * GNUTLS-EXTRA is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * The GNUTLS library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * GNUTLS-EXTRA is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#include <gnutls_int.h>
libgnutls_extra_version_script_cmd =
endif
-EXTRA_DIST = ext_srp.h gnutls_srp.h libgnutls-extra.vers \
- auth_srp.h auth_srp_passwd.h openssl_compat.h \
- gnutls-extra-api.tex gnutls_extra.h libgnutls-extra-config.in \
+EXTRA_DIST = libgnutls-extra.vers \
+ openssl_compat.h gnutls-extra-api.tex gnutls_extra.h libgnutls-extra-config.in \
libgnutls-extra.m4 lzoconf.h minilzo.h
endif
-COBJECTS_EXTRA = ext_srp.c \
- gnutls_srp.c auth_srp.c auth_srp_passwd.c auth_srp_sb64.c \
- gnutls_extra.c auth_srp_rsa.c
+COBJECTS_EXTRA = \
+ gnutls_extra.c
libgnutls_extra_la_LDFLAGS = $(libgnutls_extra_version_script_cmd) \
#include <gnutls_int.h>
#include <gnutls_errors.h>
#include <gnutls_extensions.h>
-#include <ext_srp.h>
#include <gnutls_openpgp.h>
#include <gnutls_extra.h>
#include <gnutls_algorithms.h>
# include <minilzo.h>
#endif
-extern gnutls_extension_entry _gnutls_extensions[];
-extern const int _gnutls_extensions_size;
-
-extern const int _gnutls_kx_algorithms_size;
-extern gnutls_kx_algo_entry _gnutls_kx_algorithms[];
-
-#define TOSTR(x) #x
-
-#ifdef ENABLE_SRP
-static int _gnutls_add_srp_extension(void)
-{
- int i;
-
- /* find the last element */
- for (i = 0; i < _gnutls_extensions_size; i++) {
- if (_gnutls_extensions[i].name == NULL)
- break;
- }
-
- if (_gnutls_extensions[i].name == NULL
- && (i < _gnutls_extensions_size - 1)) {
- _gnutls_extensions[i].name = TOSTR(GNUTLS_EXTENSION_SRP);
- _gnutls_extensions[i].type = GNUTLS_EXTENSION_SRP;
- _gnutls_extensions[i].gnutls_ext_func_recv =
- _gnutls_srp_recv_params;
- _gnutls_extensions[i].gnutls_ext_func_send =
- _gnutls_srp_send_params;
-
- _gnutls_extensions[i + 1].name = 0;
-
- return 0; /* ok */
- }
-
- return GNUTLS_E_MEMORY_ERROR;
-}
-
-extern mod_auth_st srp_auth_struct;
-extern mod_auth_st srp_rsa_auth_struct;
-extern mod_auth_st srp_dss_auth_struct;
-
-
-static int _gnutls_add_srp_auth_struct(void)
-{
- int i;
-
- /* find the last element */
- for (i = 0; i < _gnutls_kx_algorithms_size; i++) {
- if (_gnutls_kx_algorithms[i].name == NULL)
- break;
- }
-
- if (_gnutls_kx_algorithms[i].name == NULL
- && (i < _gnutls_kx_algorithms_size - 1)) {
- _gnutls_kx_algorithms[i].name = "SRP";
- _gnutls_kx_algorithms[i].algorithm = GNUTLS_KX_SRP;
- _gnutls_kx_algorithms[i].auth_struct = &srp_auth_struct;
- _gnutls_kx_algorithms[i].needs_dh_params = 0;
- _gnutls_kx_algorithms[i].needs_rsa_params = 0;
- _gnutls_kx_algorithms[i + 1].name = 0;
- }
- i++;
-
- if (_gnutls_kx_algorithms[i].name == NULL
- && (i < _gnutls_kx_algorithms_size - 1)) {
- _gnutls_kx_algorithms[i].name = "SRP RSA";
- _gnutls_kx_algorithms[i].algorithm = GNUTLS_KX_SRP_RSA;
- _gnutls_kx_algorithms[i].auth_struct = &srp_rsa_auth_struct;
- _gnutls_kx_algorithms[i].needs_dh_params = 0;
- _gnutls_kx_algorithms[i].needs_rsa_params = 0;
- _gnutls_kx_algorithms[i + 1].name = 0;
- }
- i++;
-
- if (_gnutls_kx_algorithms[i].name == NULL
- && (i < _gnutls_kx_algorithms_size - 1)) {
- _gnutls_kx_algorithms[i].name = "SRP DSS";
- _gnutls_kx_algorithms[i].algorithm = GNUTLS_KX_SRP_DSS;
- _gnutls_kx_algorithms[i].auth_struct = &srp_dss_auth_struct;
- _gnutls_kx_algorithms[i].needs_dh_params = 0;
- _gnutls_kx_algorithms[i].needs_rsa_params = 0;
- _gnutls_kx_algorithms[i + 1].name = 0;
-
- return 0; /* ok */
- }
-
- return GNUTLS_E_MEMORY_ERROR;
-}
-
-#endif
-
/* the number of the compression algorithms available in the compression
* structure.
}
#endif
-#ifdef ENABLE_SRP
- /* Add the SRP authentication to the list of authentication
- * methods.
- */
- ret = _gnutls_add_srp_auth_struct();
- if (ret < 0) {
- gnutls_assert();
- return ret;
- }
-
- /* Do the same of the extension
- */
- ret = _gnutls_add_srp_extension();
- if (ret < 0) {
- gnutls_assert();
- return ret;
- }
-#endif
-
/* Register the openpgp functions. This is because some
* of them are defined to be NULL in the main library.
*/
dnl this features allows to prevent build against newer versions of libgcrypt
dnl with a changed API.
dnl
-AC_DEFUN(AM_PATH_LIBGCRYPT,
+AC_DEFUN([AM_PATH_LIBGCRYPT],
[ AC_ARG_WITH(libgcrypt-prefix,
AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
[prefix where LIBGCRYPT is installed (optional)]),
dnl AM_PATH_LIBOPENCDK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
dnl Test for libopencdk, and define CDK_CFLAGS and CDK_LIBS
dnl
-AC_DEFUN(AM_PATH_LIBOPENCDK,
+AC_DEFUN([AM_PATH_LIBOPENCDK],
[dnl
dnl Get the cflags and libraries from the opencdk-config script
dnl