]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Avoid some warnings
authorDmitry Belyavskiy <beldmit@gmail.com>
Sat, 13 Jun 2020 13:35:56 +0000 (16:35 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sat, 13 Jun 2020 13:35:56 +0000 (16:35 +0300)
test/04-pkey.t

index f5e654da54b74db07c7a40a7731eb4c2867e811d..b4897e9ea796fa5a53b07ae4d21f75ae2aecec1c 100644 (file)
@@ -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;