diff options
author | nivit <nivit@FreeBSD.org> | 2015-03-08 06:43:51 +0800 |
---|---|---|
committer | nivit <nivit@FreeBSD.org> | 2015-03-08 06:43:51 +0800 |
commit | 19ffc6653cdb433cbeddce170aec70f6e4e3de3b (patch) | |
tree | 6c9ed0eb64b87f692566934fa29b32626c76252b /deskutils | |
parent | 468f3e20aa0a37727065bb830013f08a423eaadc (diff) | |
download | freebsd-ports-gnome-19ffc6653cdb433cbeddce170aec70f6e4e3de3b.tar.gz freebsd-ports-gnome-19ffc6653cdb433cbeddce170aec70f6e4e3de3b.tar.zst freebsd-ports-gnome-19ffc6653cdb433cbeddce170aec70f6e4e3de3b.zip |
- Replace the deprecated methods and types of OpenSSL with the current ones
(des_ to DES_ and adapt to method signature). The patch was accepted by the
upstream project see https://github.com/mattn/growl-for-linux/pull/51
PR: 198243
Submitted by: Bernard Spil <spil.oss@gmail.com>
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/growl-for-linux/files/patch-gol.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/deskutils/growl-for-linux/files/patch-gol.c b/deskutils/growl-for-linux/files/patch-gol.c new file mode 100644 index 000000000000..b4a722cf3715 --- /dev/null +++ b/deskutils/growl-for-linux/files/patch-gol.c @@ -0,0 +1,25 @@ +--- gol.c.orig 2014-05-20 03:11:04.000000000 +0200 ++++ gol.c 2015-02-28 20:05:59.171972929 +0100 +@@ -1427,18 +1427,18 @@ + r-(ptr-top)-6, &aeskey, (unsigned char*) iv, AES_DECRYPT); + } + else if (!strcmp(crypt_algorythm, "DES")) { +- des_key_schedule schedule; ++ DES_key_schedule schedule; + DES_set_key_unchecked((const_DES_cblock*) &digest, &schedule); + DES_ncbc_encrypt((unsigned char*) ptr, (unsigned char*) data, + r-(ptr-top)-6, &schedule, (const_DES_cblock*) &iv, DES_DECRYPT); + } + else if (!strcmp(crypt_algorythm, "3DES")) { +- des_key_schedule schedule1, schedule2, schedule3; ++ DES_key_schedule schedule1, schedule2, schedule3; + DES_set_key_unchecked((const_DES_cblock*) (digest+ 0), &schedule1); + DES_set_key_unchecked((const_DES_cblock*) (digest+ 8), &schedule2); + DES_set_key_unchecked((const_DES_cblock*) (digest+16), &schedule3); +- des_ede3_cbc_encrypt((unsigned char*) ptr, (unsigned char*) data, +- r-(ptr-top)-6, schedule1, schedule2, schedule3, ++ DES_ede3_cbc_encrypt((unsigned char*) ptr, (unsigned char*) data, ++ r-(ptr-top)-6, &schedule1, &schedule2, &schedule3, + (const_DES_cblock*) &iv, DES_DECRYPT); + } else { + data = strdup(ptr); |