Skip to content

Commit 2c2f964

Browse files
Sync c-core 1.75.0-pre1 (#341)
* Sync c-core 1.75.0-pre1 * Try extra include guard * import
1 parent 98f8175 commit 2c2f964

File tree

197 files changed

+16629
-2211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+16629
-2211
lines changed

gRPC-C++.podspec

Lines changed: 36 additions & 4 deletions
Large diffs are not rendered by default.

gRPC-Core.podspec

Lines changed: 43 additions & 4 deletions
Large diffs are not rendered by default.

gRPC-ProtoRPC.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
Pod::Spec.new do |s|
2323
s.name = 'gRPC-ProtoRPC'
24-
version = '1.74.0'
24+
version = '1.75.0-pre1'
2525
s.version = version
2626
s.summary = 'RPC library for Protocol Buffers, based on gRPC'
2727
s.homepage = 'https://grpc.io'

gRPC-RxLibrary.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
Pod::Spec.new do |s|
2323
s.name = 'gRPC-RxLibrary'
24-
version = '1.74.0'
24+
version = '1.75.0-pre1'
2525
s.version = version
2626
s.summary = 'Reactive Extensions library for iOS/OSX.'
2727
s.homepage = 'https://grpc.io'

gRPC.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
Pod::Spec.new do |s|
2222
s.name = 'gRPC'
23-
version = '1.74.0'
23+
version = '1.75.0-pre1'
2424
s.version = version
2525
s.summary = 'gRPC client library for iOS/OSX'
2626
s.homepage = 'https://grpc.io'

include/grpc/credentials.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,14 +656,20 @@ grpc_tls_certificate_provider_static_data_create(
656656
* be null if no identity credentials are needed.
657657
* - root_cert_path is the file path to the root certificate bundle. This
658658
* may be null if no root certs are needed.
659+
* - spiffe_bundle_map_path is the file path to the SPIFFE Bundle Map. If
660+
* configured, this will be used to find the roots of trust for a given SPIFFE
661+
* domain during verification. See
662+
* https://github.com/grpc/proposal/blob/master/A87-mtls-spiffe-support.md for
663+
* more details on SPIFFE verification.
659664
* - refresh_interval_sec is the refreshing interval that we will check the
660665
* files for updates.
661666
* It does not take ownership of parameters.
662667
*/
663668
GRPCAPI grpc_tls_certificate_provider*
664669
grpc_tls_certificate_provider_file_watcher_create(
665670
const char* private_key_path, const char* identity_certificate_path,
666-
const char* root_cert_path, unsigned int refresh_interval_sec);
671+
const char* root_cert_path, const char* spiffe_bundle_map_path,
672+
unsigned int refresh_interval_sec);
667673

668674
/**
669675
* EXPERIMENTAL API - Subject to change

include/grpcpp/security/tls_certificate_provider.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,27 @@ class GRPCXX_DLL FileWatcherCertificateProvider final
109109
FileWatcherCertificateProvider(const std::string& private_key_path,
110110
const std::string& identity_certificate_path,
111111
const std::string& root_cert_path,
112+
const std::string& spiffe_bundle_map_path,
112113
unsigned int refresh_interval_sec);
113114
// Constructor to get credential updates from identity file paths only.
114115
FileWatcherCertificateProvider(const std::string& private_key_path,
115116
const std::string& identity_certificate_path,
116117
unsigned int refresh_interval_sec)
117118
: FileWatcherCertificateProvider(private_key_path,
118-
identity_certificate_path, "",
119+
identity_certificate_path, "", "",
119120
refresh_interval_sec) {}
120121
// Constructor to get credential updates from root file path only.
121122
FileWatcherCertificateProvider(const std::string& root_cert_path,
122123
unsigned int refresh_interval_sec)
123-
: FileWatcherCertificateProvider("", "", root_cert_path,
124+
: FileWatcherCertificateProvider("", "", root_cert_path, "",
124125
refresh_interval_sec) {}
126+
FileWatcherCertificateProvider(const std::string& private_key_path,
127+
const std::string& identity_certificate_path,
128+
const std::string& root_cert_path,
129+
unsigned int refresh_interval_sec)
130+
: FileWatcherCertificateProvider(
131+
private_key_path, identity_certificate_path, root_cert_path, "",
132+
refresh_interval_sec) {}
125133

126134
~FileWatcherCertificateProvider() override;
127135

include/grpcpp/version_info.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#define GRPCPP_VERSION_INFO_H
2020

2121
#define GRPC_CPP_VERSION_MAJOR 1
22-
#define GRPC_CPP_VERSION_MINOR 74
22+
#define GRPC_CPP_VERSION_MINOR 75
2323
#define GRPC_CPP_VERSION_PATCH 0
24-
#define GRPC_CPP_VERSION_TAG ""
25-
#define GRPC_CPP_VERSION_STRING "1.74.0"
24+
#define GRPC_CPP_VERSION_TAG "pre1"
25+
#define GRPC_CPP_VERSION_STRING "1.75.0-pre1"
2626

2727
#endif // GRPCPP_VERSION_INFO_H

src/core/call/client_call.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ ClientCall::ClientCall(grpc_call*, uint32_t, grpc_completion_queue* cq,
127127
grpc_call_error ClientCall::StartBatch(const grpc_op* ops, size_t nops,
128128
void* notify_tag,
129129
bool is_notify_tag_closure) {
130-
GRPC_LATENT_SEE_PARENT_SCOPE("ClientCall::StartBatch");
130+
GRPC_LATENT_SEE_SCOPE("ClientCall::StartBatch");
131131
if (nops == 0) {
132132
EndOpImmediately(cq_, notify_tag, is_notify_tag_closure);
133133
return GRPC_CALL_OK;
@@ -183,7 +183,7 @@ void ClientCall::CancelWithError(grpc_error_handle error) {
183183

184184
template <typename Batch>
185185
void ClientCall::ScheduleCommittedBatch(Batch batch) {
186-
GRPC_LATENT_SEE_INNER_SCOPE("ClientCall::ScheduleCommittedBatch");
186+
GRPC_LATENT_SEE_SCOPE("ClientCall::ScheduleCommittedBatch");
187187
auto cur_state = call_state_.load(std::memory_order_acquire);
188188
while (true) {
189189
switch (cur_state) {
@@ -226,7 +226,7 @@ void ClientCall::ScheduleCommittedBatch(Batch batch) {
226226

227227
Party::WakeupHold ClientCall::StartCall(
228228
const grpc_op& send_initial_metadata_op) {
229-
GRPC_LATENT_SEE_INNER_SCOPE("ClientCall::StartCall");
229+
GRPC_LATENT_SEE_SCOPE("ClientCall::StartCall");
230230
auto cur_state = call_state_.load(std::memory_order_acquire);
231231
CToMetadata(send_initial_metadata_op.data.send_initial_metadata.metadata,
232232
send_initial_metadata_op.data.send_initial_metadata.count,
@@ -279,7 +279,7 @@ bool ClientCall::StartCallMaybeUpdateState(uintptr_t& cur_state,
279279

280280
void ClientCall::CommitBatch(const grpc_op* ops, size_t nops, void* notify_tag,
281281
bool is_notify_tag_closure) {
282-
GRPC_LATENT_SEE_INNER_SCOPE("ClientCall::CommitBatch");
282+
GRPC_LATENT_SEE_SCOPE("ClientCall::CommitBatch");
283283
if (nops == 1 && ops[0].op == GRPC_OP_SEND_INITIAL_METADATA) {
284284
StartCall(ops[0]);
285285
EndOpImmediately(cq_, notify_tag, is_notify_tag_closure);

0 commit comments

Comments
 (0)