Index: content/child/webcrypto/openssl/rsa_ssa_openssl.cc |
diff --git a/content/child/webcrypto/openssl/rsa_ssa_openssl.cc b/content/child/webcrypto/openssl/rsa_ssa_openssl.cc |
index dbe813edf78248d1ab8fe525bc00e8c1352584f2..2845ca8e1b2b052e734806647cd576d670190d48 100644 |
--- a/content/child/webcrypto/openssl/rsa_ssa_openssl.cc |
+++ b/content/child/webcrypto/openssl/rsa_ssa_openssl.cc |
@@ -97,14 +97,12 @@ class RsaSsaImplementation : public RsaHashedAlgorithm { |
return Status::OperationError(); |
} |
- // This function takes a non-const pointer to the signature, however does |
- // not mutate it, so casting is safe. |
- // Also note that the return value can be: |
+ // Note that the return value can be: |
// 1 --> Success |
// 0 --> Verification failed |
// <0 --> Operation error |
int rv = EVP_DigestVerifyFinal(ctx.get(), |
- const_cast<uint8_t*>(signature.bytes()), |
+ signature.bytes(), |
signature.byte_length()); |
*signature_match = rv == 1; |
return rv >= 0 ? Status::Success() : Status::OperationError(); |