diff --git a/reference/openssl/functions/openssl-verify.xml b/reference/openssl/functions/openssl-verify.xml index 56b0b6f10294..0ff3214c548c 100644 --- a/reference/openssl/functions/openssl-verify.xml +++ b/reference/openssl/functions/openssl-verify.xml @@ -119,9 +119,9 @@ $pubkeyid = openssl_pkey_get_public("file://src/openssl-0.9.6/demos/sign/cert.pe // state whether signature is okay or not $ok = openssl_verify($data, $signature, $pubkeyid); -if ($ok == 1) { +if ($ok === 1) { echo "good"; -} elseif ($ok == 0) { +} elseif ($ok === 0) { echo "bad"; } else { echo "ugly, error checking signature"; @@ -153,9 +153,9 @@ openssl_sign($data, $signature, $private_key_res, "sha256WithRSAEncryption"); //verify signature $ok = openssl_verify($data, $signature, $public_key_res, OPENSSL_ALGO_SHA256); -if ($ok == 1) { +if ($ok === 1) { echo "valid"; -} elseif ($ok == 0) { +} elseif ($ok === 0) { echo "invalid"; } else { echo "error: ".openssl_error_string();