diff options
author | leonidlazarev <leonidlazarev@yandex-team.com> | 2023-07-17 19:35:29 +0300 |
---|---|---|
committer | leonidlazarev <leonidlazarev@yandex-team.com> | 2023-07-17 19:35:29 +0300 |
commit | cb8e9a6330e4e5d9a0e2f8506e7469bbd641ec63 (patch) | |
tree | eddb7b81e7d1f5a7ac8078591799509e95572f4e /contrib/libs/grpc/include/grpcpp/security/credentials.h | |
parent | 029cf29f3669091012394221f00dfa0f3631d91b (diff) | |
download | ydb-cb8e9a6330e4e5d9a0e2f8506e7469bbd641ec63.tar.gz |
feat grpc: update to grpc 1.53.1
update grpc to 1.53.1
update grpcio/py3 to 1.53.1
Added patches:
22-grpc-code-output.patch - allow translation of grpc code to internal string type.
23-max-thread-limitation.patch - to provide interface for settings of thread number limit, as
grpc::DynamicThreadPool doesn't provide interface to limit thread number anymore.
24-support_for-non-abort-grpc.patch - generate exception instead of application crash
25-forkable-destruction-order.patch - correct forkable logic for TimerManager
27-skip-child-post-fork-operations.patch - allow to skip child post fork operations to exclude UB (used for unified agent only)
pr33495_fox_nested_fork.patch - fix issues with nested forks
pr33582_fork_handler.patch - disable fork handler support if it is not requested intentionally
Diffstat (limited to 'contrib/libs/grpc/include/grpcpp/security/credentials.h')
-rw-r--r-- | contrib/libs/grpc/include/grpcpp/security/credentials.h | 52 |
1 files changed, 20 insertions, 32 deletions
diff --git a/contrib/libs/grpc/include/grpcpp/security/credentials.h b/contrib/libs/grpc/include/grpcpp/security/credentials.h index ec194aecc3..5a71057e6a 100644 --- a/contrib/libs/grpc/include/grpcpp/security/credentials.h +++ b/contrib/libs/grpc/include/grpcpp/security/credentials.h @@ -1,20 +1,20 @@ -/* - * - * Copyright 2015 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// +// +// Copyright 2015 gRPC authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// #ifndef GRPCPP_SECURITY_CREDENTIALS_H #define GRPCPP_SECURITY_CREDENTIALS_H @@ -29,7 +29,7 @@ #include <grpc/grpc_security_constants.h> #include <grpcpp/channel.h> -#include <grpcpp/impl/codegen/grpc_library.h> +#include <grpcpp/impl/grpc_library.h> #include <grpcpp/security/auth_context.h> #include <grpcpp/security/tls_credentials_options.h> #include <grpcpp/support/channel_arguments.h> @@ -58,12 +58,6 @@ std::shared_ptr<grpc::Channel> CreateCustomChannelWithInterceptors( std::vector< std::unique_ptr<grpc::experimental::ClientInterceptorFactoryInterface>> interceptor_creators); - -GRPC_DEPRECATED( - "Use grpc::XdsCredentials instead. The experimental version will be " - "deleted after the 1.41 release.") -std::shared_ptr<ChannelCredentials> XdsCredentials( - const std::shared_ptr<ChannelCredentials>& fallback_creds); } // namespace experimental /// Builds XDS Credentials. @@ -76,11 +70,8 @@ std::shared_ptr<ChannelCredentials> XdsCredentials( /// for all the calls on that channel. /// /// \see https://grpc.io/docs/guides/auth.html -class ChannelCredentials : private grpc::GrpcLibraryCodegen { +class ChannelCredentials : private grpc::internal::GrpcLibrary { public: - ChannelCredentials(); - ~ChannelCredentials() override; - protected: friend std::shared_ptr<ChannelCredentials> CompositeChannelCredentials( const std::shared_ptr<ChannelCredentials>& channel_creds, @@ -133,11 +124,8 @@ class ChannelCredentials : private grpc::GrpcLibraryCodegen { /// authenticate with a server for a given call on a channel. /// /// \see https://grpc.io/docs/guides/auth.html -class CallCredentials : private grpc::GrpcLibraryCodegen { +class CallCredentials : private grpc::internal::GrpcLibrary { public: - CallCredentials(); - ~CallCredentials() override; - /// Apply this instance's credentials to \a call. virtual bool ApplyToCall(grpc_call* call) = 0; virtual grpc::string DebugString() { |