summaryrefslogtreecommitdiff
path: root/libextra
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-04-01 19:13:11 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-04-01 19:13:11 +0000
commit47836324df6c7788817468ce4f72bed7dba480e5 (patch)
tree309b9badb729b46be3774a81928df1f36d8cccd5 /libextra
parent80ba67b530a243e56c8d7e1bac93efe485875880 (diff)
downloadgnutls-47836324df6c7788817468ce4f72bed7dba480e5.tar.gz
Some fixes to allow proper compiling when --disable-srp-authentication and --disable-anon-authentication are specified. Patch by Paul Sheer.
Diffstat (limited to 'libextra')
-rw-r--r--libextra/gnutls_extra.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libextra/gnutls_extra.c b/libextra/gnutls_extra.c
index deb91ca344..53c042bd95 100644
--- a/libextra/gnutls_extra.c
+++ b/libextra/gnutls_extra.c
@@ -30,8 +30,12 @@
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;
@@ -54,12 +58,11 @@ int i;
return GNUTLS_E_MEMORY_ERROR;
}
-extern const int _gnutls_kx_algorithms_size;
-extern gnutls_kx_algo_entry _gnutls_kx_algorithms[];
extern MOD_AUTH_STRUCT srp_auth_struct;
extern MOD_AUTH_STRUCT srp_rsa_auth_struct;
extern MOD_AUTH_STRUCT srp_dss_auth_struct;
+
static int _gnutls_add_srp_auth_struct(void) {
int i;
@@ -96,6 +99,9 @@ int i;
return GNUTLS_E_MEMORY_ERROR;
}
+#endif
+
+
/* the number of the compression algorithms available in the compression
* structure.
*/
@@ -201,6 +207,7 @@ int ret;
return ret;
}
+#ifdef ENABLE_SRP
/* Add the SRP authentication to the list of authentication
* methods.
*/
@@ -217,6 +224,7 @@ int ret;
gnutls_assert();
return ret;
}
+#endif
/* Register the openpgp functions. This is because some
* of them are defined to be NULL in the main library.