From 9a4548c819c63b41358072d645454ad7ea56cd2b Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Sat, 13 Jun 2020 16:35:56 +0300 Subject: [PATCH] Avoid some warnings --- test/04-pkey.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/04-pkey.t b/test/04-pkey.t index f5e654d..b4897e9 100644 --- a/test/04-pkey.t +++ b/test/04-pkey.t @@ -315,7 +315,7 @@ MIGgMBcGCCqFAwcBAQECMAsGCSqFAwcBAgECAwOBhAAEgYCPdAER26Ym73DSUXBamTLJcntdV3oZ7RRx # Bob: derive system("openssl pkeyutl -derive -inkey bob.prv -keyform PEM -peerkey alice.pub.der -peerform DER -pkeyopt ukmhex:0100000000000000 -out secret_b.bin"); like(`openssl dgst -sha256 -r secret_b.bin`, qr/^$secrethash/, "Compute shared key:$id:Bob"); - if ($malice ne "") { + if (defined $malice && $malice ne "") { # Malice: negative test -- this PEM is in the small subgroup open $F,">",'malice.pub'; print $F $malice; -- 2.39.5