aboutsummaryrefslogtreecommitdiff
path: root/security/ipsec-tools
diff options
context:
space:
mode:
authorTom McLaughlin <tmclaugh@FreeBSD.org>2008-07-07 23:59:33 +0000
committerTom McLaughlin <tmclaugh@FreeBSD.org>2008-07-07 23:59:33 +0000
commitb7917da8c5ba8b0a5823d2d33e881761c6777a17 (patch)
tree2db5cd26ee586990c244613a12f948add16eb309 /security/ipsec-tools
parentce426e80f58f2bdcd9e05de8c44295a23bc45005 (diff)
downloadports-b7917da8c5ba8b0a5823d2d33e881761c6777a17.tar.gz
ports-b7917da8c5ba8b0a5823d2d33e881761c6777a17.zip
Notes
Diffstat (limited to 'security/ipsec-tools')
-rw-r--r--security/ipsec-tools/files/patch-crypto_openssl.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/security/ipsec-tools/files/patch-crypto_openssl.c b/security/ipsec-tools/files/patch-crypto_openssl.c
new file mode 100644
index 000000000000..13eb30e3f13e
--- /dev/null
+++ b/security/ipsec-tools/files/patch-crypto_openssl.c
@@ -0,0 +1,40 @@
+--- src/racoon/crypto_openssl.c.orig 2006-12-18 16:18:10.000000000 +0600
++++ src/racoon/crypto_openssl.c 2008-03-28 16:36:05.000000000 +0600
+@@ -1391,15 +1391,15 @@
+ RC5_32_KEY ks;
+
+ /* in RFC 2451, there is information about the number of round. */
+- RC5_32_set_key(&ks, key->l, key->v, 16);
++ RC5_32_set_key(&ks, key->l, (unsigned char*)key->v, 16);
+
+ /* allocate buffer for result */
+ if ((res = vmalloc(data->l)) == NULL)
+ return NULL;
+
+ /* decryption data */
+- RC5_32_cbc_encrypt(data->v, res->v, data->l,
+- &ks, iv->v, RC5_ENCRYPT);
++ RC5_32_cbc_encrypt( (unsigned char*)data->v, (unsigned char*)res->v, data->l,
++ &ks, (unsigned char*)iv->v, RC5_ENCRYPT);
+
+ return res;
+ }
+@@ -1412,15 +1412,15 @@
+ RC5_32_KEY ks;
+
+ /* in RFC 2451, there is information about the number of round. */
+- RC5_32_set_key(&ks, key->l, key->v, 16);
++ RC5_32_set_key(&ks, key->l, (unsigned char*)key->v, 16);
+
+ /* allocate buffer for result */
+ if ((res = vmalloc(data->l)) == NULL)
+ return NULL;
+
+ /* decryption data */
+- RC5_32_cbc_encrypt(data->v, res->v, data->l,
+- &ks, iv->v, RC5_DECRYPT);
++ RC5_32_cbc_encrypt( (unsigned char*)data->v, (unsigned char*)res->v, data->l,
++ &ks, (unsigned char*)iv->v, RC5_DECRYPT);
+
+ return res;
+ }