grpc 1.85.0 → 1.86.0.pre1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Makefile +13 -9
- data/etc/roots.pem +0 -583
- data/include/grpc/channel_factory.h +78 -0
- data/include/grpc/credentials.h +21 -0
- data/include/grpc/grpc.h +7 -0
- data/include/grpc/grpc_security_constants.h +2 -0
- data/include/grpc/module.modulemap +1 -0
- data/src/core/call/call_filters.cc +4 -1
- data/src/core/call/call_filters.h +3 -1
- data/src/core/call/call_spine.h +12 -6
- data/src/core/call/call_state.h +3 -3
- data/src/core/call/client_call.cc +4 -1
- data/src/core/call/client_call.h +1 -0
- data/src/core/call/evaluate_args.cc +15 -14
- data/src/core/call/filter_fusion.h +2 -15
- data/src/core/call/interception_chain.h +2 -7
- data/src/core/call/metadata_batch.cc +5 -0
- data/src/core/call/metadata_batch.h +34 -3
- data/src/core/call/request_buffer.cc +1 -1
- data/src/core/call/server_call.cc +3 -3
- data/src/core/call/server_call.h +15 -0
- data/src/core/channelz/channelz_registry.cc +4 -4
- data/src/core/channelz/ztrace_collector.h +11 -2
- data/src/core/client_channel/backup_poller.cc +1 -2
- data/src/core/client_channel/channel_factory.cc +110 -0
- data/src/core/client_channel/channel_factory.h +45 -0
- data/src/core/client_channel/global_subchannel_pool.cc +2 -2
- data/src/core/client_channel/lame_channel.cc +59 -0
- data/src/core/client_channel/lame_channel.h +86 -0
- data/src/core/credentials/call/external/aws_request_signer.cc +2 -1
- data/src/core/credentials/call/external/url_external_account_credentials.cc +6 -17
- data/src/core/credentials/call/external/url_external_account_credentials.h +0 -1
- data/src/core/credentials/call/jwt/jwt_verifier.cc +25 -13
- data/src/core/credentials/call/oauth2/oauth2_credentials.cc +6 -4
- data/src/core/credentials/call/regional_access_boundary_fetcher.cc +16 -0
- data/src/core/credentials/call/regional_access_boundary_fetcher.h +6 -2
- data/src/core/credentials/transport/tls/grpc_tls_credentials_options.cc +14 -0
- data/src/core/credentials/transport/tls/grpc_tls_credentials_options.h +12 -2
- data/src/core/credentials/transport/tls/ssl_utils.cc +20 -0
- data/src/core/credentials/transport/tls/ssl_utils.h +4 -0
- data/src/core/credentials/transport/tls/tls_security_connector.cc +6 -2
- data/src/core/ext/filters/http/server/http_server_filter.cc +6 -1
- data/src/core/ext/filters/rbac/rbac_filter.cc +3 -41
- data/src/core/ext/filters/rbac/rbac_filter.h +2 -11
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +2 -2
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +31 -24
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +1 -2
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +69 -102
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +1 -1
- data/src/core/ext/transport/chttp2/transport/flow_control.h +2 -2
- data/src/core/ext/transport/chttp2/transport/flow_control_manager.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame.cc +15 -19
- data/src/core/ext/transport/chttp2/transport/frame.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +18 -61
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +0 -4
- data/src/core/ext/transport/chttp2/transport/frame_security.cc +1 -2
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +9 -0
- data/src/core/ext/transport/chttp2/transport/goaway.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/goaway.h +0 -5
- data/src/core/ext/transport/chttp2/transport/header_assembler.h +1 -5
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc +3 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.h +8 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +33 -0
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.cc +34 -19
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.h +5 -2
- data/src/core/ext/transport/chttp2/transport/http2_server_transport.cc +134 -82
- data/src/core/ext/transport/chttp2/transport/http2_server_transport.h +30 -15
- data/src/core/ext/transport/chttp2/transport/http2_settings_promises.h +4 -3
- data/src/core/ext/transport/chttp2/transport/http2_transport.cc +9 -33
- data/src/core/ext/transport/chttp2/transport/http2_transport.h +1 -6
- data/src/core/ext/transport/chttp2/transport/http2_transport_stats.h +60 -0
- data/src/core/ext/transport/chttp2/transport/internal.h +6 -1
- data/src/core/ext/transport/chttp2/transport/keepalive.h +1 -4
- data/src/core/ext/transport/chttp2/transport/parsing.cc +4 -8
- data/src/core/ext/transport/chttp2/transport/ping_promise.cc +35 -11
- data/src/core/ext/transport/chttp2/transport/ping_promise.h +52 -47
- data/src/core/ext/transport/chttp2/transport/read_context.h +19 -5
- data/src/core/ext/transport/chttp2/transport/security_frame.h +7 -6
- data/src/core/ext/transport/chttp2/transport/stream_data_queue.h +7 -5
- data/src/core/ext/transport/chttp2/transport/transport_common.cc +47 -0
- data/src/core/ext/transport/chttp2/transport/transport_common.h +29 -0
- data/src/core/ext/transport/chttp2/transport/writable_streams.h +1 -1
- data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +1 -7
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +16 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +4 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +129 -81
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +50 -39
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +411 -163
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +95 -44
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +41 -8
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +8 -5
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +427 -222
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +97 -66
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +130 -99
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +29 -27
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +49 -33
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +19 -8
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +95 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +33 -6
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb.h +93 -11
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.c +8 -5
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +656 -134
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +117 -51
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +45 -23
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +19 -10
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +99 -34
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +12 -7
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +344 -273
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +62 -69
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +1 -3
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +53 -22
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +9 -7
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +108 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +26 -2
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +809 -231
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +183 -77
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +151 -26
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +17 -9
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +24 -8
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +6 -5
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb.h +224 -16
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb_minitable.c +83 -10
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb.h +95 -79
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb_minitable.c +23 -22
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +34 -18
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +10 -9
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb.h +243 -2
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.c +53 -5
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +53 -22
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +9 -7
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +23 -7
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +9 -4
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +516 -215
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +99 -60
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +60 -28
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.c +12 -10
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +109 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +32 -2
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb.h +37 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb_minitable.c +7 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +65 -47
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +29 -12
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +20 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +6 -3
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb.h +776 -88
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb_minitable.c +195 -35
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb_minitable.h +5 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/address.upb.h +23 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/address.upb_minitable.c +10 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +44 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +11 -2
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb.h +218 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb_minitable.c +70 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb_minitable.h +31 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.c +30 -24
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.c +166 -152
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +467 -422
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +120 -110
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +912 -857
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.c +26 -19
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +59 -54
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +356 -346
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.c +49 -37
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +599 -483
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +10 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.c +65 -49
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +165 -161
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +369 -327
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +5 -15
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +129 -121
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +224 -204
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +2046 -1932
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +70 -37
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +7 -3
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.c +5 -3
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/composite/v3/composite.upbdefs.c +121 -78
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/composite/v3/composite.upbdefs.h +10 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upbdefs.c +165 -160
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +121 -118
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.c +68 -37
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.c +48 -40
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +44 -37
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +919 -870
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upbdefs.c +26 -14
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +44 -36
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +372 -371
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +32 -28
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/address.upbdefs.c +17 -15
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.c +4 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/scope.upbdefs.c +76 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/scope.upbdefs.h +37 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.c +1 -1
- data/src/core/filter/ext_proc/ext_proc_filter.cc +537 -259
- data/src/core/filter/ext_proc/ext_proc_filter.h +47 -14
- data/src/core/filter/ext_proc/ext_proc_messages.cc +38 -17
- data/src/core/filter/ext_proc/ext_proc_messages.h +19 -7
- data/src/core/filter/filter_args.h +5 -60
- data/src/core/handshaker/http_connect/http_connect_client_handshaker.cc +1 -1
- data/src/core/handshaker/security/pipelined_secure_endpoint.cc +23 -22
- data/src/core/handshaker/security/secure_endpoint.cc +16 -16
- data/src/core/lib/channel/channel_stack.cc +0 -12
- data/src/core/lib/channel/channel_stack.h +0 -8
- data/src/core/lib/channel/promise_based_filter.cc +57 -44
- data/src/core/lib/channel/promise_based_filter.h +29 -41
- data/src/core/lib/event_engine/ares_resolver.cc +10 -4
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +1 -1
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +3 -3
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +1 -5
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +10 -12
- data/src/core/lib/event_engine/posix_engine/file_descriptor_collection.cc +3 -17
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +21 -1
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +5 -5
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +10 -12
- data/src/core/lib/event_engine/posix_engine/posix_interface.h +1 -1
- data/src/core/lib/event_engine/posix_engine/timer.cc +2 -2
- data/src/core/lib/event_engine/shim.cc +1 -6
- data/src/core/lib/event_engine/shim.h +0 -5
- data/src/core/lib/event_engine/windows/windows_engine.cc +4 -4
- data/src/core/lib/event_engine/windows/windows_listener.cc +1 -1
- data/src/core/lib/experiments/experiments.cc +144 -261
- data/src/core/lib/experiments/experiments.h +48 -120
- data/src/core/lib/iomgr/iomgr_windows.cc +1 -6
- data/src/core/lib/iomgr/tcp_posix.cc +21 -21
- data/src/core/lib/iomgr/tcp_server_posix.cc +64 -242
- data/src/core/lib/iomgr/tcp_server_windows.cc +0 -469
- data/src/core/lib/promise/activity.cc +8 -8
- data/src/core/lib/promise/activity.h +5 -5
- data/src/core/lib/promise/inter_activity_pipe.h +3 -3
- data/src/core/lib/promise/party.cc +5 -5
- data/src/core/lib/promise/status_flag.h +7 -2
- data/src/core/lib/resource_quota/memory_quota.cc +2 -2
- data/src/core/lib/security/authorization/rbac_policy.h +2 -2
- data/src/core/lib/surface/call.cc +13 -3
- data/src/core/lib/surface/call.h +23 -6
- data/src/core/lib/surface/channel_create.cc +7 -1
- data/src/core/lib/surface/channel_init.h +1 -8
- data/src/core/lib/surface/filter_stack_call.cc +16 -0
- data/src/core/lib/surface/filter_stack_call.h +1 -0
- data/src/core/lib/surface/init.cc +3 -3
- data/src/core/lib/surface/legacy_channel.cc +4 -1
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/transport.cc +15 -8
- data/src/core/lib/transport/transport_framing_endpoint_extension.h +8 -2
- data/src/core/load_balancing/outlier_detection/outlier_detection.cc +99 -8
- data/src/core/load_balancing/outlier_detection/outlier_detection_metrics.cc +38 -0
- data/src/core/load_balancing/outlier_detection/outlier_detection_metrics.h +55 -0
- data/src/core/load_balancing/ring_hash/ring_hash.cc +2 -1
- data/src/core/load_balancing/rls/rls.cc +21 -1
- data/src/core/load_balancing/xds/cds.cc +4 -51
- data/src/core/plugin_registry/grpc_plugin_registry.cc +10 -13
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +0 -7
- data/src/core/resolver/xds/xds_resolver.cc +1 -1
- data/src/core/server/server.cc +60 -4
- data/src/core/server/server_config_selector.h +4 -18
- data/src/core/server/server_config_selector_filter.cc +20 -146
- data/src/core/server/server_config_selector_filter.h +2 -2
- data/src/core/server/xds_server_config_fetcher.cc +5 -20
- data/src/core/transport/auth_context.cc +15 -5
- data/src/core/transport/auth_context.h +5 -0
- data/src/core/tsi/ssl_telemetry_utils.cc +9 -1
- data/src/core/tsi/ssl_transport_security.cc +158 -52
- data/src/core/tsi/ssl_transport_security.h +18 -2
- data/src/core/tsi/ssl_transport_security_utils.cc +123 -12
- data/src/core/tsi/ssl_transport_security_utils.h +19 -0
- data/src/core/util/latent_see.cc +65 -3
- data/src/core/util/latent_see.h +57 -12
- data/src/core/util/linux/cpu.cc +12 -6
- data/src/core/util/mpscq.cc +2 -2
- data/src/core/util/sync_abseil.cc +3 -3
- data/src/core/util/trie_lookup.h +5 -1
- data/src/core/util/windows/env.cc +1 -0
- data/src/core/util/work_serializer.cc +1 -1
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc +10 -9
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.h +3 -3
- data/src/core/xds/grpc/streaming_call_promise_wrapper.cc +5 -2
- data/src/core/xds/grpc/streaming_call_promise_wrapper.h +2 -5
- data/src/core/xds/grpc/xds_audit_logger_registry.cc +0 -54
- data/src/core/xds/grpc/xds_audit_logger_registry.h +0 -8
- data/src/core/xds/grpc/xds_bootstrap_grpc_builder.cc +2 -28
- data/src/core/xds/grpc/xds_bootstrap_grpc_builder.h +0 -20
- data/src/core/xds/grpc/xds_client_grpc.cc +4 -4
- data/src/core/xds/grpc/xds_client_grpc.h +1 -1
- data/src/core/xds/grpc/xds_cluster_parser.cc +5 -1
- data/src/core/xds/grpc/xds_common_types_parser.cc +12 -0
- data/src/core/xds/grpc/xds_endpoint_parser.cc +3 -3
- data/src/core/xds/grpc/xds_http_composite_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_composite_filter.h +1 -27
- data/src/core/xds/grpc/xds_http_ext_proc_filter.cc +1 -5
- data/src/core/xds/grpc/xds_http_ext_proc_filter.h +3 -29
- data/src/core/xds/grpc/xds_http_fault_filter.cc +0 -4
- data/src/core/xds/grpc/xds_http_fault_filter.h +0 -26
- data/src/core/xds/grpc/xds_http_filter.h +1 -63
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.h +1 -27
- data/src/core/xds/grpc/xds_http_rbac_filter.cc +0 -527
- data/src/core/xds/grpc/xds_http_rbac_filter.h +0 -15
- data/src/core/xds/grpc/xds_http_stateful_session_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_stateful_session_filter.h +0 -26
- data/src/core/xds/grpc/xds_listener.cc +0 -2
- data/src/core/xds/grpc/xds_listener.h +0 -2
- data/src/core/xds/grpc/xds_listener_parser.cc +0 -7
- data/src/core/xds/grpc/xds_matcher.cc +17 -11
- data/src/core/xds/grpc/xds_matcher.h +2 -1
- data/src/core/xds/grpc/xds_matcher_context.cc +11 -0
- data/src/core/xds/grpc/xds_matcher_context.h +3 -2
- data/src/core/xds/grpc/xds_matcher_input.cc +19 -1
- data/src/core/xds/grpc/xds_matcher_parse.cc +3 -2
- data/src/core/xds/grpc/xds_route_config.cc +0 -2
- data/src/core/xds/grpc/xds_route_config.h +0 -2
- data/src/core/xds/grpc/xds_route_config_parser.cc +0 -5
- data/src/core/xds/grpc/xds_routing.cc +22 -112
- data/src/core/xds/grpc/xds_routing.h +2 -27
- data/src/core/xds/grpc/xds_transport_factory_grpc.cc +236 -0
- data/src/core/xds/grpc/xds_transport_factory_grpc.h +95 -0
- data/src/core/xds/grpc/xds_transport_grpc.cc +78 -241
- data/src/core/xds/grpc/xds_transport_grpc.h +41 -51
- data/src/core/xds/xds_client/lrs_client.cc +3 -5
- data/src/core/xds/xds_client/lrs_client.h +2 -1
- data/src/core/xds/xds_client/xds_client.cc +36 -23
- data/src/core/xds/xds_client/xds_client.h +6 -5
- data/src/core/xds/xds_client/xds_transport.h +110 -108
- data/src/core/xds/xds_client/xds_transport_factory.h +43 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +4 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +6 -0
- data/src/ruby/lib/grpc/generic/rpc_server.rb +2 -2
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/third_party/boringssl-with-bazel/crypto/asn1/a_type.cc +54 -19
- data/third_party/boringssl-with-bazel/crypto/asn1/asn1_lib.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/asn1/internal.h +58 -12
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_dec.cc +13 -13
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_enc.cc +13 -11
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_fre.cc +14 -18
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_new.cc +31 -35
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_typ.cc +0 -2
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_utl.cc +17 -24
- data/third_party/boringssl-with-bazel/crypto/bio/bio.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/bio_mem.cc +9 -3
- data/third_party/boringssl-with-bazel/crypto/bio/connect.cc +3 -3
- data/third_party/boringssl-with-bazel/crypto/bio/fd.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/file.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/internal.h +2 -3
- data/third_party/boringssl-with-bazel/crypto/bio/pair.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/socket.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/bytestring/cbb.cc +70 -45
- data/third_party/boringssl-with-bazel/crypto/bytestring/cbs.cc +15 -34
- data/third_party/boringssl-with-bazel/crypto/bytestring/internal.h +5 -0
- data/third_party/boringssl-with-bazel/crypto/cipher/e_aesgcmsiv.cc +20 -165
- data/third_party/boringssl-with-bazel/crypto/cipher/e_tls.cc +7 -4
- data/third_party/boringssl-with-bazel/crypto/cipher/internal.h +159 -0
- data/third_party/boringssl-with-bazel/crypto/curve25519/curve25519.cc +295 -16
- data/third_party/boringssl-with-bazel/crypto/curve25519/internal.h +25 -14
- data/third_party/boringssl-with-bazel/crypto/dh/params.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/ec/hash_to_curve.cc +208 -36
- data/third_party/boringssl-with-bazel/crypto/err/err.cc +3 -2
- data/third_party/boringssl-with-bazel/crypto/evp/evp.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/evp/evp_kem.cc +25 -6
- data/third_party/boringssl-with-bazel/crypto/evp/internal.h +15 -11
- data/third_party/boringssl-with-bazel/crypto/evp/p_ec.cc +121 -0
- data/third_party/boringssl-with-bazel/crypto/evp/p_mlkem.cc +34 -9
- data/third_party/boringssl-with-bazel/crypto/evp/p_rsa.cc +76 -8
- data/third_party/boringssl-with-bazel/crypto/evp/p_xwing.cc +47 -20
- data/third_party/boringssl-with-bazel/crypto/ex_data.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/aes_nohw.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/gcm.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bcm.cc +1 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/add.cc.inc +9 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/asm/x86_64-gcc.cc.inc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/exponentiation.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/internal.h +12 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/jacobi.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/montgomery_inv.cc.inc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/prime.cc.inc +3 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/rsaz_exp.cc.inc +6 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/sqrt.cc.inc +21 -21
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/aead.cc.inc +4 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/cipher.cc.inc +97 -132
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/internal.h +7 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/dh.cc.inc +3 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/internal.h +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec.cc.inc +77 -17
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec_montgomery.cc.inc +13 -13
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/felem.cc.inc +117 -34
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/internal.h +67 -18
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/oct.cc.inc +29 -151
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256-nistz.cc.inc +740 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256-nistz.h +207 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256.cc.inc +407 -519
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/simple.cc.inc +27 -28
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ecdsa/ecdsa.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/entropy/jitter.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/fips_shared_support.cc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/keccak/internal.h +70 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/keccak/keccak.cc.inc +292 -52
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mldsa/mldsa.cc.inc +226 -69
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mlkem/mlkem.cc.inc +238 -83
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rsa/rsa_impl.cc.inc +6 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/sha/sha1.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/fors.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/hpke/hpke.cc +327 -272
- data/third_party/boringssl-with-bazel/crypto/hrss/hrss.cc +14 -14
- data/third_party/boringssl-with-bazel/crypto/internal.h +63 -0
- data/third_party/boringssl-with-bazel/crypto/mem_internal.h +38 -3
- data/third_party/boringssl-with-bazel/crypto/obj/obj_dat.h +97 -1
- data/third_party/boringssl-with-bazel/crypto/pem/internal.h +86 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_all.cc +8 -5
- data/third_party/boringssl-with-bazel/crypto/pem/pem_lib.cc +41 -73
- data/third_party/boringssl-with-bazel/crypto/pem/pem_pk8.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_pkey.cc +10 -4
- data/third_party/boringssl-with-bazel/crypto/pem/pem_x509.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_xaux.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pkcs7/pkcs7.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/pkcs7/pkcs7_x509.cc +2 -2
- data/third_party/boringssl-with-bazel/crypto/pkcs8/pkcs8_x509.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/poly1305/internal.h +17 -0
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305_arm.cc +1 -13
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305_vec.cc +3 -3
- data/third_party/boringssl-with-bazel/crypto/slhdsa/slhdsa.cc +23 -6
- data/third_party/boringssl-with-bazel/crypto/stack/stack.cc +7 -0
- data/third_party/boringssl-with-bazel/crypto/trust_token/internal.h +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/a_verify.cc +14 -7
- data/third_party/boringssl-with-bazel/crypto/x509/internal.h +110 -76
- data/third_party/boringssl-with-bazel/crypto/x509/name_print.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/rsa_pss.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/t_req.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/t_x509.cc +6 -5
- data/third_party/boringssl-with-bazel/crypto/x509/v3_crld.cc +11 -53
- data/third_party/boringssl-with-bazel/crypto/x509/v3_ncons.cc +5 -5
- data/third_party/boringssl-with-bazel/crypto/x509/v3_purp.cc +16 -39
- data/third_party/boringssl-with-bazel/crypto/x509/v3_skey.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/v3_utl.cc +12 -16
- data/third_party/boringssl-with-bazel/crypto/x509/x509_cmp.cc +9 -11
- data/third_party/boringssl-with-bazel/crypto/x509/x509_mtc.cc +598 -0
- data/third_party/boringssl-with-bazel/crypto/x509/x509_obj.cc +9 -8
- data/third_party/boringssl-with-bazel/crypto/x509/x509_set.cc +14 -18
- data/third_party/boringssl-with-bazel/crypto/x509/x509_vfy.cc +315 -390
- data/third_party/boringssl-with-bazel/crypto/x509/x509_vpm.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/x509name.cc +31 -29
- data/third_party/boringssl-with-bazel/crypto/x509/x_all.cc +10 -9
- data/third_party/boringssl-with-bazel/crypto/x509/x_crl.cc +3 -53
- data/third_party/boringssl-with-bazel/crypto/x509/x_name.cc +37 -59
- data/third_party/boringssl-with-bazel/crypto/x509/x_pubkey.cc +29 -47
- data/third_party/boringssl-with-bazel/crypto/x509/x_req.cc +2 -1
- data/third_party/boringssl-with-bazel/crypto/x509/x_x509.cc +53 -53
- data/third_party/boringssl-with-bazel/gen/boringssl_prefix_symbols_internal_x86_64_win_asm.inc +24 -0
- data/third_party/boringssl-with-bazel/gen/boringssl_prefix_symbols_internal_x86_win_asm.inc +24 -0
- data/third_party/boringssl-with-bazel/gen/crypto/err_data.cc +509 -497
- data/third_party/boringssl-with-bazel/include/openssl/aead.h +7 -19
- data/third_party/boringssl-with-bazel/include/openssl/asm_base.h +1 -1
- data/third_party/boringssl-with-bazel/include/openssl/asn1.h +6 -10
- data/third_party/boringssl-with-bazel/include/openssl/base.h +43 -16
- data/third_party/boringssl-with-bazel/include/openssl/bio.h +25 -10
- data/third_party/boringssl-with-bazel/include/openssl/bytestring.h +33 -1
- data/third_party/boringssl-with-bazel/include/openssl/cipher.h +11 -9
- data/third_party/boringssl-with-bazel/include/openssl/configuration.h +18 -0
- data/third_party/boringssl-with-bazel/include/openssl/curve25519.h +36 -0
- data/third_party/boringssl-with-bazel/include/openssl/digest.h +4 -4
- data/third_party/boringssl-with-bazel/include/openssl/ec.h +35 -1
- data/third_party/boringssl-with-bazel/include/openssl/ec_key.h +2 -2
- data/third_party/boringssl-with-bazel/include/openssl/evp.h +120 -3
- data/third_party/boringssl-with-bazel/include/openssl/evp_errors.h +1 -0
- data/third_party/boringssl-with-bazel/include/openssl/hmac.h +2 -2
- data/third_party/boringssl-with-bazel/include/openssl/hpke.h +38 -7
- data/third_party/boringssl-with-bazel/include/openssl/mem.h +5 -5
- data/third_party/boringssl-with-bazel/include/openssl/nid.h +42 -0
- data/third_party/boringssl-with-bazel/include/openssl/pem.h +650 -351
- data/third_party/boringssl-with-bazel/include/openssl/posix_time.h +4 -4
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols.h +130 -4
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols_internal_S.h +48 -0
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols_internal_c.h +24 -0
- data/third_party/boringssl-with-bazel/include/openssl/rsa.h +1 -1
- data/third_party/boringssl-with-bazel/include/openssl/slhdsa.h +25 -1
- data/third_party/boringssl-with-bazel/include/openssl/ssl.h +256 -87
- data/third_party/boringssl-with-bazel/include/openssl/stack.h +9 -0
- data/third_party/boringssl-with-bazel/include/openssl/types.h +18 -0
- data/third_party/boringssl-with-bazel/include/openssl/x509.h +40 -21
- data/third_party/boringssl-with-bazel/ssl/bio_ssl.cc +3 -5
- data/third_party/boringssl-with-bazel/ssl/d1_both.cc +146 -81
- data/third_party/boringssl-with-bazel/ssl/d1_lib.cc +39 -34
- data/third_party/boringssl-with-bazel/ssl/d1_pkt.cc +6 -6
- data/third_party/boringssl-with-bazel/ssl/d1_srtp.cc +10 -8
- data/third_party/boringssl-with-bazel/ssl/dtls_method.cc +4 -4
- data/third_party/boringssl-with-bazel/ssl/dtls_record.cc +15 -14
- data/third_party/boringssl-with-bazel/ssl/encrypted_client_hello.cc +41 -25
- data/third_party/boringssl-with-bazel/ssl/extensions.cc +153 -171
- data/third_party/boringssl-with-bazel/ssl/handoff.cc +79 -64
- data/third_party/boringssl-with-bazel/ssl/handshake.cc +15 -16
- data/third_party/boringssl-with-bazel/ssl/handshake_client.cc +35 -78
- data/third_party/boringssl-with-bazel/ssl/handshake_server.cc +75 -155
- data/third_party/boringssl-with-bazel/ssl/internal.h +419 -308
- data/third_party/boringssl-with-bazel/ssl/s3_both.cc +17 -150
- data/third_party/boringssl-with-bazel/ssl/s3_lib.cc +2 -3
- data/third_party/boringssl-with-bazel/ssl/s3_pkt.cc +10 -9
- data/third_party/boringssl-with-bazel/ssl/ssl_asn1.cc +13 -13
- data/third_party/boringssl-with-bazel/ssl/ssl_buffer.cc +8 -8
- data/third_party/boringssl-with-bazel/ssl/ssl_cert.cc +58 -24
- data/third_party/boringssl-with-bazel/ssl/ssl_cipher.cc +198 -26
- data/third_party/boringssl-with-bazel/ssl/ssl_credential.cc +164 -37
- data/third_party/boringssl-with-bazel/ssl/ssl_file.cc +10 -8
- data/third_party/boringssl-with-bazel/ssl/ssl_key_share.cc +2 -95
- data/third_party/boringssl-with-bazel/ssl/ssl_lib.cc +785 -472
- data/third_party/boringssl-with-bazel/ssl/ssl_privkey.cc +78 -67
- data/third_party/boringssl-with-bazel/ssl/ssl_session.cc +187 -150
- data/third_party/boringssl-with-bazel/ssl/ssl_stat.cc +6 -3
- data/third_party/boringssl-with-bazel/ssl/ssl_transcript.cc +1 -1
- data/third_party/boringssl-with-bazel/ssl/ssl_versions.cc +25 -19
- data/third_party/boringssl-with-bazel/ssl/ssl_x509.cc +148 -114
- data/third_party/boringssl-with-bazel/ssl/t1_enc.cc +28 -19
- data/third_party/boringssl-with-bazel/ssl/tls13_both.cc +24 -22
- data/third_party/boringssl-with-bazel/ssl/tls13_client.cc +30 -30
- data/third_party/boringssl-with-bazel/ssl/tls13_enc.cc +17 -16
- data/third_party/boringssl-with-bazel/ssl/tls13_server.cc +55 -63
- data/third_party/boringssl-with-bazel/ssl/tls_method.cc +12 -12
- data/third_party/boringssl-with-bazel/ssl/tls_record.cc +23 -20
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_64.h +38 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_64_msvc.h +2 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_field.c.inc +26 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_point.br.c.inc +0 -54
- data/third_party/cares/cares/include/ares.h +8 -0
- data/third_party/cares/cares/include/ares_dns_record.h +3 -2
- data/third_party/cares/cares/include/ares_version.h +3 -3
- data/third_party/cares/cares/src/lib/ares_addrinfo_localhost.c +20 -20
- data/third_party/cares/cares/src/lib/ares_cancel.c +17 -8
- data/third_party/cares/cares/src/lib/ares_close_sockets.c +81 -16
- data/third_party/cares/cares/src/lib/ares_conn.c +256 -10
- data/third_party/cares/cares/src/lib/ares_conn.h +40 -3
- data/third_party/cares/cares/src/lib/ares_cookie.c +2 -2
- data/third_party/cares/cares/src/lib/ares_destroy.c +75 -10
- data/third_party/cares/cares/src/lib/ares_getaddrinfo.c +85 -10
- data/third_party/cares/cares/src/lib/ares_gethostbyaddr.c +5 -0
- data/third_party/cares/cares/src/lib/ares_gethostbyname.c +4 -0
- data/third_party/cares/cares/src/lib/ares_getnameinfo.c +10 -2
- data/third_party/cares/cares/src/lib/ares_hosts_file.c +8 -0
- data/third_party/cares/cares/src/lib/ares_inet_net_pton.h +28 -0
- data/third_party/cares/cares/src/lib/ares_init.c +55 -10
- data/third_party/cares/cares/src/lib/ares_library_init.c +25 -7
- data/third_party/cares/cares/src/lib/ares_options.c +38 -10
- data/third_party/cares/cares/src/lib/ares_parse_into_addrinfo.c +1 -1
- data/third_party/cares/cares/src/lib/ares_private.h +186 -27
- data/third_party/cares/cares/src/lib/ares_process.c +604 -112
- data/third_party/cares/cares/src/lib/ares_qcache.c +200 -36
- data/third_party/cares/cares/src/lib/ares_query.c +5 -0
- data/third_party/cares/cares/src/lib/ares_search.c +10 -0
- data/third_party/cares/cares/src/lib/ares_send.c +81 -10
- data/third_party/cares/cares/src/lib/ares_set_socket_functions.c +3 -1
- data/third_party/cares/cares/src/lib/ares_socket.c +28 -0
- data/third_party/cares/cares/src/lib/ares_socket.h +23 -0
- data/third_party/cares/cares/src/lib/ares_sysconfig.c +6 -3
- data/third_party/cares/cares/src/lib/ares_sysconfig_files.c +33 -11
- data/third_party/cares/cares/src/lib/ares_sysconfig_win.c +132 -80
- data/third_party/cares/cares/src/lib/ares_timeout.c +11 -0
- data/third_party/cares/cares/src/lib/ares_update_servers.c +55 -11
- data/third_party/cares/cares/src/lib/dsa/ares_array.c +20 -5
- data/third_party/cares/cares/src/lib/dsa/ares_htable.c +8 -4
- data/third_party/cares/cares/src/lib/dsa/ares_htable_dict.c +2 -0
- data/third_party/cares/cares/src/lib/dsa/ares_llist.c +4 -1
- data/third_party/cares/cares/src/lib/event/ares_event_configchg.c +5 -2
- data/third_party/cares/cares/src/lib/event/ares_event_select.c +14 -1
- data/third_party/cares/cares/src/lib/event/ares_event_thread.c +8 -0
- data/third_party/cares/cares/src/lib/event/ares_event_wake_pipe.c +7 -1
- data/third_party/cares/cares/src/lib/event/ares_event_win32.c +3 -0
- data/third_party/cares/cares/src/lib/include/ares_mem.h +3 -0
- data/third_party/cares/cares/src/lib/include/ares_str.h +17 -0
- data/third_party/cares/cares/src/lib/inet_net_pton.c +37 -28
- data/third_party/cares/cares/src/lib/legacy/ares_expand_name.c +1 -1
- data/third_party/cares/cares/src/lib/legacy/ares_parse_a_reply.c +5 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_aaaa_reply.c +5 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_ns_reply.c +2 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_ptr_reply.c +2 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_uri_reply.c +1 -1
- data/third_party/cares/cares/src/lib/record/ares_dns_mapping.c +19 -4
- data/third_party/cares/cares/src/lib/record/ares_dns_multistring.c +3 -1
- data/third_party/cares/cares/src/lib/record/ares_dns_name.c +67 -4
- data/third_party/cares/cares/src/lib/record/ares_dns_parse.c +62 -34
- data/third_party/cares/cares/src/lib/record/ares_dns_private.h +4 -0
- data/third_party/cares/cares/src/lib/record/ares_dns_record.c +47 -7
- data/third_party/cares/cares/src/lib/record/ares_dns_write.c +13 -5
- data/third_party/cares/cares/src/lib/str/ares_buf.c +33 -16
- data/third_party/cares/cares/src/lib/str/ares_str.c +54 -0
- data/third_party/cares/cares/src/lib/util/ares_iface_ips.c +22 -10
- data/third_party/cares/cares/src/lib/util/ares_iface_ips.h +1 -0
- data/third_party/cares/cares/src/lib/util/ares_math.c +17 -2
- data/third_party/cares/cares/src/lib/util/ares_math.h +32 -7
- data/third_party/cares/cares/src/lib/util/ares_rand.c +4 -4
- data/third_party/cares/cares/src/lib/util/ares_threads.c +1 -2
- data/third_party/cares/cares/src/lib/util/ares_time.h +1 -0
- data/third_party/cares/cares/src/lib/util/ares_uri.c +9 -3
- data/third_party/zlib/compress.c +34 -10
- data/third_party/zlib/crc32.c +49 -115
- data/third_party/zlib/deflate.c +107 -61
- data/third_party/zlib/deflate.h +7 -1
- data/third_party/zlib/gzguts.h +33 -31
- data/third_party/zlib/infback.c +20 -67
- data/third_party/zlib/inffast.c +7 -6
- data/third_party/zlib/inffixed.h +91 -91
- data/third_party/zlib/inflate.c +38 -151
- data/third_party/zlib/inflate.h +1 -1
- data/third_party/zlib/inftrees.c +134 -9
- data/third_party/zlib/inftrees.h +3 -1
- data/third_party/zlib/trees.c +14 -12
- data/third_party/zlib/uncompr.c +39 -23
- data/third_party/zlib/zconf.h +27 -19
- data/third_party/zlib/zlib.h +215 -96
- data/third_party/zlib/zutil.c +49 -35
- data/third_party/zlib/zutil.h +87 -10
- metadata +4095 -4049
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +0 -916
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +0 -84
- data/src/core/server/xds_channel_stack_modifier.cc +0 -108
- data/src/core/server/xds_channel_stack_modifier.h +0 -62
- data/src/core/server/xds_server_config_fetcher_legacy.cc +0 -1340
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256_internal.h +0 -193
- data/third_party/boringssl-with-bazel/crypto/kyber/internal.h +0 -165
- data/third_party/boringssl-with-bazel/crypto/kyber/kyber.cc +0 -870
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
|
|
28
28
|
#include "ares_private.h"
|
|
29
29
|
|
|
30
|
+
#include <limits.h>
|
|
31
|
+
|
|
30
32
|
#ifdef HAVE_SYS_PARAM_H
|
|
31
33
|
# include <sys/param.h>
|
|
32
34
|
#endif
|
|
@@ -170,8 +172,8 @@ static ares_status_t parse_sort(ares_buf_t *buf, struct apattern *pat)
|
|
|
170
172
|
|
|
171
173
|
if (ares_str_isnum(maskstr)) {
|
|
172
174
|
/* Numeric mask */
|
|
173
|
-
int mask
|
|
174
|
-
if (
|
|
175
|
+
unsigned int mask;
|
|
176
|
+
if (!ares_str_parse_uint(maskstr, 128, &mask)) {
|
|
175
177
|
return ARES_EBADSTR;
|
|
176
178
|
}
|
|
177
179
|
if (pat->addr.family == AF_INET && mask > 32) {
|
|
@@ -340,12 +342,17 @@ static ares_status_t config_lookup(ares_sysconfig_t *sysconfig, ares_buf_t *buf,
|
|
|
340
342
|
const char *value = lookups[i];
|
|
341
343
|
char ch;
|
|
342
344
|
|
|
345
|
+
/* AIX /etc/netsvc.conf uses address-family-suffixed tokens such as
|
|
346
|
+
* "bind4"/"bind6" and "local4"/"local6" in addition to the bare forms. */
|
|
343
347
|
if (ares_strcaseeq(value, "dns") || ares_strcaseeq(value, "bind") ||
|
|
348
|
+
ares_strcaseeq(value, "bind4") || ares_strcaseeq(value, "bind6") ||
|
|
344
349
|
ares_strcaseeq(value, "resolv") || ares_strcaseeq(value, "resolve")) {
|
|
345
350
|
ch = 'b';
|
|
346
351
|
} else if (ares_strcaseeq(value, "files") ||
|
|
347
352
|
ares_strcaseeq(value, "file") ||
|
|
348
|
-
ares_strcaseeq(value, "local")
|
|
353
|
+
ares_strcaseeq(value, "local") ||
|
|
354
|
+
ares_strcaseeq(value, "local4") ||
|
|
355
|
+
ares_strcaseeq(value, "local6")) {
|
|
349
356
|
ch = 'f';
|
|
350
357
|
} else {
|
|
351
358
|
continue;
|
|
@@ -401,20 +408,27 @@ static ares_status_t process_option(ares_sysconfig_t *sysconfig,
|
|
|
401
408
|
|
|
402
409
|
key = kv[0];
|
|
403
410
|
if (num == 2) {
|
|
404
|
-
val
|
|
405
|
-
|
|
411
|
+
val = kv[1];
|
|
412
|
+
if (!ares_str_parse_uint(val, UINT_MAX, &valint)) {
|
|
413
|
+
status = ARES_EBADSTR;
|
|
414
|
+
goto done;
|
|
415
|
+
}
|
|
406
416
|
}
|
|
407
417
|
|
|
408
418
|
if (ares_streq(key, "ndots")) {
|
|
409
419
|
sysconfig->ndots = valint;
|
|
410
420
|
} else if (ares_streq(key, "retrans") || ares_streq(key, "timeout")) {
|
|
411
421
|
if (valint == 0) {
|
|
412
|
-
|
|
422
|
+
status = ARES_EFORMERR;
|
|
423
|
+
goto done;
|
|
413
424
|
}
|
|
414
425
|
sysconfig->timeout_ms = valint * 1000;
|
|
415
426
|
} else if (ares_streq(key, "retry") || ares_streq(key, "attempts")) {
|
|
416
|
-
if (valint == 0) {
|
|
417
|
-
|
|
427
|
+
if (valint == 0 || valint > 255) {
|
|
428
|
+
/* A bogus attempt count must not become an effectively unbounded
|
|
429
|
+
* retry loop; ignore it like other invalid options. */
|
|
430
|
+
status = ARES_EFORMERR;
|
|
431
|
+
goto done;
|
|
418
432
|
}
|
|
419
433
|
sysconfig->tries = valint;
|
|
420
434
|
} else if (ares_streq(key, "rotate")) {
|
|
@@ -577,7 +591,10 @@ ares_status_t ares_sysconfig_parse_resolv_line(const ares_channel_t *channel,
|
|
|
577
591
|
|
|
578
592
|
ares_buf_consume_whitespace(line, ARES_TRUE);
|
|
579
593
|
|
|
580
|
-
|
|
594
|
+
ares_buf_tag(line);
|
|
595
|
+
ares_buf_consume_until_charset(line, (const unsigned char *)"#;", 2,
|
|
596
|
+
ARES_FALSE);
|
|
597
|
+
status = ares_buf_tag_fetch_string(line, value, sizeof(value));
|
|
581
598
|
if (status != ARES_SUCCESS) {
|
|
582
599
|
return ARES_SUCCESS;
|
|
583
600
|
}
|
|
@@ -596,8 +613,13 @@ ares_status_t ares_sysconfig_parse_resolv_line(const ares_channel_t *channel,
|
|
|
596
613
|
}
|
|
597
614
|
} else if (ares_streq(option, "lookup") ||
|
|
598
615
|
ares_streq(option, "hostresorder")) {
|
|
599
|
-
|
|
600
|
-
|
|
616
|
+
ares_buf_t *value_buf =
|
|
617
|
+
ares_buf_create_const((const unsigned char *)value, ares_strlen(value));
|
|
618
|
+
if (value_buf == NULL) {
|
|
619
|
+
return ARES_ENOMEM; /* LCOV_EXCL_LINE: OutOfMemory */
|
|
620
|
+
}
|
|
621
|
+
status = config_lookup(sysconfig, value_buf, " \t");
|
|
622
|
+
ares_buf_destroy(value_buf);
|
|
601
623
|
} else if (ares_streq(option, "search")) {
|
|
602
624
|
status = config_search(sysconfig, value, 0);
|
|
603
625
|
} else if (ares_streq(option, "nameserver")) {
|
|
@@ -55,6 +55,19 @@
|
|
|
55
55
|
#include "ares_inet_net_pton.h"
|
|
56
56
|
|
|
57
57
|
#if defined(USE_WINSOCK)
|
|
58
|
+
|
|
59
|
+
# define WIN_NS_9X "System\\CurrentControlSet\\Services\\VxD\\MSTCP"
|
|
60
|
+
# define WIN_DNSCLIENT "Software\\Policies\\Microsoft\\System\\DNSClient"
|
|
61
|
+
# define WIN_NT_DNSCLIENT \
|
|
62
|
+
"Software\\Policies\\Microsoft\\Windows NT\\DNSClient"
|
|
63
|
+
# define NAMESERVER "NameServer"
|
|
64
|
+
# define DHCPNAMESERVER "DhcpNameServer"
|
|
65
|
+
# define SEARCHLIST_KEY L"SearchList"
|
|
66
|
+
# define PRIMARYDNSSUFFIX_KEY L"PrimaryDNSSuffix"
|
|
67
|
+
# define INTERFACES_KEY "Interfaces"
|
|
68
|
+
# define DOMAIN_KEY L"Domain"
|
|
69
|
+
# define DHCPDOMAIN_KEY L"DhcpDomain"
|
|
70
|
+
|
|
58
71
|
/*
|
|
59
72
|
* get_REG_SZ()
|
|
60
73
|
*
|
|
@@ -69,70 +82,101 @@
|
|
|
69
82
|
*
|
|
70
83
|
* Supported on Windows NT 3.5 and newer.
|
|
71
84
|
*/
|
|
72
|
-
static ares_bool_t get_REG_SZ(HKEY hKey, const
|
|
85
|
+
static ares_bool_t get_REG_SZ(HKEY hKey, const WCHAR *leafKeyName, char **outptr)
|
|
73
86
|
{
|
|
74
|
-
DWORD
|
|
75
|
-
int
|
|
87
|
+
DWORD size = 0;
|
|
88
|
+
int res;
|
|
89
|
+
int len;
|
|
90
|
+
WCHAR *val = NULL;
|
|
76
91
|
|
|
77
92
|
*outptr = NULL;
|
|
78
93
|
|
|
79
94
|
/* Find out size of string stored in registry */
|
|
80
|
-
res =
|
|
95
|
+
res = RegQueryValueExW(hKey, leafKeyName, 0, NULL, NULL, &size);
|
|
81
96
|
if ((res != ERROR_SUCCESS && res != ERROR_MORE_DATA) || !size) {
|
|
82
97
|
return ARES_FALSE;
|
|
83
98
|
}
|
|
84
99
|
|
|
85
100
|
/* Allocate buffer of indicated size plus one given that string
|
|
86
101
|
might have been stored without null termination */
|
|
87
|
-
|
|
88
|
-
if (
|
|
102
|
+
val = ares_malloc_zero(size + sizeof(WCHAR));
|
|
103
|
+
if (val == NULL) {
|
|
89
104
|
return ARES_FALSE;
|
|
90
105
|
}
|
|
91
106
|
|
|
92
107
|
/* Get the value for real */
|
|
93
|
-
res =
|
|
94
|
-
|
|
95
|
-
|
|
108
|
+
res = RegQueryValueExW(hKey, leafKeyName, 0, NULL, (BYTE *)val, &size);
|
|
109
|
+
if (res != ERROR_SUCCESS || size == sizeof(WCHAR)) {
|
|
110
|
+
ares_free(val);
|
|
111
|
+
return ARES_FALSE;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Convert to UTF8 */
|
|
115
|
+
len = WideCharToMultiByte(CP_UTF8, 0, val, -1, NULL, 0, NULL, NULL);
|
|
116
|
+
if (len == 0) {
|
|
117
|
+
ares_free(val);
|
|
118
|
+
return ARES_FALSE;
|
|
119
|
+
}
|
|
120
|
+
*outptr = ares_malloc_zero((size_t)len + 1);
|
|
121
|
+
if (*outptr == NULL) {
|
|
122
|
+
ares_free(val);
|
|
123
|
+
return ARES_FALSE;
|
|
124
|
+
}
|
|
125
|
+
if (WideCharToMultiByte(CP_UTF8, 0, val, -1, *outptr, len, NULL, NULL)
|
|
126
|
+
== 0) {
|
|
96
127
|
ares_free(*outptr);
|
|
97
128
|
*outptr = NULL;
|
|
129
|
+
ares_free(val);
|
|
98
130
|
return ARES_FALSE;
|
|
99
131
|
}
|
|
100
132
|
|
|
101
|
-
|
|
102
|
-
*(*outptr + size) = '\0';
|
|
103
|
-
|
|
133
|
+
ares_free(val);
|
|
104
134
|
return ARES_TRUE;
|
|
105
135
|
}
|
|
106
136
|
|
|
107
|
-
static
|
|
137
|
+
static ares_status_t sysconfig_commajoin(ares_buf_t *buf, const char *src,
|
|
138
|
+
ares_bool_t asciionly)
|
|
108
139
|
{
|
|
109
|
-
|
|
110
|
-
size_t newsize;
|
|
140
|
+
ares_status_t status;
|
|
111
141
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
142
|
+
if (buf == NULL) {
|
|
143
|
+
return ARES_ENOMEM;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (src == NULL || *src == '\0') {
|
|
147
|
+
return ARES_SUCCESS;
|
|
117
148
|
}
|
|
118
|
-
|
|
119
|
-
|
|
149
|
+
|
|
150
|
+
if (asciionly && !ares_str_isprint(src, ares_strlen(src))) {
|
|
151
|
+
return ARES_SUCCESS;
|
|
120
152
|
}
|
|
121
|
-
|
|
122
|
-
if (
|
|
123
|
-
|
|
153
|
+
|
|
154
|
+
if (ares_buf_len(buf) > 0) {
|
|
155
|
+
status = ares_buf_append_byte(buf, ',');
|
|
156
|
+
if (status != ARES_SUCCESS) {
|
|
157
|
+
return status;
|
|
158
|
+
}
|
|
124
159
|
}
|
|
125
|
-
|
|
160
|
+
|
|
161
|
+
return ares_buf_append_str(buf, src);
|
|
126
162
|
}
|
|
127
163
|
|
|
128
|
-
/*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* RTF code.
|
|
132
|
-
*/
|
|
133
|
-
static void commajoin(char **dst, const char *src)
|
|
164
|
+
/* Read a REG_SZ value and comma-append it (ASCII-only) to *buf.
|
|
165
|
+
* On allocation failure, destroys *buf and sets it to NULL. */
|
|
166
|
+
static void reg_commajoin(ares_buf_t **buf, HKEY key, const WCHAR *leaf)
|
|
134
167
|
{
|
|
135
|
-
|
|
168
|
+
char *p = NULL;
|
|
169
|
+
|
|
170
|
+
if (*buf == NULL || !get_REG_SZ(key, leaf, &p)) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (sysconfig_commajoin(*buf, p, ARES_TRUE) != ARES_SUCCESS) {
|
|
175
|
+
ares_buf_destroy(*buf);
|
|
176
|
+
*buf = NULL;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
ares_free(p);
|
|
136
180
|
}
|
|
137
181
|
|
|
138
182
|
/* A structure to hold the string form of IPv4 and IPv6 addresses so we can
|
|
@@ -463,8 +507,10 @@ static ares_bool_t get_DNS_Windows(char **outptr)
|
|
|
463
507
|
|
|
464
508
|
/* Join them all into a single string, removing duplicates. */
|
|
465
509
|
{
|
|
466
|
-
size_t
|
|
467
|
-
|
|
510
|
+
size_t i;
|
|
511
|
+
ares_buf_t *buf = ares_buf_create();
|
|
512
|
+
|
|
513
|
+
for (i = 0; buf != NULL && i < addressesIndex; ++i) {
|
|
468
514
|
size_t j;
|
|
469
515
|
/* Look for this address text appearing previously in the results. */
|
|
470
516
|
for (j = 0; j < i; ++j) {
|
|
@@ -474,10 +520,22 @@ static ares_bool_t get_DNS_Windows(char **outptr)
|
|
|
474
520
|
}
|
|
475
521
|
/* Iff we didn't emit this address already, emit it now. */
|
|
476
522
|
if (j == i) {
|
|
477
|
-
/* Add that to
|
|
478
|
-
|
|
523
|
+
/* Add that to buf (if we can). */
|
|
524
|
+
if (sysconfig_commajoin(buf, addresses[i].text, ARES_FALSE) !=
|
|
525
|
+
ARES_SUCCESS) {
|
|
526
|
+
ares_buf_destroy(buf);
|
|
527
|
+
buf = NULL;
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
479
530
|
}
|
|
480
531
|
}
|
|
532
|
+
|
|
533
|
+
if (buf != NULL && ares_buf_len(buf) == 0) {
|
|
534
|
+
ares_buf_destroy(buf);
|
|
535
|
+
buf = NULL;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
*outptr = ares_buf_finish_str(buf, NULL);
|
|
481
539
|
}
|
|
482
540
|
|
|
483
541
|
done:
|
|
@@ -509,51 +567,46 @@ done:
|
|
|
509
567
|
*/
|
|
510
568
|
static ares_bool_t get_SuffixList_Windows(char **outptr)
|
|
511
569
|
{
|
|
512
|
-
HKEY
|
|
513
|
-
HKEY
|
|
514
|
-
char
|
|
515
|
-
DWORD
|
|
516
|
-
DWORD
|
|
517
|
-
|
|
570
|
+
HKEY hKey;
|
|
571
|
+
HKEY hKeyEnum;
|
|
572
|
+
char keyName[256];
|
|
573
|
+
DWORD keyNameBuffSize;
|
|
574
|
+
DWORD keyIdx = 0;
|
|
575
|
+
ares_buf_t *buf = ares_buf_create();
|
|
518
576
|
|
|
519
577
|
*outptr = NULL;
|
|
520
578
|
|
|
579
|
+
if (buf == NULL) {
|
|
580
|
+
return ARES_FALSE;
|
|
581
|
+
}
|
|
582
|
+
|
|
521
583
|
/* 1. Global DNS Suffix Search List */
|
|
522
584
|
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0, KEY_READ, &hKey) ==
|
|
523
585
|
ERROR_SUCCESS) {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
commajoin(outptr, p);
|
|
527
|
-
ares_free(p);
|
|
528
|
-
p = NULL;
|
|
529
|
-
}
|
|
586
|
+
reg_commajoin(&buf, hKey, SEARCHLIST_KEY);
|
|
587
|
+
reg_commajoin(&buf, hKey, DOMAIN_KEY);
|
|
530
588
|
RegCloseKey(hKey);
|
|
531
589
|
}
|
|
532
590
|
|
|
533
|
-
if (
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
ares_free(p);
|
|
538
|
-
p = NULL;
|
|
539
|
-
}
|
|
591
|
+
if (buf != NULL &&
|
|
592
|
+
RegOpenKeyExA(HKEY_LOCAL_MACHINE, WIN_NT_DNSCLIENT, 0, KEY_READ, &hKey) ==
|
|
593
|
+
ERROR_SUCCESS) {
|
|
594
|
+
reg_commajoin(&buf, hKey, SEARCHLIST_KEY);
|
|
540
595
|
RegCloseKey(hKey);
|
|
541
596
|
}
|
|
542
597
|
|
|
543
598
|
/* 2. Connection Specific Search List composed of:
|
|
544
599
|
* a. Primary DNS Suffix */
|
|
545
|
-
if (
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
ares_free(p);
|
|
550
|
-
p = NULL;
|
|
551
|
-
}
|
|
600
|
+
if (buf != NULL &&
|
|
601
|
+
RegOpenKeyExA(HKEY_LOCAL_MACHINE, WIN_DNSCLIENT, 0, KEY_READ, &hKey) ==
|
|
602
|
+
ERROR_SUCCESS) {
|
|
603
|
+
reg_commajoin(&buf, hKey, PRIMARYDNSSUFFIX_KEY);
|
|
552
604
|
RegCloseKey(hKey);
|
|
553
605
|
}
|
|
554
606
|
|
|
555
607
|
/* b. Interface SearchList, Domain, DhcpDomain */
|
|
556
|
-
if (
|
|
608
|
+
if (buf != NULL &&
|
|
609
|
+
RegOpenKeyExA(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY "\\" INTERFACES_KEY, 0,
|
|
557
610
|
KEY_READ, &hKey) == ERROR_SUCCESS) {
|
|
558
611
|
for (;;) {
|
|
559
612
|
keyNameBuffSize = sizeof(keyName);
|
|
@@ -565,27 +618,26 @@ static ares_bool_t get_SuffixList_Windows(char **outptr)
|
|
|
565
618
|
ERROR_SUCCESS) {
|
|
566
619
|
continue;
|
|
567
620
|
}
|
|
568
|
-
/*
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
p = NULL;
|
|
573
|
-
}
|
|
574
|
-
if (get_REG_SZ(hKeyEnum, DOMAIN_KEY, &p)) {
|
|
575
|
-
commajoin(outptr, p);
|
|
576
|
-
ares_free(p);
|
|
577
|
-
p = NULL;
|
|
578
|
-
}
|
|
579
|
-
if (get_REG_SZ(hKeyEnum, DHCPDOMAIN_KEY, &p)) {
|
|
580
|
-
commajoin(outptr, p);
|
|
581
|
-
ares_free(p);
|
|
582
|
-
p = NULL;
|
|
583
|
-
}
|
|
621
|
+
/* SearchList can be comma separated */
|
|
622
|
+
reg_commajoin(&buf, hKeyEnum, SEARCHLIST_KEY);
|
|
623
|
+
reg_commajoin(&buf, hKeyEnum, DOMAIN_KEY);
|
|
624
|
+
reg_commajoin(&buf, hKeyEnum, DHCPDOMAIN_KEY);
|
|
584
625
|
RegCloseKey(hKeyEnum);
|
|
626
|
+
|
|
627
|
+
if (buf == NULL) {
|
|
628
|
+
break;
|
|
629
|
+
}
|
|
585
630
|
}
|
|
586
631
|
RegCloseKey(hKey);
|
|
587
632
|
}
|
|
588
633
|
|
|
634
|
+
if (ares_buf_len(buf) == 0) {
|
|
635
|
+
ares_buf_destroy(buf);
|
|
636
|
+
buf = NULL;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
*outptr = ares_buf_finish_str(buf, NULL);
|
|
640
|
+
|
|
589
641
|
return *outptr != NULL ? ARES_TRUE : ARES_FALSE;
|
|
590
642
|
}
|
|
591
643
|
|
|
@@ -32,6 +32,17 @@
|
|
|
32
32
|
#endif
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
void ares_timeval_add(ares_timeval_t *now, size_t millisecs)
|
|
36
|
+
{
|
|
37
|
+
now->sec += (ares_int64_t)millisecs / 1000;
|
|
38
|
+
now->usec += (unsigned int)((millisecs % 1000) * 1000);
|
|
39
|
+
|
|
40
|
+
if (now->usec >= 1000000) {
|
|
41
|
+
now->sec += now->usec / 1000000;
|
|
42
|
+
now->usec %= 1000000;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
35
46
|
void ares_timeval_remaining(ares_timeval_t *remaining,
|
|
36
47
|
const ares_timeval_t *now,
|
|
37
48
|
const ares_timeval_t *tout)
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
*/
|
|
28
28
|
#include "ares_private.h"
|
|
29
29
|
|
|
30
|
+
#include <limits.h>
|
|
31
|
+
|
|
30
32
|
#ifdef HAVE_ARPA_INET_H
|
|
31
33
|
# include <arpa/inet.h>
|
|
32
34
|
#endif
|
|
@@ -205,6 +207,8 @@ static ares_status_t parse_nameserver_uri(ares_buf_t *buf,
|
|
|
205
207
|
char hoststr[256];
|
|
206
208
|
size_t addrlen;
|
|
207
209
|
|
|
210
|
+
memset(sconfig, 0, sizeof(*sconfig));
|
|
211
|
+
|
|
208
212
|
status = ares_uri_parse_buf(&uri, buf);
|
|
209
213
|
if (status != ARES_SUCCESS) {
|
|
210
214
|
return status;
|
|
@@ -234,7 +238,10 @@ static ares_status_t parse_nameserver_uri(ares_buf_t *buf,
|
|
|
234
238
|
sconfig->tcp_port = sconfig->udp_port;
|
|
235
239
|
port = ares_uri_get_query_key(uri, "tcpport");
|
|
236
240
|
if (port != NULL) {
|
|
237
|
-
sconfig->tcp_port
|
|
241
|
+
if (!ares_parse_port(port, &sconfig->tcp_port, ARES_TRUE)) {
|
|
242
|
+
status = ARES_EBADSTR;
|
|
243
|
+
goto done;
|
|
244
|
+
}
|
|
238
245
|
}
|
|
239
246
|
|
|
240
247
|
done:
|
|
@@ -352,7 +359,9 @@ static ares_status_t parse_nameserver(ares_buf_t *buf, ares_sconfig_t *sconfig)
|
|
|
352
359
|
return status;
|
|
353
360
|
}
|
|
354
361
|
|
|
355
|
-
sconfig->udp_port
|
|
362
|
+
if (!ares_parse_port(portstr, &sconfig->udp_port, ARES_TRUE)) {
|
|
363
|
+
return ARES_EBADSTR;
|
|
364
|
+
}
|
|
356
365
|
sconfig->tcp_port = sconfig->udp_port;
|
|
357
366
|
}
|
|
358
367
|
|
|
@@ -398,7 +407,13 @@ static ares_status_t ares_sconfig_linklocal(const ares_channel_t *channel,
|
|
|
398
407
|
|
|
399
408
|
if (ares_str_isnum(ll_iface)) {
|
|
400
409
|
char ifname[IF_NAMESIZE] = "";
|
|
401
|
-
|
|
410
|
+
|
|
411
|
+
/* The interface identifier is all digits but may not fit in an
|
|
412
|
+
* unsigned int; parse with the range-checked helper rather than atoi(),
|
|
413
|
+
* whose behavior on overflow is undefined. */
|
|
414
|
+
if (!ares_str_parse_uint(ll_iface, UINT_MAX, &ll_scope)) {
|
|
415
|
+
return ARES_ENOTFOUND;
|
|
416
|
+
}
|
|
402
417
|
if (channel->sock_funcs.aif_indextoname == NULL ||
|
|
403
418
|
channel->sock_funcs.aif_indextoname(ll_scope, ifname, sizeof(ifname),
|
|
404
419
|
channel->sock_func_cb_data) ==
|
|
@@ -727,17 +742,36 @@ static ares_bool_t ares_servers_remove_stale(ares_channel_t *channel,
|
|
|
727
742
|
{
|
|
728
743
|
ares_bool_t stale_removed = ARES_FALSE;
|
|
729
744
|
ares_slist_node_t *snode = ares_slist_node_first(channel->servers);
|
|
745
|
+
size_t generation = channel->servers_generation;
|
|
730
746
|
|
|
747
|
+
/* Re-read from the head each pass rather than caching the next node.
|
|
748
|
+
* ares_slist_node_destroy() below reaches application callbacks, by way of
|
|
749
|
+
* ares_destroy_server() -> ares_close_sockets() -> ares_requeue_queries(),
|
|
750
|
+
* and a nested reconfiguration from one of those destroys the remaining
|
|
751
|
+
* stale servers -- including whichever one a cached pointer referred to. */
|
|
731
752
|
while (snode != NULL) {
|
|
732
|
-
ares_slist_node_t *snext = ares_slist_node_next(snode);
|
|
733
753
|
const ares_server_t *server = ares_slist_node_val(snode);
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
754
|
+
|
|
755
|
+
if (ares_server_in_newconfig(server, srvlist)) {
|
|
756
|
+
snode = ares_slist_node_next(snode);
|
|
757
|
+
continue;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/* This will clean up all server state via the destruction callback and
|
|
761
|
+
* move any queries to new servers */
|
|
762
|
+
ares_slist_node_destroy(snode);
|
|
763
|
+
stale_removed = ARES_TRUE;
|
|
764
|
+
|
|
765
|
+
/* A callback reached from the destroy above may have reconfigured the
|
|
766
|
+
* server list against a newer configuration. That call has already
|
|
767
|
+
* reconciled the whole list, so whatever remains belongs to it and not to
|
|
768
|
+
* srvlist -- stop rather than deleting its servers. */
|
|
769
|
+
if (channel->servers_generation != generation) {
|
|
770
|
+
break;
|
|
739
771
|
}
|
|
740
|
-
|
|
772
|
+
|
|
773
|
+
/* The callbacks above may have removed further servers, so restart. */
|
|
774
|
+
snode = ares_slist_node_first(channel->servers);
|
|
741
775
|
}
|
|
742
776
|
return stale_removed;
|
|
743
777
|
}
|
|
@@ -762,6 +796,14 @@ ares_status_t ares_servers_update(ares_channel_t *channel,
|
|
|
762
796
|
return ARES_EFORMERR; /* LCOV_EXCL_LINE: DefensiveCoding */
|
|
763
797
|
}
|
|
764
798
|
|
|
799
|
+
/* Removing servers closes their connections, which notifies. Deliver
|
|
800
|
+
* once this call is done rather than from inside the teardown. */
|
|
801
|
+
ares_deferred_cb_enter(channel);
|
|
802
|
+
|
|
803
|
+
/* Bumped before anything below can reach an application callback, so a
|
|
804
|
+
* nested reconfiguration is distinguishable from our own work. */
|
|
805
|
+
channel->servers_generation++;
|
|
806
|
+
|
|
765
807
|
/* NOTE: a NULL or zero entry server list is considered valid due to
|
|
766
808
|
* real-world people needing support for this for their test harnesses
|
|
767
809
|
*/
|
|
@@ -830,6 +872,7 @@ ares_status_t ares_servers_update(ares_channel_t *channel,
|
|
|
830
872
|
status = ARES_SUCCESS;
|
|
831
873
|
|
|
832
874
|
done:
|
|
875
|
+
ares_deferred_cb_leave(channel);
|
|
833
876
|
return status;
|
|
834
877
|
}
|
|
835
878
|
|
|
@@ -967,7 +1010,8 @@ ares_status_t ares_in_addr_to_sconfig_llist(const struct in_addr *servers,
|
|
|
967
1010
|
sizeof(sconfig->addr.addr.addr4));
|
|
968
1011
|
|
|
969
1012
|
if (ares_llist_insert_last(s, sconfig) == NULL) {
|
|
970
|
-
|
|
1013
|
+
ares_free(sconfig); /* LCOV_EXCL_LINE: OutOfMemory */
|
|
1014
|
+
goto fail; /* LCOV_EXCL_LINE: OutOfMemory */
|
|
971
1015
|
}
|
|
972
1016
|
}
|
|
973
1017
|
|
|
@@ -171,14 +171,19 @@ void *ares_array_finish(ares_array_t *arr, size_t *num_members)
|
|
|
171
171
|
|
|
172
172
|
ares_status_t ares_array_set_size(ares_array_t *arr, size_t size)
|
|
173
173
|
{
|
|
174
|
-
void
|
|
174
|
+
void *temp;
|
|
175
|
+
size_t rounded_size;
|
|
175
176
|
|
|
176
177
|
if (arr == NULL || size == 0 || size < arr->cnt) {
|
|
177
178
|
return ARES_EFORMERR;
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
/* Always operate on powers of 2 */
|
|
181
|
-
|
|
182
|
+
rounded_size = ares_round_up_pow2(size);
|
|
183
|
+
if (rounded_size < size) {
|
|
184
|
+
return ARES_ENOMEM; /* rounding wrapped around */
|
|
185
|
+
}
|
|
186
|
+
size = rounded_size;
|
|
182
187
|
|
|
183
188
|
if (size < ARES__ARRAY_MIN) {
|
|
184
189
|
size = ARES__ARRAY_MIN;
|
|
@@ -189,8 +194,8 @@ ares_status_t ares_array_set_size(ares_array_t *arr, size_t size)
|
|
|
189
194
|
return ARES_SUCCESS;
|
|
190
195
|
}
|
|
191
196
|
|
|
192
|
-
temp =
|
|
193
|
-
|
|
197
|
+
temp =
|
|
198
|
+
ares_realloc_zero_array(arr->arr, arr->alloc_cnt, size, arr->member_size);
|
|
194
199
|
if (temp == NULL) {
|
|
195
200
|
return ARES_ENOMEM;
|
|
196
201
|
}
|
|
@@ -295,7 +300,7 @@ ares_status_t ares_array_insertdata_first(ares_array_t *arr,
|
|
|
295
300
|
ares_status_t status;
|
|
296
301
|
void *ptr = NULL;
|
|
297
302
|
|
|
298
|
-
status =
|
|
303
|
+
status = ares_array_insert_first(&ptr, arr);
|
|
299
304
|
if (status != ARES_SUCCESS) {
|
|
300
305
|
return status;
|
|
301
306
|
}
|
|
@@ -362,6 +367,16 @@ ares_status_t ares_array_claim_at(void *dest, size_t dest_size,
|
|
|
362
367
|
}
|
|
363
368
|
|
|
364
369
|
arr->cnt--;
|
|
370
|
+
|
|
371
|
+
/* When empty, reset offset so a later insert doesn't compact from an
|
|
372
|
+
* out-of-range index (offset can reach alloc_cnt after front claims).
|
|
373
|
+
* This also protects ares_array_finish(), which has the same
|
|
374
|
+
* move(0, offset) and would otherwise fail on an offset == alloc_cnt
|
|
375
|
+
* array. */
|
|
376
|
+
if (arr->cnt == 0) {
|
|
377
|
+
arr->offset = 0;
|
|
378
|
+
}
|
|
379
|
+
|
|
365
380
|
return ARES_SUCCESS;
|
|
366
381
|
}
|
|
367
382
|
|
|
@@ -61,9 +61,9 @@ static unsigned int ares_htable_generate_seed(ares_htable_t *htable)
|
|
|
61
61
|
/* Mix stack address, heap address, and time to generate a random seed, it
|
|
62
62
|
* doesn't have to be super secure, just quick. Likelihood of a hash
|
|
63
63
|
* collision attack is very low with a small amount of effort */
|
|
64
|
-
seed
|
|
65
|
-
seed
|
|
66
|
-
seed
|
|
64
|
+
seed ^= (unsigned int)((size_t)htable & 0xFFFFFFFF);
|
|
65
|
+
seed ^= (unsigned int)((size_t)&seed & 0xFFFFFFFF);
|
|
66
|
+
seed ^= (unsigned int)(((ares_uint64_t)t) & 0xFFFFFFFF);
|
|
67
67
|
return seed;
|
|
68
68
|
#endif
|
|
69
69
|
}
|
|
@@ -150,6 +150,10 @@ const void **ares_htable_all_buckets(const ares_htable_t *htable, size_t *num)
|
|
|
150
150
|
|
|
151
151
|
*num = 0;
|
|
152
152
|
|
|
153
|
+
if (htable->num_keys == 0) {
|
|
154
|
+
return NULL;
|
|
155
|
+
}
|
|
156
|
+
|
|
153
157
|
out = ares_malloc_zero(sizeof(*out) * htable->num_keys);
|
|
154
158
|
if (out == NULL) {
|
|
155
159
|
return NULL; /* LCOV_EXCL_LINE */
|
|
@@ -172,7 +176,7 @@ const void **ares_htable_all_buckets(const ares_htable_t *htable, size_t *num)
|
|
|
172
176
|
* We are doing "hash & (size - 1)" since we are guaranteeing a power of
|
|
173
177
|
* 2 for size. This is equivalent to "hash % size", but should be more
|
|
174
178
|
* efficient */
|
|
175
|
-
#define HASH_IDX(h, key) h->hash(key, h->seed) & (h->size - 1)
|
|
179
|
+
#define HASH_IDX(h, key) ((h)->hash((key), (h)->seed) & ((h)->size - 1))
|
|
176
180
|
|
|
177
181
|
static ares_llist_node_t *ares_htable_find(const ares_htable_t *htable,
|
|
178
182
|
unsigned int idx, const void *key)
|
|
@@ -132,6 +132,7 @@ ares_bool_t ares_htable_dict_insert(ares_htable_dict_t *htable, const char *key,
|
|
|
132
132
|
|
|
133
133
|
fail:
|
|
134
134
|
if (bucket) {
|
|
135
|
+
ares_free(bucket->key);
|
|
135
136
|
ares_free(bucket->val);
|
|
136
137
|
ares_free(bucket);
|
|
137
138
|
}
|
|
@@ -223,6 +224,7 @@ char **ares_htable_dict_keys(const ares_htable_dict_t *htable, size_t *num)
|
|
|
223
224
|
|
|
224
225
|
fail:
|
|
225
226
|
*num = 0;
|
|
227
|
+
ares_free(buckets);
|
|
226
228
|
ares_free_array(out, cnt, ares_free);
|
|
227
229
|
return NULL;
|
|
228
230
|
}
|
|
@@ -103,7 +103,10 @@ static void ares_llist_attach_at(ares_llist_t *list,
|
|
|
103
103
|
case ARES__LLIST_INSERT_BEFORE:
|
|
104
104
|
node->next = at;
|
|
105
105
|
node->prev = at->prev;
|
|
106
|
-
at->prev
|
|
106
|
+
if (at->prev) {
|
|
107
|
+
at->prev->next = node;
|
|
108
|
+
}
|
|
109
|
+
at->prev = node;
|
|
107
110
|
break;
|
|
108
111
|
}
|
|
109
112
|
if (list->tail == NULL) {
|