summaryrefslogtreecommitdiff
path: root/src/crypt.c
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 /src/crypt.c
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 'src/crypt.c')
-rw-r--r--src/crypt.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/crypt.c b/src/crypt.c
index 4f354e2bd7..2b37ba8cac 100644
--- a/src/crypt.c
+++ b/src/crypt.c
@@ -18,6 +18,18 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
+#ifndef ENABLE_SRP
+
+#include <stdio.h>
+
+int main (int argc, char **argv)
+{
+ printf ("\nSRP not supported. This program is a dummy.\n\n");
+ return 1;
+};
+
+#else
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -31,6 +43,7 @@
#include <sys/stat.h>
#include <unistd.h>
+
#define _MAX(x,y) (x>y?x:y)
/* This may need some rewrite. A lot of stuff which should be here
@@ -564,3 +577,5 @@ static int read_conf_values(gnutls_datum * g, gnutls_datum * n, char *str)
return index;
}
+
+#endif /* ENABLE_SRP */