From def8824bc283ecea4932fb173ba4cd8f191345bc Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 21 May 2023 00:20:04 -0700 Subject: Upgrade WebKit (#2980) * [internal] Show the file path to the calling function from JS * [internal] Make `JSC.NewFunction` more type safe * Upgrade WebKit * Finish --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- src/bun.js/bindings/webcrypto/CryptoKeyOKPOpenSSL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bun.js/bindings/webcrypto/CryptoKeyOKPOpenSSL.cpp') diff --git a/src/bun.js/bindings/webcrypto/CryptoKeyOKPOpenSSL.cpp b/src/bun.js/bindings/webcrypto/CryptoKeyOKPOpenSSL.cpp index 8c6a25f19..ea3a4d498 100644 --- a/src/bun.js/bindings/webcrypto/CryptoKeyOKPOpenSSL.cpp +++ b/src/bun.js/bindings/webcrypto/CryptoKeyOKPOpenSSL.cpp @@ -127,7 +127,7 @@ RefPtr CryptoKeyOKP::importSpki(CryptoAlgorithmIdentifier identifi return nullptr; ++index; - return create(identifier, namedCurve, CryptoKeyType::Public, Span { keyData.data() + index, keyData.size() - index }, extractable, usages); + return create(identifier, namedCurve, CryptoKeyType::Public, std::span { keyData.data() + index, keyData.size() - index }, extractable, usages); } constexpr uint8_t OKPOIDFirstByte = 6; @@ -254,7 +254,7 @@ RefPtr CryptoKeyOKP::importPkcs8(CryptoAlgorithmIdentifier identif if (keyData.size() < index + 1) return nullptr; - return create(identifier, namedCurve, CryptoKeyType::Private, Span { keyData.data() + index, keyData.size() - index }, extractable, usages); + return create(identifier, namedCurve, CryptoKeyType::Private, std::span { keyData.data() + index, keyData.size() - index }, extractable, usages); } ExceptionOr> CryptoKeyOKP::exportPkcs8() const -- cgit v1.2.3