]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: disable SRP-base64 encode/decoded tests when SRP is disabled
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 15 Jun 2016 07:21:10 +0000 (09:21 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 15 Jun 2016 07:21:10 +0000 (09:21 +0200)
tests/srpbase64.c

index 80c1752cc233eccb539e2eb1ce124553566951a0..cb26e8baf488f2fb49ed5d0afab81c28376134a5 100644 (file)
@@ -34,6 +34,8 @@
 
 #include "utils.h"
 
+#ifdef ENABLE_SRP
+
 static void encode(const char *test_name, const gnutls_datum_t *raw, const char *expected)
 {
        int ret;
@@ -175,3 +177,10 @@ void doit(void)
        }
 }
 
+#else
+
+void doit(void)
+{
+       exit(77);
+}
+#endif