X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_wrbuf.c;h=1e57a38f0c3149a99234c6e9894d2867c77f719b;hp=278122b53f821fd658d22462ca3ca3303d2dcc16;hb=94a0aa1a3d45b41484ac4bf81b85f90dca7f7181;hpb=1b29294f1ba913fb798c3556e3fda09bfc46bb67 diff --git a/test/test_wrbuf.c b/test/test_wrbuf.c index 278122b..1e57a38 100644 --- a/test/test_wrbuf.c +++ b/test/test_wrbuf.c @@ -17,14 +17,10 @@ static int sha1_test(WRBUF wr, const char *msg, const char *expect) { wrbuf_rewind(wr); -#if HAVE_GCRYPT_H || HAVE_NETTLE wrbuf_sha1_write(wr, msg, strlen(msg), 1); if (!strcmp(wrbuf_cstr(wr), expect)) return 1; return 0; -#else - return 1; -#endif } #if YAZ_POSIX_THREADS @@ -36,9 +32,7 @@ static void *my_handler(void *arg) { char buf[100]; sprintf(buf, "Hello world %d", i); -#if HAVE_GCRYPT_H || HAVE_NETTLE wrbuf_sha1_write(wr, buf, strlen(buf), 1); -#endif wrbuf_rewind(wr); } wrbuf_destroy(wr);