gnutls/gnutls-3.5.1-srp-tests.patch

25 lines
396 B
Diff
Raw Normal View History

2016-06-15 07:52:19 +00:00
diff --git a/tests/srpbase64.c b/tests/srpbase64.c
index 80c1752..cb26e8b 100644
--- a/tests/srpbase64.c
+++ b/tests/srpbase64.c
@@ -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