diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2003-06-13 04:26:24 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2003-06-13 04:26:24 +0000 |
commit | 1d60b799627d6feda51cb3283d916a0f09807473 (patch) | |
tree | 432a57b350ef0726f343a2ad354b429a1fb5b44c /security/lsh/files/patch-nettle-benchmark.c | |
parent | - Sync with cnews paths better. (diff) |
- Update to 1.5.2
- removed patches that are now part of distribution
- New option: WITH_THREADS or WITH_LSH_THREADS
Notes
Notes:
svn path=/head/; revision=82916
Diffstat (limited to 'security/lsh/files/patch-nettle-benchmark.c')
-rw-r--r-- | security/lsh/files/patch-nettle-benchmark.c | 70 |
1 files changed, 0 insertions, 70 deletions
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)); - |