summaryrefslogtreecommitdiff
path: root/security/p5-Crypt-OpenSSL-AES/files
diff options
context:
space:
mode:
authorSergei Vyshenski <svysh.fbsd@gmail.com>2023-11-15 18:12:03 +0100
committerRobert Clausecker <fuz@FreeBSD.org>2024-02-22 13:31:22 +0100
commit99a65e60e62bf7734d283eff7ff737e4d084536c (patch)
tree76618c72c9bd9e38ced2244654a72854d149b107 /security/p5-Crypt-OpenSSL-AES/files
parentnet-mgmt/cacti: update to 1.2.26 (diff)
security/p5-Crypt-OpenSSL-AES: Update to 0.19
- huge update 0.02 --> 0.19 - add LICENSE and DEPENDS groups - comply with openssl as ssl=base, openssl111, openssl31, openssl32, libressl - strip .so library - shebangfix - assign maintainership - can take m-ship if John Ferrell <jdferrell3@yahoo.com> finds this appropriate ChangeLog: https://metacpan.org/release/TIMLEGGE/Crypt-OpenSSL-AES-0.19/source/Changes PR: 275112 Approved by: jdferrell3@yahoo.com (maintainer timeout)
Diffstat (limited to 'security/p5-Crypt-OpenSSL-AES/files')
-rw-r--r--security/p5-Crypt-OpenSSL-AES/files/patch-AES.xs11
-rw-r--r--security/p5-Crypt-OpenSSL-AES/files/patch-t_00-openssl-version.t11
-rw-r--r--security/p5-Crypt-OpenSSL-AES/files/patch-t_09-key-size.t15
3 files changed, 37 insertions, 0 deletions
diff --git a/security/p5-Crypt-OpenSSL-AES/files/patch-AES.xs b/security/p5-Crypt-OpenSSL-AES/files/patch-AES.xs
new file mode 100644
index 000000000000..4734c763d691
--- /dev/null
+++ b/security/p5-Crypt-OpenSSL-AES/files/patch-AES.xs
@@ -0,0 +1,11 @@
+--- AES.xs.orig 2023-11-10 22:50:53 UTC
++++ AES.xs
+@@ -2,7 +2,7 @@
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
+-#include "openssl/opensslv.h"
++#include <openssl/opensslv.h>
+
+ #include <openssl/aes.h>
+ #if OPENSSL_VERSION_NUMBER >= 0x00908000L
diff --git a/security/p5-Crypt-OpenSSL-AES/files/patch-t_00-openssl-version.t b/security/p5-Crypt-OpenSSL-AES/files/patch-t_00-openssl-version.t
new file mode 100644
index 000000000000..bf19c0304eec
--- /dev/null
+++ b/security/p5-Crypt-OpenSSL-AES/files/patch-t_00-openssl-version.t
@@ -0,0 +1,11 @@
+--- t/00-openssl-version.t.orig 2023-11-10 22:50:53 UTC
++++ t/00-openssl-version.t
+@@ -3,7 +3,7 @@ use Test::More tests => 1;
+ use File::Which qw(which);
+ use Test::More tests => 1;
+
+-my $openssl = which('openssl');
++my $openssl = "SSLBIN";
+ like($openssl, qr/openssl/, "Found openssl");
+ print "$openssl version: ";
+
diff --git a/security/p5-Crypt-OpenSSL-AES/files/patch-t_09-key-size.t b/security/p5-Crypt-OpenSSL-AES/files/patch-t_09-key-size.t
new file mode 100644
index 000000000000..7f4681285042
--- /dev/null
+++ b/security/p5-Crypt-OpenSSL-AES/files/patch-t_09-key-size.t
@@ -0,0 +1,15 @@
+--- t/09-key-size.t.orig 2023-11-10 22:50:53 UTC
++++ t/09-key-size.t
+@@ -19,9 +19,9 @@ ok($c->decrypt($c->encrypt("Hello World. 123")) eq "He
+ ok($c->decrypt($encrypted) eq $plaintext, "decrypt with key length 32 (AES-256-ECB)");
+ ok($c->decrypt($c->encrypt("Hello World. 123")) eq "Hello World. 123", "Simple String Encrypted/Decrypted Successfully with key length 32 AES-256-ECB");
+
+-# echo -n "ABCDABCDABCDABCD"| openssl enc -nopad -e -aes-256-ecb -K '3031323330313233303132333031323330313233303132333031323330313233' | xxd -i
+-# echo -n "ABCDABCDABCDABCD"| openssl enc -nopad -e -aes-192-ecb -K '303132333031323330313233303132333031323330313233'
+-# echo -n "ABCDABCDABCDABCD"| openssl enc -nopad -e -aes-128-ecb -K '30313233303132333031323330313233' | xxd -i
++# echo -n "ABCDABCDABCDABCD"| SSLBIN enc -nopad -e -aes-256-ecb -K '3031323330313233303132333031323330313233303132333031323330313233' | xxd -i
++# echo -n "ABCDABCDABCDABCD"| SSLBIN enc -nopad -e -aes-192-ecb -K '303132333031323330313233303132333031323330313233'
++# echo -n "ABCDABCDABCDABCD"| SSLBIN enc -nopad -e -aes-128-ecb -K '30313233303132333031323330313233' | xxd -i
+
+ #
+ # test AES-192-ECB