aboutsummaryrefslogtreecommitdiff
path: root/security/nettle2/files
diff options
context:
space:
mode:
authorFoxfair Hu <foxfair@FreeBSD.org>2003-05-08 05:00:10 +0000
committerFoxfair Hu <foxfair@FreeBSD.org>2003-05-08 05:00:10 +0000
commit0882052298b757857fd1bcc34386c322c3664bb6 (patch)
treeb176635373b61bfe2bd2faddd0fec1cca001f721 /security/nettle2/files
parent34a4aab5146749c0da704057af5c93bbb8fa1b56 (diff)
Notes
Diffstat (limited to 'security/nettle2/files')
-rw-r--r--security/nettle2/files/patch-examples_nettle-openssl.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/security/nettle2/files/patch-examples_nettle-openssl.c b/security/nettle2/files/patch-examples_nettle-openssl.c
new file mode 100644
index 000000000000..dbd034518587
--- /dev/null
+++ b/security/nettle2/files/patch-examples_nettle-openssl.c
@@ -0,0 +1,29 @@
+--- examples/nettle-openssl.c.orig Fri Nov 8 16:05:20 2002
++++ examples/nettle-openssl.c Thu May 1 12:52:10 2003
+@@ -93,7 +93,7 @@
+ openssl_des_set_key(void *ctx, unsigned length, const uint8_t *key)
+ {
+ assert(length == 8);
+- des_key_sched((char *) key, ctx);
++ des_key_sched((const_DES_cblock *)key, ctx);
+ }
+
+ #define DES_BLOCK_SIZE 8
+@@ -105,7 +105,7 @@
+ assert (!(length % DES_BLOCK_SIZE));
+ while (length)
+ {
+- des_ecb_encrypt((char *) src, (char *) dst, ctx, DES_ENCRYPT);
++ des_ecb_encrypt((const_DES_cblock *)src, (DES_cblock *)dst, ctx, DES_ENCRYPT);
+ length -= DES_BLOCK_SIZE;
+ dst += DES_BLOCK_SIZE;
+ src += DES_BLOCK_SIZE;
+@@ -119,7 +119,7 @@
+ assert (!(length % DES_BLOCK_SIZE));
+ while (length)
+ {
+- des_ecb_encrypt((char *) src, (char *) dst, ctx, DES_DECRYPT);
++ des_ecb_encrypt((const_DES_cblock *) src, (DES_cblock *) dst, ctx, DES_DECRYPT);
+ length -= DES_BLOCK_SIZE;
+ dst += DES_BLOCK_SIZE;
+ src += DES_BLOCK_SIZE;