From: Dmitry Belyavskiy Date: Sat, 13 Jun 2020 13:35:56 +0000 (+0300) Subject: Avoid some warnings X-Git-Tag: v3.0.0~88 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=9a4548c819c63b41358072d645454ad7ea56cd2b;p=openssl-gost%2Fengine.git Avoid some warnings --- 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;