From 1d60b799627d6feda51cb3283d916a0f09807473 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Fri, 13 Jun 2003 04:26:24 +0000 Subject: - Update to 1.5.2 - removed patches that are now part of distribution - New option: WITH_THREADS or WITH_LSH_THREADS --- security/lsh/files/patch-nettle-benchmark.c | 70 ----------------------------- 1 file changed, 70 deletions(-) delete mode 100644 security/lsh/files/patch-nettle-benchmark.c (limited to 'security/lsh/files/patch-nettle-benchmark.c') diff --git a/security/lsh/files/patch-nettle-benchmark.c b/security/lsh/files/patch-nettle-benchmark.c deleted file mode 100644 index 6c9e881d190a..000000000000 --- a/security/lsh/files/patch-nettle-benchmark.c +++ /dev/null @@ -1,70 +0,0 @@ ---- src/nettle/examples/nettle-benchmark.c.orig Fri Feb 15 11:09:13 2002 -+++ src/nettle/examples/nettle-benchmark.c Wed Dec 18 05:34:29 2002 -@@ -169,8 +169,15 @@ - init_data(data); - - { -+#ifndef __FreeBSD__ - struct bench_cipher_info info - = { ctx, cipher->encrypt, data }; -+#else -+ struct bench_cipher_info info; -+ info.ctx = ctx; -+ info.crypt = cipher->encrypt; -+ info.data = data; -+#endif - - init_key(cipher->key_size, key); - cipher->set_encrypt_key(ctx, cipher->key_size, key); -@@ -180,8 +187,15 @@ - } - - { -+#ifndef __FreeBSD__ - struct bench_cipher_info info - = { ctx, cipher->decrypt, data }; -+#else -+ struct bench_cipher_info info; -+ info.ctx = ctx; -+ info.crypt = cipher->decrypt; -+ info.data = data; -+#endif - - init_key(cipher->key_size, key); - cipher->set_decrypt_key(ctx, cipher->key_size, key); -@@ -196,8 +210,17 @@ - - /* Do CBC mode */ - { -+#ifndef __FreeBSD__ - struct bench_cbc_info info - = { ctx, cipher->encrypt, data, cipher->block_size, iv }; -+#else -+ struct bench_cbc_info info; -+ info.ctx = ctx; -+ info.crypt = cipher->encrypt; -+ info.data = data; -+ info.block_size = cipher->block_size; -+ info.iv = iv; -+#endif - - memset(iv, 0, sizeof(iv)); - -@@ -208,8 +231,17 @@ - } - - { -+#ifndef __FreeBSD__ - struct bench_cbc_info info - = { ctx, cipher->decrypt, data, cipher->block_size, iv }; -+#else -+ struct bench_cbc_info info; -+ info.ctx = ctx; -+ info.crypt = cipher->decrypt; -+ info.data = data; -+ info.block_size = cipher->block_size; -+ info.iv = iv; -+#endif - - memset(iv, 0, sizeof(iv)); - -- cgit v1.2.3