From 02fc09536f9fba8b5cd61ee9f16176ab9051a013 Mon Sep 17 00:00:00 2001 From: Alex Hong <9397363+hongalex@users.noreply.github.com> Date: Thu, 2 Jul 2026 22:12:20 +0000 Subject: [PATCH] feat(rest): add PQC curves to REST client --- google/cloud/internal/curl_impl.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/google/cloud/internal/curl_impl.cc b/google/cloud/internal/curl_impl.cc index 9d897bfe59909..de4f04afc9809 100644 --- a/google/cloud/internal/curl_impl.cc +++ b/google/cloud/internal/curl_impl.cc @@ -601,6 +601,10 @@ Status CurlImpl::MakeRequestImpl(RestContext& context) { if (!status.ok()) return OnTransferError(context, std::move(status)); handle_.SetSocketCallback(socket_options_); if (!status.ok()) return OnTransferError(context, std::move(status)); + status = handle_.SetOption(CURLOPT_SSL_EC_CURVES, "X25519MLKEM768:X25519:P-256:P-384"); + if (!status.ok()) { + GCP_LOG(INFO) << "CURLOPT_SSL_EC_CURVES failed: " << status; + } status = handle_.SetOption(CURLOPT_NOSIGNAL, 1); if (!status.ok()) return OnTransferError(context, std::move(status)); status = handle_.SetOption(CURLOPT_TCP_KEEPALIVE, 1L);