Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8822b0bb3624d5b31f9b17a22fa1b5e7685cc6a1
      
https://github.com/WebKit/WebKit/commit/8822b0bb3624d5b31f9b17a22fa1b5e7685cc6a1
  Author: Adrien Destugues <[email protected]>
  Date:   2026-01-29 (Thu, 29 Jan 2026)

  Changed paths:
    M Source/WebCore/crypto/openssl/CryptoAlgorithmECDSAOpenSSL.cpp
    M Source/WebCore/crypto/openssl/CryptoAlgorithmHKDFOpenSSL.cpp
    M Source/WebCore/crypto/openssl/CryptoKeyECOpenSSL.cpp

  Log Message:
  -----------
  crypto/openssl: fix build with OpenSSL 3.x
https://bugs.webkit.org/show_bug.cgi?id=245146

Reviewed by Adrian Perez de Castro.

Existing code is written against BoringSSL and LibreSSL.
There are two main incompatibilities with OpenSSL 3.x:

- BoringSSL and LibreSSL have implemented HKDF with a different
  (simpler) API. Provide a wrapper to call the more complicated OpenSSL
  API.
- OpenSSL has added some const pointers, but not consistently. So the
  variable must be const and then the const must be casted away to call
  other functions.

No new tests: no functional changes to existing platforms.
* Source/WebCore/crypto/openssl/CryptoAlgorithmECDSAOpenSSL.cpp:
(WebCore::CryptoAlgorithmECDSA::platformSign): add const and const_cast
(WebCore::CryptoAlgorithmECDSA::platformVerify): add const and const_cast
* Source/WebCore/crypto/openssl/CryptoAlgorithmHKDFOpenSSL.cpp:
(WebCore::HKDF): add HKDF function implementation using OpenSSL3 APIs
* Source/WebCore/crypto/openssl/CryptoKeyECOpenSSL.cpp:
(WebCore::CryptoKeyEC::platformImportPkcs8): add const and const_cast
(WebCore::CryptoKeyEC::platformExportRaw const): add const and const_cast
(WebCore::CryptoKeyEC::platformAddFieldElements const): add const and const_cast

Canonical link: https://commits.webkit.org/306425@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to