Skip to content

Commit

Permalink
Pass const char* to proto setters in Conrainers SDK
Browse files Browse the repository at this point in the history
Change-Id: I193b5d132371ea3d6fddca1112e69d7411ad1af1
  • Loading branch information
ipetr0v committed Jan 23, 2025
1 parent a20e7b5 commit 9cfe3e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cc/containers/sdk/orchestrator_crypto_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ absl::StatusOr<SessionKeys> OrchestratorCryptoClient::DeriveSessionKeys(
DeriveSessionKeysRequest request;
request.set_key_origin(key_origin);
request.set_serialized_encapsulated_public_key(
serialized_encapsulated_public_key);
serialized_encapsulated_public_key.data());
DeriveSessionKeysResponse response;

grpc::Status status = stub_->DeriveSessionKeys(&context, request, &response);
Expand All @@ -69,7 +69,7 @@ absl::StatusOr<Signature> OrchestratorCryptoClient::Sign(
context.set_authority(kContextAuthority);
SignRequest request;
request.set_key_origin(key_origin);
request.set_message(message);
request.set_message(message.data());
SignResponse response;

grpc::Status status = stub_->Sign(&context, request, &response);
Expand Down

0 comments on commit 9cfe3e3

Please sign in to comment.