grpc 1.62.0 → 1.63.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +415 -1962
- data/include/grpc/byte_buffer.h +1 -2
- data/include/grpc/census.h +1 -2
- data/include/grpc/compression.h +1 -2
- data/include/grpc/event_engine/endpoint_config.h +2 -2
- data/include/grpc/event_engine/event_engine.h +4 -2
- data/include/grpc/event_engine/extensible.h +2 -2
- data/include/grpc/event_engine/internal/memory_allocator_impl.h +1 -2
- data/include/grpc/event_engine/memory_allocator.h +1 -2
- data/include/grpc/event_engine/memory_request.h +2 -2
- data/include/grpc/event_engine/slice.h +1 -2
- data/include/grpc/event_engine/slice_buffer.h +1 -2
- data/include/grpc/grpc.h +1 -8
- data/include/grpc/grpc_audit_logging.h +1 -2
- data/include/grpc/grpc_crl_provider.h +2 -2
- data/include/grpc/grpc_cronet.h +1 -2
- data/include/grpc/grpc_posix.h +1 -2
- data/include/grpc/grpc_security.h +1 -2
- data/include/grpc/impl/call.h +1 -2
- data/include/grpc/impl/channel_arg_names.h +4 -0
- data/include/grpc/impl/grpc_types.h +1 -2
- data/include/grpc/impl/slice_type.h +2 -2
- data/include/grpc/module.modulemap +1 -0
- data/include/grpc/slice.h +1 -2
- data/include/grpc/slice_buffer.h +1 -2
- data/include/grpc/support/alloc.h +2 -2
- data/include/grpc/support/json.h +2 -2
- data/include/grpc/support/log.h +2 -2
- data/include/grpc/support/metrics.h +51 -0
- data/include/grpc/support/string_util.h +0 -1
- data/include/grpc/support/sync.h +0 -1
- data/include/grpc/support/sync_abseil.h +0 -1
- data/include/grpc/support/sync_custom.h +0 -1
- data/include/grpc/support/sync_generic.h +1 -2
- data/include/grpc/support/sync_posix.h +1 -2
- data/include/grpc/support/time.h +2 -2
- data/src/core/client_channel/client_channel_channelz.h +1 -1
- data/src/core/client_channel/client_channel_filter.cc +48 -38
- data/src/core/client_channel/client_channel_filter.h +6 -14
- data/src/core/client_channel/client_channel_internal.h +1 -1
- data/src/core/client_channel/client_channel_service_config.h +4 -3
- data/src/core/client_channel/config_selector.h +1 -1
- data/src/core/client_channel/dynamic_filters.h +1 -1
- data/src/core/client_channel/http_proxy_mapper.cc +3 -4
- data/src/core/client_channel/http_proxy_mapper.h +1 -1
- data/src/core/client_channel/retry_filter.h +1 -1
- data/src/core/client_channel/retry_filter_legacy_call_data.cc +1 -1
- data/src/core/client_channel/retry_filter_legacy_call_data.h +9 -9
- data/src/core/client_channel/retry_service_config.h +3 -3
- data/src/core/client_channel/retry_throttle.h +3 -2
- data/src/core/client_channel/subchannel.cc +2 -2
- data/src/core/client_channel/subchannel.h +7 -7
- data/src/core/client_channel/subchannel_pool_interface.h +1 -1
- data/src/core/client_channel/subchannel_stream_client.cc +1 -5
- data/src/core/client_channel/subchannel_stream_client.h +2 -2
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +3 -49
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.h +0 -12
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc +4 -10
- data/src/core/ext/filters/http/http_filters_plugin.cc +15 -35
- data/src/core/ext/filters/http/message_compress/compression_filter.cc +8 -7
- data/src/core/ext/filters/http/message_compress/compression_filter.h +2 -1
- data/src/core/ext/filters/http/server/http_server_filter.cc +1 -1
- data/src/core/ext/filters/message_size/message_size_filter.cc +15 -10
- data/src/core/ext/filters/rbac/rbac_filter.cc +4 -11
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +2 -2
- data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +1 -0
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +4 -9
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +38 -1
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +27 -76
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +23 -4
- data/src/core/ext/transport/chttp2/transport/context_list_entry.h +13 -10
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +1 -49
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +0 -2
- data/src/core/ext/transport/chttp2/transport/internal.h +4 -2
- data/src/core/ext/transport/chttp2/transport/parsing.cc +5 -10
- data/src/core/ext/transport/chttp2/transport/writing.cc +34 -31
- data/src/core/ext/transport/inproc/inproc_transport.cc +6 -4
- data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +9 -8
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb.h +243 -230
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.c +42 -48
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +289 -265
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +62 -70
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb.h +238 -226
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.c +42 -50
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb.h +937 -882
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.c +182 -208
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb.h +77 -76
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.c +9 -9
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb.h +86 -84
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.c +13 -13
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb.h +49 -42
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.c +13 -13
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb.h +28 -24
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.c +7 -7
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb.h +28 -24
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.c +7 -7
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +357 -318
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +86 -86
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb.h +23 -20
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.c +5 -7
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb.h +40 -32
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.c +4 -4
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb.h +24 -20
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.c +4 -4
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb.h +517 -473
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.c +105 -125
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +1207 -1108
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +261 -289
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +163 -152
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +29 -43
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +1265 -1137
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +276 -346
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb.h +32 -28
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.c +7 -9
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +212 -188
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +53 -69
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb.h +564 -508
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.c +123 -131
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +340 -309
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +69 -83
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb.h +25 -22
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.c +5 -11
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +786 -688
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +171 -189
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb.h +367 -343
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.c +72 -80
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb.h +19 -16
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.c +4 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb.h +23 -20
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.c +5 -7
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb.h +77 -76
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.c +9 -9
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb.h +539 -471
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.c +125 -141
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb.h +672 -632
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.c +137 -137
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb.h +44 -43
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.c +7 -7
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb.h +35 -30
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.c +8 -8
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +713 -637
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +166 -208
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb.h +65 -61
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.c +10 -12
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb.h +65 -61
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.c +11 -13
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +91 -83
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +17 -17
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb.h +102 -93
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.c +22 -22
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb.h +25 -22
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.c +5 -11
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb.h +162 -145
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.c +32 -40
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +314 -287
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +70 -74
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb.h +330 -309
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.c +66 -66
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb.h +16 -14
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.c +3 -7
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +516 -478
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +110 -120
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb.h +495 -468
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.c +89 -101
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb.h +88 -78
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.c +19 -37
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb.h +41 -36
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.c +8 -26
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb.h +46 -40
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.c +13 -13
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +307 -279
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +60 -64
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +382 -358
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +70 -70
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb.h +540 -490
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.c +122 -136
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb.h +339 -327
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.c +48 -70
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +3407 -3145
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +700 -752
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb.h +100 -91
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.c +20 -20
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb.h +472 -430
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.c +102 -116
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb.h +28 -24
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.c +7 -7
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb.h +23 -20
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.c +5 -7
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb.h +42 -36
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.c +9 -13
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb.h +58 -55
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.c +9 -13
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb.h +146 -136
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.c +30 -30
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +69 -65
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +15 -15
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb.h +16 -14
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.c +3 -7
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb.h +67 -58
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.c +14 -24
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb.h +64 -56
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.c +14 -20
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +58 -50
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +16 -16
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +986 -832
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.c +269 -281
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +35 -35
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.c +3 -3
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb.h +102 -88
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.c +25 -25
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +224 -204
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +46 -62
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +66 -58
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.c +14 -24
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +160 -153
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +28 -30
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +51 -44
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +12 -12
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +1349 -1230
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +293 -309
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +16 -14
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.c +3 -7
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +61 -54
- 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 +13 -23
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +124 -108
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +29 -37
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +14 -12
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.c +3 -3
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +66 -58
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.c +20 -20
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +16 -14
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.c +3 -7
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +518 -493
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +82 -108
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +92 -80
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.c +23 -29
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +497 -457
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.c +110 -124
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +58 -55
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +9 -11
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb.h +206 -185
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.c +48 -64
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb.h +7 -6
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.c +1 -1
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb.h +766 -710
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.c +140 -150
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb.h +102 -98
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.c +17 -17
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb.h +310 -288
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.c +67 -67
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb.h +30 -26
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.c +8 -8
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb.h +77 -71
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.c +13 -13
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb.h +26 -22
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.c +6 -6
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb.h +70 -60
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.c +15 -15
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb.h +77 -71
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.c +14 -14
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb.h +44 -43
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.c +7 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb.h +28 -24
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.c +6 -6
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb.h +19 -16
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.c +4 -4
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb.h +65 -56
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.c +15 -19
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +14 -12
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +2 -2
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb.h +97 -89
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.c +18 -18
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb.h +63 -59
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.c +10 -10
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb.h +134 -121
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.c +29 -29
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb.h +135 -121
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.c +26 -26
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb.h +141 -122
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.c +37 -37
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb.h +49 -42
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.c +11 -11
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb.h +14 -12
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.c +3 -3
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb.h +35 -30
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.c +8 -8
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb.h +63 -54
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.c +15 -15
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb.h +58 -50
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.c +14 -14
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb.h +28 -24
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.c +7 -7
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb.h +32 -28
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.c +7 -9
- data/src/core/ext/upb-gen/google/api/annotations.upb.h +10 -8
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.c +1 -1
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb.h +581 -524
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.c +118 -146
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb.h +616 -544
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.c +136 -152
- data/src/core/ext/upb-gen/google/api/http.upb.h +176 -162
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.c +34 -34
- data/src/core/ext/upb-gen/google/api/httpbody.upb.h +49 -47
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.c +8 -8
- data/src/core/ext/upb-gen/google/protobuf/any.upb.h +21 -18
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.c +5 -5
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb.h +2456 -2358
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.c +367 -486
- data/src/core/ext/upb-gen/google/protobuf/duration.upb.h +21 -18
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.c +5 -5
- data/src/core/ext/upb-gen/google/protobuf/empty.upb.h +7 -6
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.c +1 -1
- data/src/core/ext/upb-gen/google/protobuf/struct.upb.h +134 -116
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.c +27 -29
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb.h +21 -18
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.c +5 -5
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb.h +126 -108
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.c +27 -27
- data/src/core/ext/upb-gen/google/rpc/status.upb.h +49 -47
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.c +8 -8
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb.h +107 -92
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.c +27 -27
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb.h +77 -61
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.c +21 -21
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb.h +577 -518
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.c +121 -127
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb.h +46 -40
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.c +10 -16
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb.h +28 -24
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.c +6 -6
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb.h +265 -238
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.c +57 -63
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb.h +96 -82
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.c +19 -19
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb.h +496 -466
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.c +81 -85
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb.h +99 -82
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.c +16 -16
- data/src/core/ext/upb-gen/udpa/annotations/security.upb.h +31 -26
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.c +6 -6
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb.h +10 -8
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.c +1 -1
- data/src/core/ext/upb-gen/udpa/annotations/status.upb.h +31 -26
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.c +6 -6
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb.h +24 -20
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.c +4 -4
- data/src/core/ext/upb-gen/validate/validate.upb.h +2620 -2458
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.c +363 -507
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb.h +99 -82
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.c +16 -16
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb.h +31 -26
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.c +6 -6
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb.h +10 -8
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.c +1 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb.h +93 -78
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.c +17 -17
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb.h +24 -20
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.c +4 -4
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb.h +14 -12
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.c +3 -3
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb.h +23 -20
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.c +5 -7
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb.h +58 -50
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.c +15 -15
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb.h +33 -23
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.c +8 -8
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb.h +23 -20
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.c +5 -7
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb.h +32 -28
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.c +9 -9
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb.h +103 -93
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.c +21 -21
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb.h +37 -32
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.c +9 -13
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb.h +127 -93
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.c +34 -34
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb.h +44 -43
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.c +6 -6
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb.h +23 -20
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.c +6 -6
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb.h +79 -78
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.c +9 -11
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb.h +7 -6
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.c +1 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb.h +86 -84
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.c +13 -13
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb.h +324 -285
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.c +74 -82
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb.h +237 -234
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.c +30 -36
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb.h +33 -28
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.c +7 -7
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb.h +97 -89
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.c +18 -18
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb.h +53 -46
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.c +12 -18
- data/src/core/ext/upb-gen/xds/type/v3/range.upb.h +63 -54
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.c +15 -15
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb.h +23 -20
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.c +5 -7
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.c +385 -384
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h +2 -5
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h +2 -5
- data/src/core/ext/xds/certificate_provider_store.h +3 -2
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.h +2 -2
- data/src/core/ext/xds/xds_api.h +1 -1
- data/src/core/ext/xds/xds_audit_logger_registry.cc +2 -1
- data/src/core/ext/xds/xds_audit_logger_registry.h +1 -1
- data/src/core/ext/xds/xds_bootstrap.h +2 -4
- data/src/core/ext/xds/xds_bootstrap_grpc.cc +38 -6
- data/src/core/ext/xds/xds_bootstrap_grpc.h +22 -7
- data/src/core/ext/xds/xds_certificate_provider.cc +2 -2
- data/src/core/ext/xds/xds_certificate_provider.h +1 -1
- data/src/core/ext/xds/xds_channel_stack_modifier.h +2 -1
- data/src/core/ext/xds/xds_client.cc +283 -103
- data/src/core/ext/xds/xds_client.h +41 -8
- data/src/core/ext/xds/xds_client_grpc.cc +184 -55
- data/src/core/ext/xds/xds_client_grpc.h +22 -8
- data/src/core/ext/xds/xds_client_stats.cc +2 -2
- data/src/core/ext/xds/xds_client_stats.h +14 -7
- data/src/core/ext/xds/xds_cluster.cc +9 -9
- data/src/core/ext/xds/xds_cluster.h +5 -2
- data/src/core/ext/xds/xds_cluster_specifier_plugin.h +2 -2
- data/src/core/ext/xds/xds_endpoint.cc +3 -2
- data/src/core/ext/xds/xds_endpoint.h +2 -2
- data/src/core/ext/xds/xds_health_status.h +2 -2
- data/src/core/ext/xds/xds_http_fault_filter.h +1 -1
- data/src/core/ext/xds/xds_http_filters.h +2 -2
- data/src/core/ext/xds/xds_http_rbac_filter.h +1 -1
- data/src/core/ext/xds/xds_http_stateful_session_filter.h +1 -1
- data/src/core/ext/xds/xds_lb_policy_registry.cc +5 -5
- data/src/core/ext/xds/xds_lb_policy_registry.h +1 -1
- data/src/core/ext/xds/xds_listener.h +1 -1
- data/src/core/ext/xds/xds_metrics.h +39 -0
- data/src/core/ext/xds/xds_route_config.h +1 -1
- data/src/core/ext/xds/xds_routing.h +1 -1
- data/src/core/ext/xds/xds_server_config_fetcher.cc +20 -19
- data/src/core/ext/xds/xds_transport_grpc.cc +17 -32
- data/src/core/ext/xds/xds_transport_grpc.h +6 -6
- data/src/core/lib/address_utils/parse_address.cc +8 -1
- data/src/core/lib/address_utils/sockaddr_utils.cc +8 -1
- data/src/core/lib/channel/call_finalization.h +1 -1
- data/src/core/lib/channel/call_tracer.cc +3 -4
- data/src/core/lib/channel/call_tracer.h +14 -12
- data/src/core/lib/channel/channel_stack.cc +9 -0
- data/src/core/lib/channel/channel_stack.h +5 -0
- data/src/core/lib/channel/channel_stack_builder_impl.cc +140 -0
- data/src/core/lib/channel/channelz.h +9 -6
- data/src/core/lib/channel/channelz_registry.h +1 -1
- data/src/core/lib/channel/connected_channel.cc +5 -8
- data/src/core/lib/channel/metrics.cc +396 -0
- data/src/core/lib/channel/metrics.h +406 -0
- data/src/core/lib/channel/promise_based_filter.h +63 -7
- data/src/core/lib/channel/server_call_tracer_filter.cc +2 -0
- data/src/core/lib/{surface/builtins.h → channel/server_call_tracer_filter.h} +7 -5
- data/src/core/lib/channel/tcp_tracer.h +4 -0
- data/src/core/lib/compression/compression_internal.cc +33 -0
- data/src/core/lib/compression/compression_internal.h +3 -0
- data/src/core/lib/config/config_vars.cc +6 -4
- data/src/core/lib/config/config_vars.h +4 -0
- data/src/core/lib/debug/stats_data.cc +269 -26
- data/src/core/lib/debug/stats_data.h +176 -0
- data/src/core/lib/event_engine/default_event_engine.h +0 -6
- data/src/core/lib/event_engine/event_engine_context.h +31 -0
- data/src/core/lib/event_engine/extensions/chaotic_good_extension.h +65 -0
- data/src/core/lib/event_engine/posix.h +8 -0
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +1 -1
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +1 -0
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +7 -0
- data/src/core/lib/event_engine/tcp_socket_utils.cc +8 -1
- data/src/core/lib/event_engine/tcp_socket_utils.h +2 -2
- data/src/core/lib/event_engine/windows/win_socket.cc +4 -0
- data/src/core/lib/event_engine/windows/win_socket.h +3 -0
- data/src/core/lib/event_engine/windows/windows_engine.cc +41 -8
- data/src/core/lib/event_engine/windows/windows_listener.cc +54 -6
- data/src/core/lib/event_engine/windows/windows_listener.h +14 -0
- data/src/core/lib/experiments/config.cc +63 -45
- data/src/core/lib/experiments/experiments.cc +19 -238
- data/src/core/lib/experiments/experiments.h +4 -119
- data/src/core/lib/gpr/android/log.cc +1 -1
- data/src/core/lib/gpr/linux/log.cc +1 -1
- data/src/core/lib/gpr/log.cc +26 -0
- data/src/core/lib/gpr/posix/log.cc +1 -1
- data/src/core/lib/gpr/posix/time.cc +0 -60
- data/src/core/lib/gpr/windows/log.cc +1 -1
- data/src/core/lib/gprpp/down_cast.h +4 -4
- data/src/core/lib/gprpp/dual_ref_counted.h +17 -9
- data/src/core/lib/gprpp/load_file.cc +3 -1
- data/src/core/lib/gprpp/orphanable.h +5 -2
- data/src/core/lib/gprpp/ref_counted.h +5 -2
- data/src/core/lib/gprpp/ref_counted_ptr.h +2 -1
- data/src/core/lib/gprpp/time.h +6 -0
- data/src/core/lib/gprpp/uuid_v4.cc +37 -0
- data/src/core/lib/gprpp/uuid_v4.h +36 -0
- data/src/core/lib/iomgr/port.h +3 -0
- data/src/core/lib/iomgr/tcp_client_windows.cc +24 -5
- data/src/core/lib/iomgr/tcp_posix.cc +47 -0
- data/src/core/lib/iomgr/tcp_server_posix.cc +101 -87
- data/src/core/lib/iomgr/tcp_server_windows.cc +60 -9
- data/src/core/lib/iomgr/unix_sockets_posix.cc +13 -0
- data/src/core/lib/promise/activity.h +1 -0
- data/src/core/lib/promise/context.h +2 -2
- data/src/core/lib/promise/party.cc +33 -3
- data/src/core/lib/promise/party.h +12 -14
- data/src/core/lib/promise/sleep.cc +1 -1
- data/src/core/lib/promise/status_flag.h +8 -0
- data/src/core/lib/resource_quota/arena.h +3 -0
- data/src/core/lib/resource_quota/connection_quota.cc +71 -0
- data/src/core/lib/resource_quota/connection_quota.h +61 -0
- data/src/core/lib/security/authorization/evaluate_args.cc +6 -5
- data/src/core/lib/security/authorization/evaluate_args.h +3 -3
- data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +4 -7
- data/src/core/lib/security/authorization/grpc_server_authz_filter.h +1 -2
- data/src/core/lib/security/credentials/jwt/json_token.cc +8 -4
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +11 -16
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.cc +17 -10
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.h +7 -3
- data/src/core/lib/security/security_connector/load_system_roots.h +3 -0
- data/src/core/lib/security/security_connector/load_system_roots_fallback.cc +3 -2
- data/src/core/lib/security/security_connector/load_system_roots_windows.cc +87 -0
- data/src/core/lib/security/transport/auth_filters.h +0 -25
- data/src/core/lib/security/transport/security_handshaker.cc +18 -9
- data/src/core/lib/security/transport/security_handshaker.h +4 -2
- data/src/core/lib/slice/slice.cc +31 -5
- data/src/core/lib/slice/slice_buffer.cc +49 -11
- data/src/core/lib/slice/slice_buffer.h +14 -1
- data/src/core/lib/slice/slice_internal.h +7 -0
- data/src/core/lib/surface/call.cc +50 -55
- data/src/core/lib/surface/call.h +3 -3
- data/src/core/lib/surface/call_trace.h +0 -6
- data/src/core/lib/surface/channel.cc +104 -315
- data/src/core/lib/surface/channel.h +88 -107
- data/src/core/lib/surface/channel_create.cc +109 -0
- data/src/core/lib/surface/{builtins.cc → channel_create.h} +20 -15
- data/src/core/lib/surface/channel_init.cc +7 -6
- data/src/core/lib/surface/channel_init.h +18 -2
- data/src/core/lib/surface/init.cc +9 -14
- data/src/core/lib/surface/lame_client.cc +3 -28
- data/src/core/lib/surface/lame_client.h +7 -2
- data/src/core/lib/surface/legacy_channel.cc +414 -0
- data/src/core/lib/surface/legacy_channel.h +124 -0
- data/src/core/lib/surface/server.cc +20 -35
- data/src/core/lib/surface/server.h +10 -6
- data/src/core/lib/surface/server_interface.h +43 -0
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/batch_builder.cc +7 -16
- data/src/core/lib/transport/batch_builder.h +4 -6
- data/src/core/lib/transport/call_filters.cc +119 -19
- data/src/core/lib/transport/call_filters.h +339 -40
- data/src/core/lib/transport/call_spine.h +8 -3
- data/src/core/lib/transport/endpoint_info_handshaker.cc +80 -0
- data/src/core/lib/transport/endpoint_info_handshaker.h +37 -0
- data/src/core/lib/transport/handshaker_factory.h +1 -2
- data/src/core/lib/transport/metadata.cc +1 -1
- data/src/core/lib/transport/metadata_batch.cc +66 -5
- data/src/core/lib/transport/metadata_batch.h +12 -16
- data/src/core/lib/transport/metadata_info.cc +55 -0
- data/src/core/lib/transport/metadata_info.h +85 -0
- data/src/core/lib/transport/transport_op_string.cc +0 -8
- data/src/core/load_balancing/address_filtering.cc +1 -1
- data/src/core/load_balancing/address_filtering.h +1 -1
- data/src/core/{client_channel/backend_metric.cc → load_balancing/backend_metric_parser.cc} +1 -1
- data/src/core/{client_channel/backend_metric.h → load_balancing/backend_metric_parser.h} +3 -3
- data/src/core/load_balancing/child_policy_handler.cc +1 -1
- data/src/core/load_balancing/delegating_helper.h +8 -0
- data/src/core/load_balancing/endpoint_list.cc +1 -1
- data/src/core/load_balancing/grpclb/client_load_reporting_filter.h +3 -1
- data/src/core/load_balancing/grpclb/grpclb.cc +39 -44
- data/src/core/load_balancing/grpclb/grpclb_client_stats.h +1 -1
- data/src/core/load_balancing/health_check_client.cc +6 -6
- data/src/core/load_balancing/health_check_client_internal.h +4 -5
- data/src/core/load_balancing/lb_policy.h +13 -4
- data/src/core/load_balancing/lb_policy_registry.h +2 -2
- data/src/core/load_balancing/oob_backend_metric.cc +6 -6
- data/src/core/load_balancing/oob_backend_metric.h +1 -1
- data/src/core/load_balancing/oob_backend_metric_internal.h +6 -6
- data/src/core/load_balancing/outlier_detection/outlier_detection.cc +29 -29
- data/src/core/load_balancing/pick_first/pick_first.cc +70 -148
- data/src/core/load_balancing/priority/priority.cc +8 -7
- data/src/core/load_balancing/ring_hash/ring_hash.cc +8 -8
- data/src/core/load_balancing/ring_hash/ring_hash.h +1 -1
- data/src/core/load_balancing/rls/rls.cc +202 -79
- data/src/core/load_balancing/rls/rls.h +26 -0
- data/src/core/load_balancing/round_robin/round_robin.cc +7 -462
- data/src/core/load_balancing/subchannel_interface.h +3 -2
- data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.h +1 -1
- data/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc +169 -964
- data/src/core/load_balancing/weighted_target/weighted_target.cc +13 -10
- data/src/core/load_balancing/weighted_target/weighted_target.h +28 -0
- data/src/core/load_balancing/xds/cds.cc +8 -8
- data/src/core/load_balancing/xds/xds_cluster_impl.cc +101 -57
- data/src/core/load_balancing/xds/xds_cluster_manager.cc +6 -6
- data/src/core/load_balancing/xds/xds_override_host.cc +15 -15
- data/src/core/load_balancing/xds/xds_override_host.h +1 -1
- data/src/core/load_balancing/xds/xds_wrr_locality.cc +9 -8
- data/src/core/plugin_registry/grpc_plugin_registry.cc +20 -3
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +0 -1
- data/src/core/resolver/binder/binder_resolver.cc +9 -2
- data/src/core/resolver/dns/c_ares/dns_resolver_ares.cc +8 -7
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +2 -2
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +3 -3
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc +1 -1
- data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +2 -2
- data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h +3 -1
- data/src/core/resolver/dns/native/dns_resolver.cc +3 -3
- data/src/core/resolver/endpoint_addresses.h +4 -4
- data/src/core/resolver/fake/fake_resolver.cc +2 -2
- data/src/core/resolver/fake/fake_resolver.h +1 -1
- data/src/core/resolver/google_c2p/google_c2p_resolver.cc +9 -4
- data/src/core/resolver/resolver_registry.h +2 -2
- data/src/core/resolver/sockaddr/sockaddr_resolver.cc +6 -6
- data/src/core/resolver/xds/xds_dependency_manager.cc +14 -9
- data/src/core/resolver/xds/xds_dependency_manager.h +5 -5
- data/src/core/resolver/xds/xds_resolver.cc +17 -16
- data/src/core/resolver/xds/xds_resolver_attributes.h +1 -1
- data/src/core/{client_channel → service_config}/service_config_channel_arg_filter.cc +1 -1
- data/src/core/service_config/service_config_parser.h +1 -1
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +6 -4
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +1 -0
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.cc +1 -1
- data/src/core/tsi/ssl_transport_security.cc +198 -70
- data/src/core/tsi/ssl_transport_security_utils.cc +127 -0
- data/src/core/tsi/ssl_transport_security_utils.h +27 -0
- data/src/ruby/ext/grpc/extconf.rb +0 -3
- data/src/ruby/ext/grpc/rb_grpc.c +1 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +0 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +0 -3
- data/src/ruby/lib/grpc/generic/active_call.rb +8 -2
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/spec/generic/rpc_server_spec.rb +25 -0
- data/third_party/abseil-cpp/absl/debugging/internal/examine_stack.cc +320 -0
- data/third_party/abseil-cpp/absl/debugging/internal/examine_stack.h +64 -0
- data/third_party/abseil-cpp/absl/log/absl_vlog_is_on.h +93 -0
- data/third_party/abseil-cpp/absl/log/globals.cc +178 -0
- data/third_party/abseil-cpp/absl/log/globals.h +218 -0
- data/third_party/abseil-cpp/absl/log/internal/append_truncated.h +47 -0
- data/third_party/abseil-cpp/absl/log/internal/conditions.cc +83 -0
- data/third_party/abseil-cpp/absl/log/internal/conditions.h +239 -0
- data/third_party/abseil-cpp/absl/log/internal/config.h +45 -0
- data/third_party/abseil-cpp/absl/log/internal/fnmatch.cc +73 -0
- data/third_party/abseil-cpp/absl/log/internal/fnmatch.h +35 -0
- data/third_party/abseil-cpp/absl/log/internal/globals.cc +145 -0
- data/third_party/abseil-cpp/absl/log/internal/globals.h +101 -0
- data/third_party/abseil-cpp/absl/log/internal/log_format.cc +205 -0
- data/third_party/abseil-cpp/absl/log/internal/log_format.h +78 -0
- data/third_party/abseil-cpp/absl/log/internal/log_impl.h +282 -0
- data/third_party/abseil-cpp/absl/log/internal/log_message.cc +633 -0
- data/third_party/abseil-cpp/absl/log/internal/log_message.h +375 -0
- data/third_party/abseil-cpp/absl/log/internal/log_sink_set.cc +296 -0
- data/third_party/abseil-cpp/absl/log/internal/log_sink_set.h +54 -0
- data/third_party/abseil-cpp/absl/log/internal/nullguard.cc +35 -0
- data/third_party/abseil-cpp/absl/log/internal/nullguard.h +88 -0
- data/third_party/abseil-cpp/absl/log/internal/nullstream.h +136 -0
- data/third_party/abseil-cpp/absl/log/internal/proto.cc +220 -0
- data/third_party/abseil-cpp/absl/log/internal/proto.h +288 -0
- data/third_party/abseil-cpp/absl/log/internal/strip.h +72 -0
- data/third_party/abseil-cpp/absl/log/internal/vlog_config.cc +340 -0
- data/third_party/abseil-cpp/absl/log/internal/vlog_config.h +163 -0
- data/third_party/abseil-cpp/absl/log/internal/voidify.h +44 -0
- data/third_party/abseil-cpp/absl/log/log.h +361 -0
- data/third_party/abseil-cpp/absl/log/log_entry.cc +41 -0
- data/third_party/abseil-cpp/absl/log/log_entry.h +221 -0
- data/third_party/abseil-cpp/absl/log/log_sink.cc +23 -0
- data/third_party/abseil-cpp/absl/log/log_sink.h +64 -0
- data/third_party/abseil-cpp/absl/log/log_sink_registry.h +61 -0
- data/third_party/abseil-cpp/absl/log/vlog_is_on.h +72 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/internal.h +1 -7
- data/third_party/boringssl-with-bazel/src/crypto/asn1/posix_time.c +50 -39
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_des.c +15 -28
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/internal.h +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/des/des.c +45 -32
- data/third_party/boringssl-with-bazel/src/crypto/des/internal.h +24 -0
- data/third_party/boringssl-with-bazel/src/crypto/internal.h +12 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_purp.c +40 -61
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +24 -7
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +36 -59
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +4 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vpm.c +13 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +10 -10
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +2 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +3 -3
- data/third_party/boringssl-with-bazel/src/include/openssl/pki/certificate.h +83 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/pki/signature_verify_cache.h +41 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/posix_time.h +6 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/rsa.h +19 -10
- data/third_party/boringssl-with-bazel/src/include/openssl/span.h +14 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +16 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +196 -141
- data/third_party/boringssl-with-bazel/src/ssl/ssl_cert.cc +8 -1
- data/third_party/upb/upb/base/descriptor_constants.h +29 -2
- data/third_party/upb/upb/{wire/internal/swap.h → base/internal/endian.h} +12 -11
- data/third_party/upb/upb/base/status.h +1 -1
- data/third_party/upb/upb/base/status.hpp +5 -1
- data/third_party/upb/upb/base/string_view.h +7 -5
- data/third_party/upb/upb/base/upcast.h +29 -0
- data/third_party/upb/upb/generated_code_support.h +2 -1
- data/third_party/upb/upb/json/decode.c +103 -53
- data/third_party/upb/upb/json/decode.h +3 -26
- data/third_party/upb/upb/json/encode.c +3 -26
- data/third_party/upb/upb/json/encode.h +3 -26
- data/third_party/upb/upb/mem/arena.c +233 -106
- data/third_party/upb/upb/mem/arena.h +14 -66
- data/third_party/upb/upb/mem/arena.hpp +8 -4
- data/third_party/upb/upb/mem/internal/arena.h +76 -58
- data/third_party/upb/upb/message/accessors.c +19 -46
- data/third_party/upb/upb/message/accessors.h +208 -123
- data/third_party/upb/upb/message/array.c +55 -83
- data/third_party/upb/upb/message/array.h +18 -30
- data/third_party/upb/upb/message/compat.c +39 -0
- data/third_party/upb/upb/message/compat.h +41 -0
- data/third_party/upb/upb/message/copy.c +322 -0
- data/third_party/upb/upb/message/copy.h +56 -0
- data/third_party/upb/upb/message/internal/accessors.h +178 -178
- data/third_party/upb/upb/message/internal/array.h +80 -81
- data/third_party/upb/upb/message/internal/extension.c +63 -0
- data/third_party/upb/upb/message/internal/extension.h +12 -12
- data/third_party/upb/upb/message/internal/map.h +28 -41
- data/third_party/upb/upb/message/internal/map_entry.h +14 -39
- data/third_party/upb/upb/message/internal/map_sorter.h +18 -37
- data/third_party/upb/upb/message/internal/message.c +59 -0
- data/third_party/upb/upb/message/internal/message.h +26 -42
- data/third_party/upb/upb/message/internal/tagged_ptr.h +56 -0
- data/third_party/upb/upb/message/internal/types.h +7 -12
- data/third_party/upb/upb/message/map.c +3 -26
- data/third_party/upb/upb/message/map.h +5 -33
- data/third_party/upb/upb/message/map_gencode_util.h +3 -26
- data/third_party/upb/upb/message/map_sorter.c +22 -34
- data/third_party/upb/upb/message/message.c +28 -104
- data/third_party/upb/upb/message/message.h +4 -8
- data/third_party/upb/upb/message/tagged_ptr.h +14 -31
- data/third_party/upb/upb/message/value.h +3 -5
- data/third_party/upb/upb/mini_descriptor/build_enum.c +20 -11
- data/third_party/upb/upb/mini_descriptor/decode.c +127 -107
- data/third_party/upb/upb/mini_descriptor/decode.h +3 -8
- data/third_party/upb/upb/mini_descriptor/link.c +34 -22
- data/third_party/upb/upb/mini_descriptor/link.h +1 -1
- data/third_party/upb/upb/mini_table/enum.h +4 -6
- data/third_party/upb/upb/mini_table/extension.h +37 -0
- data/third_party/upb/upb/mini_table/extension_registry.c +9 -2
- data/third_party/upb/upb/mini_table/field.h +46 -60
- data/third_party/upb/upb/mini_table/file.h +44 -0
- data/third_party/upb/upb/mini_table/internal/enum.h +19 -20
- data/third_party/upb/upb/mini_table/internal/extension.h +34 -3
- data/third_party/upb/upb/mini_table/internal/field.h +136 -27
- data/third_party/upb/upb/mini_table/internal/file.h +47 -10
- data/third_party/upb/upb/mini_table/internal/message.c +17 -9
- data/third_party/upb/upb/mini_table/internal/message.h +94 -23
- data/third_party/upb/upb/mini_table/internal/size_log2.h +77 -0
- data/third_party/upb/upb/mini_table/internal/sub.h +39 -4
- data/third_party/upb/upb/mini_table/message.c +18 -19
- data/third_party/upb/upb/mini_table/message.h +29 -20
- data/third_party/upb/upb/mini_table/sub.h +40 -1
- data/third_party/upb/upb/port/def.inc +18 -0
- data/third_party/upb/upb/port/undef.inc +3 -0
- data/third_party/upb/upb/reflection/def.hpp +8 -4
- data/third_party/upb/upb/reflection/def_pool.c +81 -2
- data/third_party/upb/upb/reflection/def_pool.h +8 -0
- data/third_party/upb/upb/reflection/enum_def.c +42 -19
- data/third_party/upb/upb/reflection/enum_def.h +1 -0
- data/third_party/upb/upb/reflection/enum_value_def.c +43 -14
- data/third_party/upb/upb/reflection/enum_value_def.h +2 -0
- data/third_party/upb/upb/reflection/extension_range.c +13 -5
- data/third_party/upb/upb/reflection/extension_range.h +2 -0
- data/third_party/upb/upb/reflection/field_def.c +177 -130
- data/third_party/upb/upb/reflection/field_def.h +10 -1
- data/third_party/upb/upb/reflection/file_def.c +98 -9
- data/third_party/upb/upb/reflection/file_def.h +3 -0
- data/third_party/upb/upb/reflection/internal/def_builder.c +85 -7
- data/third_party/upb/upb/reflection/internal/def_builder.h +23 -0
- data/third_party/upb/upb/reflection/internal/enum_def.h +5 -4
- data/third_party/upb/upb/reflection/internal/enum_reserved_range.h +1 -1
- data/third_party/upb/upb/reflection/internal/enum_value_def.h +2 -1
- data/third_party/upb/upb/reflection/internal/extension_range.h +2 -2
- data/third_party/upb/upb/reflection/internal/field_def.h +11 -10
- data/third_party/upb/upb/reflection/internal/message_def.h +6 -3
- data/third_party/upb/upb/reflection/internal/method_def.h +5 -3
- data/third_party/upb/upb/reflection/internal/oneof_def.h +5 -3
- data/third_party/upb/upb/reflection/internal/service_def.h +5 -3
- data/third_party/upb/upb/reflection/internal/upb_edition_defaults.h +20 -0
- data/third_party/upb/upb/reflection/message.c +27 -12
- data/third_party/upb/upb/reflection/message.h +5 -5
- data/third_party/upb/upb/reflection/message_def.c +56 -27
- data/third_party/upb/upb/reflection/message_def.h +2 -0
- data/third_party/upb/upb/reflection/method_def.c +20 -9
- data/third_party/upb/upb/reflection/method_def.h +2 -0
- data/third_party/upb/upb/reflection/oneof_def.c +20 -11
- data/third_party/upb/upb/reflection/oneof_def.h +3 -1
- data/third_party/upb/upb/reflection/service_def.c +25 -13
- data/third_party/upb/upb/reflection/service_def.h +2 -0
- data/third_party/upb/upb/text/encode.c +126 -36
- data/third_party/upb/upb/wire/decode.c +214 -196
- data/third_party/upb/upb/wire/decode.h +10 -0
- data/third_party/upb/upb/wire/encode.c +105 -91
- data/third_party/upb/upb/wire/encode.h +4 -3
- data/third_party/upb/upb/wire/{decode_fast.c → internal/decode_fast.c} +53 -48
- data/third_party/upb/upb/wire/{decode_fast.h → internal/decode_fast.h} +6 -5
- data/third_party/upb/upb/wire/internal/{decode.h → decoder.h} +15 -31
- data/third_party/upb/upb/wire/internal/reader.h +61 -0
- data/third_party/upb/upb/wire/reader.c +9 -6
- data/third_party/upb/upb/wire/reader.h +18 -47
- data/third_party/utf8_range/utf8_range.c +467 -0
- data/third_party/utf8_range/utf8_range.h +9 -8
- metadata +83 -30
- data/src/core/client_channel/channel_connectivity.cc +0 -265
- data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +0 -318
- data/src/core/ext/filters/channel_idle/channel_idle_filter.h +0 -150
- data/src/core/ext/filters/http/message_compress/legacy_compression_filter.cc +0 -325
- data/src/core/ext/filters/http/message_compress/legacy_compression_filter.h +0 -139
- data/src/core/lib/gpr/wrap_memcpy.cc +0 -43
- data/src/core/lib/security/transport/legacy_server_auth_filter.cc +0 -244
- data/src/core/lib/slice/b64.cc +0 -239
- data/src/core/lib/slice/b64.h +0 -52
- data/src/core/lib/surface/call_trace.cc +0 -163
- data/src/core/lib/surface/channel_ping.cc +0 -69
- data/src/core/lib/transport/call_factory.cc +0 -41
- data/src/core/lib/transport/call_factory.h +0 -56
- data/src/core/load_balancing/subchannel_list.h +0 -455
- data/third_party/upb/upb/message/types.h +0 -15
- data/third_party/utf8_range/naive.c +0 -92
- data/third_party/utf8_range/range2-neon.c +0 -157
- data/third_party/utf8_range/range2-sse.c +0 -170
@@ -0,0 +1,41 @@
|
|
1
|
+
// Copyright 2022 The Chromium Authors
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
3
|
+
// found in the LICENSE file.
|
4
|
+
|
5
|
+
#if !defined(BSSL_PKI_SIGNATURE_VERIFY_CACHE_H_) && defined(__cplusplus)
|
6
|
+
#define BSSL_PKI_SIGNATURE_VERIFY_CACHE_H_
|
7
|
+
|
8
|
+
#include <openssl/base.h>
|
9
|
+
#include <string>
|
10
|
+
|
11
|
+
namespace bssl {
|
12
|
+
|
13
|
+
class OPENSSL_EXPORT SignatureVerifyCache {
|
14
|
+
public:
|
15
|
+
enum class Value {
|
16
|
+
kValid, // Cached as a valid signature result.
|
17
|
+
kInvalid, // Cached as an invalid signature result.
|
18
|
+
kUnknown, // Cache has no information.
|
19
|
+
};
|
20
|
+
|
21
|
+
virtual ~SignatureVerifyCache() = default;
|
22
|
+
|
23
|
+
// This interface uses a const std::string reference instead of
|
24
|
+
// std::string_view because any implementation that may reasonably want to use
|
25
|
+
// std::unordered_map or similar can run into problems with std::hash before
|
26
|
+
// C++20. (https://en.cppreference.com/w/cpp/container/unordered_map/find)
|
27
|
+
|
28
|
+
// |Store| is called to store the result of a verification for |key| as kValid
|
29
|
+
// or kInvalid after a signature check.
|
30
|
+
virtual void Store(const std::string &key, Value value) = 0;
|
31
|
+
|
32
|
+
// |Check| is called to fetch a cached value for a verification for |key|. If
|
33
|
+
// the result is kValid, or kInvalid, signature checking is skipped and the
|
34
|
+
// corresponding cached result is used. If the result is kUnknown signature
|
35
|
+
// checking is performed and the corresponding result saved using |Store|.
|
36
|
+
virtual Value Check(const std::string &key) = 0;
|
37
|
+
};
|
38
|
+
|
39
|
+
} // namespace bssl
|
40
|
+
|
41
|
+
#endif // BSSL_PKI_SIGNATURE_VERIFY_CACHE_H_ && __cplusplus
|
@@ -37,6 +37,12 @@ OPENSSL_EXPORT int OPENSSL_posix_to_tm(int64_t time, struct tm *out_tm);
|
|
37
37
|
// returned on failure. It is a failure if |tm| contains out of range values.
|
38
38
|
OPENSSL_EXPORT int OPENSSL_tm_to_posix(const struct tm *tm, int64_t *out);
|
39
39
|
|
40
|
+
// OPENSSL_timegm converts a time value between the years 0 and 9999 in |tm| to
|
41
|
+
// a time_t value in |out|. One is returned on success, zero is returned on
|
42
|
+
// failure. It is a failure if the converted time can not be represented in a
|
43
|
+
// time_t, or if the tm contains out of range values.
|
44
|
+
OPENSSL_EXPORT int OPENSSL_timegm(const struct tm *tm, time_t *out);
|
45
|
+
|
40
46
|
|
41
47
|
#if defined(__cplusplus)
|
42
48
|
} // extern C
|
@@ -236,6 +236,13 @@ OPENSSL_EXPORT int RSA_generate_key_fips(RSA *rsa, int bits, BN_GENCB *cb);
|
|
236
236
|
|
237
237
|
// RSA_PKCS1_PADDING denotes PKCS#1 v1.5 padding. When used with encryption,
|
238
238
|
// this is RSAES-PKCS1-v1_5. When used with signing, this is RSASSA-PKCS1-v1_5.
|
239
|
+
//
|
240
|
+
// WARNING: The RSAES-PKCS1-v1_5 encryption scheme is vulnerable to a
|
241
|
+
// chosen-ciphertext attack. Decrypting attacker-supplied ciphertext with
|
242
|
+
// RSAES-PKCS1-v1_5 may give the attacker control over your private key. This
|
243
|
+
// does not impact the RSASSA-PKCS1-v1_5 signature scheme. See "Chosen
|
244
|
+
// Ciphertext Attacks Against Protocols Based on the RSA Encryption Standard
|
245
|
+
// PKCS #1", Daniel Bleichenbacher, Advances in Cryptology (Crypto '98).
|
239
246
|
#define RSA_PKCS1_PADDING 1
|
240
247
|
|
241
248
|
// RSA_NO_PADDING denotes a raw RSA operation.
|
@@ -256,8 +263,7 @@ OPENSSL_EXPORT int RSA_generate_key_fips(RSA *rsa, int bits, BN_GENCB *cb);
|
|
256
263
|
// It returns 1 on success or zero on error.
|
257
264
|
//
|
258
265
|
// The |padding| argument must be one of the |RSA_*_PADDING| values. If in
|
259
|
-
// doubt, use |RSA_PKCS1_OAEP_PADDING| for new protocols
|
260
|
-
// |RSA_PKCS1_PADDING| is most common.
|
266
|
+
// doubt, use |RSA_PKCS1_OAEP_PADDING| for new protocols.
|
261
267
|
OPENSSL_EXPORT int RSA_encrypt(RSA *rsa, size_t *out_len, uint8_t *out,
|
262
268
|
size_t max_out, const uint8_t *in, size_t in_len,
|
263
269
|
int padding);
|
@@ -271,12 +277,16 @@ OPENSSL_EXPORT int RSA_encrypt(RSA *rsa, size_t *out_len, uint8_t *out,
|
|
271
277
|
// The |padding| argument must be one of the |RSA_*_PADDING| values. If in
|
272
278
|
// doubt, use |RSA_PKCS1_OAEP_PADDING| for new protocols.
|
273
279
|
//
|
274
|
-
// Passing |RSA_PKCS1_PADDING| into this function is deprecated and
|
275
|
-
//
|
276
|
-
//
|
277
|
-
//
|
278
|
-
// on the RSA Encryption Standard PKCS #1", Daniel
|
279
|
-
// Cryptology (Crypto '98).
|
280
|
+
// WARNING: Passing |RSA_PKCS1_PADDING| into this function is deprecated and
|
281
|
+
// insecure. RSAES-PKCS1-v1_5 is vulnerable to a chosen-ciphertext attack.
|
282
|
+
// Decrypting attacker-supplied ciphertext with RSAES-PKCS1-v1_5 may give the
|
283
|
+
// attacker control over your private key. See "Chosen Ciphertext Attacks
|
284
|
+
// Against Protocols Based on the RSA Encryption Standard PKCS #1", Daniel
|
285
|
+
// Bleichenbacher, Advances in Cryptology (Crypto '98).
|
286
|
+
//
|
287
|
+
// In some limited cases, such as TLS RSA key exchange, it is possible to
|
288
|
+
// mitigate this flaw with custom, protocol-specific padding logic. This
|
289
|
+
// should be implemented with |RSA_NO_PADDING|, not |RSA_PKCS1_PADDING|.
|
280
290
|
OPENSSL_EXPORT int RSA_decrypt(RSA *rsa, size_t *out_len, uint8_t *out,
|
281
291
|
size_t max_out, const uint8_t *in, size_t in_len,
|
282
292
|
int padding);
|
@@ -285,8 +295,7 @@ OPENSSL_EXPORT int RSA_decrypt(RSA *rsa, size_t *out_len, uint8_t *out,
|
|
285
295
|
// |rsa| and writes the encrypted data to |to|. The |to| buffer must have at
|
286
296
|
// least |RSA_size| bytes of space. It returns the number of bytes written, or
|
287
297
|
// -1 on error. The |padding| argument must be one of the |RSA_*_PADDING|
|
288
|
-
// values. If in doubt, use |RSA_PKCS1_OAEP_PADDING| for new protocols
|
289
|
-
// |RSA_PKCS1_PADDING| is most common.
|
298
|
+
// values. If in doubt, use |RSA_PKCS1_OAEP_PADDING| for new protocols.
|
290
299
|
//
|
291
300
|
// WARNING: this function is dangerous because it breaks the usual return value
|
292
301
|
// convention. Use |RSA_encrypt| instead.
|
@@ -26,6 +26,10 @@ extern "C++" {
|
|
26
26
|
#include <algorithm>
|
27
27
|
#include <type_traits>
|
28
28
|
|
29
|
+
#if __cplusplus >= 201703L
|
30
|
+
#include <string_view>
|
31
|
+
#endif
|
32
|
+
|
29
33
|
BSSL_NAMESPACE_BEGIN
|
30
34
|
|
31
35
|
template <typename T>
|
@@ -210,6 +214,16 @@ constexpr Span<const T> MakeConstSpan(T (&array)[size]) {
|
|
210
214
|
return array;
|
211
215
|
}
|
212
216
|
|
217
|
+
#if __cplusplus >= 201703L
|
218
|
+
inline Span<const uint8_t> StringAsBytes(std::string_view s) {
|
219
|
+
return MakeConstSpan(reinterpret_cast<const uint8_t *>(s.data()), s.size());
|
220
|
+
}
|
221
|
+
|
222
|
+
inline std::string_view BytesAsStringView(bssl::Span<const uint8_t> b) {
|
223
|
+
return std::string_view(reinterpret_cast<const char *>(b.data()), b.size());
|
224
|
+
}
|
225
|
+
#endif
|
226
|
+
|
213
227
|
BSSL_NAMESPACE_END
|
214
228
|
|
215
229
|
} // extern C++
|
@@ -1154,11 +1154,23 @@ OPENSSL_EXPORT int SSL_set_chain_and_key(
|
|
1154
1154
|
// the return value is undefined and, even if not NULL, the stack itself may
|
1155
1155
|
// contain nullptrs. Thus you shouldn't mix this function with
|
1156
1156
|
// non-|CRYPTO_BUFFER| functions for manipulating the chain.)
|
1157
|
+
OPENSSL_EXPORT const STACK_OF(CRYPTO_BUFFER) *SSL_CTX_get0_chain(
|
1158
|
+
const SSL_CTX *ctx);
|
1159
|
+
|
1160
|
+
// SSL_get0_chain returns the list of |CRYPTO_BUFFER|s that were set by
|
1161
|
+
// |SSL_set_chain_and_key|, unless they have been discarded. Reference counts
|
1162
|
+
// are not incremented by this call. The return value may be |NULL| if no chain
|
1163
|
+
// has been set.
|
1164
|
+
//
|
1165
|
+
// (Note: if a chain was configured by non-|CRYPTO_BUFFER|-based functions then
|
1166
|
+
// the return value is undefined and, even if not NULL, the stack itself may
|
1167
|
+
// contain nullptrs. Thus you shouldn't mix this function with
|
1168
|
+
// non-|CRYPTO_BUFFER| functions for manipulating the chain.)
|
1157
1169
|
//
|
1158
|
-
//
|
1159
|
-
//
|
1160
|
-
|
1161
|
-
|
1170
|
+
// This function may return nullptr if a handshake has completed even if
|
1171
|
+
// |SSL_set_chain_and_key| was previously called, since the configuration
|
1172
|
+
// containing the certificates is typically cleared after handshake completion.
|
1173
|
+
OPENSSL_EXPORT const STACK_OF(CRYPTO_BUFFER) *SSL_get0_chain(const SSL *ssl);
|
1162
1174
|
|
1163
1175
|
// SSL_CTX_use_RSAPrivateKey sets |ctx|'s private key to |rsa|. It returns one
|
1164
1176
|
// on success and zero on failure.
|
@@ -655,14 +655,14 @@ OPENSSL_EXPORT const uint8_t *X509_keyid_get0(const X509 *x509, int *out_len);
|
|
655
655
|
|
656
656
|
// X509_add1_trust_object configures |x509| as a valid trust anchor for |obj|.
|
657
657
|
// It returns one on success and zero on error. |obj| should be a certificate
|
658
|
-
// usage OID associated with an |
|
658
|
+
// usage OID associated with an |X509_TRUST_*| constant.
|
659
659
|
//
|
660
660
|
// See |X509_VERIFY_PARAM_set_trust| for details on how this value is evaluated.
|
661
661
|
OPENSSL_EXPORT int X509_add1_trust_object(X509 *x509, const ASN1_OBJECT *obj);
|
662
662
|
|
663
663
|
// X509_add1_reject_object configures |x509| as distrusted for |obj|. It returns
|
664
664
|
// one on success and zero on error. |obj| should be a certificate usage OID
|
665
|
-
// associated with an |
|
665
|
+
// associated with an |X509_TRUST_*| constant.
|
666
666
|
//
|
667
667
|
// See |X509_VERIFY_PARAM_set_trust| for details on how this value is evaluated.
|
668
668
|
OPENSSL_EXPORT int X509_add1_reject_object(X509 *x509, const ASN1_OBJECT *obj);
|
@@ -2215,6 +2215,9 @@ OPENSSL_EXPORT ASN1_TYPE *X509_ATTRIBUTE_get0_type(X509_ATTRIBUTE *attr,
|
|
2215
2215
|
// functions which take a non-const pointer may not. Callers that wish to modify
|
2216
2216
|
// verification parameters in a shared |X509_STORE| should instead modify
|
2217
2217
|
// |X509_STORE_CTX|s individually.
|
2218
|
+
//
|
2219
|
+
// Objects in an |X509_STORE| are represented as an |X509_OBJECT|. Some
|
2220
|
+
// functions in this library return values with this type.
|
2218
2221
|
|
2219
2222
|
// X509_STORE_new returns a newly-allocated |X509_STORE|, or NULL on error.
|
2220
2223
|
OPENSSL_EXPORT X509_STORE *X509_STORE_new(void);
|
@@ -2303,6 +2306,41 @@ OPENSSL_EXPORT int X509_STORE_set_purpose(X509_STORE *store, int purpose);
|
|
2303
2306
|
// |X509_VERIFY_PARAM_set_trust| for details.
|
2304
2307
|
OPENSSL_EXPORT int X509_STORE_set_trust(X509_STORE *store, int trust);
|
2305
2308
|
|
2309
|
+
// The following constants indicate the type of an |X509_OBJECT|.
|
2310
|
+
#define X509_LU_NONE 0
|
2311
|
+
#define X509_LU_X509 1
|
2312
|
+
#define X509_LU_CRL 2
|
2313
|
+
#define X509_LU_PKEY 3
|
2314
|
+
|
2315
|
+
DEFINE_STACK_OF(X509_OBJECT)
|
2316
|
+
|
2317
|
+
// X509_OBJECT_new returns a newly-allocated, empty |X509_OBJECT| or NULL on
|
2318
|
+
// error.
|
2319
|
+
OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_new(void);
|
2320
|
+
|
2321
|
+
// X509_OBJECT_free releases memory associated with |obj|.
|
2322
|
+
OPENSSL_EXPORT void X509_OBJECT_free(X509_OBJECT *obj);
|
2323
|
+
|
2324
|
+
// X509_OBJECT_get_type returns the type of |obj|, which will be one of the
|
2325
|
+
// |X509_LU_*| constants.
|
2326
|
+
OPENSSL_EXPORT int X509_OBJECT_get_type(const X509_OBJECT *obj);
|
2327
|
+
|
2328
|
+
// X509_OBJECT_get0_X509 returns |obj| as a certificate, or NULL if |obj| is not
|
2329
|
+
// a certificate.
|
2330
|
+
OPENSSL_EXPORT X509 *X509_OBJECT_get0_X509(const X509_OBJECT *obj);
|
2331
|
+
|
2332
|
+
// X509_STORE_get1_objects returns a newly-allocated stack containing the
|
2333
|
+
// contents of |store|, or NULL on error. The caller must release the result
|
2334
|
+
// with |sk_X509_OBJECT_pop_free| and |X509_OBJECT_free| when done.
|
2335
|
+
//
|
2336
|
+
// The result will include all certificates and CRLs added via
|
2337
|
+
// |X509_STORE_add_cert| and |X509_STORE_add_crl|, as well as any cached objects
|
2338
|
+
// added by |X509_LOOKUP_hash_dir|. The last of these may change over time, as
|
2339
|
+
// different objects are loaded from the filesystem. Callers should not depend
|
2340
|
+
// on this caching behavior. The objects are returned in no particular order.
|
2341
|
+
OPENSSL_EXPORT STACK_OF(X509_OBJECT) *X509_STORE_get1_objects(
|
2342
|
+
X509_STORE *store);
|
2343
|
+
|
2306
2344
|
|
2307
2345
|
// Certificate verification.
|
2308
2346
|
//
|
@@ -2609,6 +2647,70 @@ OPENSSL_EXPORT int X509_VERIFY_PARAM_inherit(X509_VERIFY_PARAM *to,
|
|
2609
2647
|
OPENSSL_EXPORT int X509_VERIFY_PARAM_set1(X509_VERIFY_PARAM *to,
|
2610
2648
|
const X509_VERIFY_PARAM *from);
|
2611
2649
|
|
2650
|
+
// X509_V_FLAG_* are flags for |X509_VERIFY_PARAM_set_flags| and
|
2651
|
+
// |X509_VERIFY_PARAM_clear_flags|.
|
2652
|
+
|
2653
|
+
// X509_V_FLAG_CB_ISSUER_CHECK causes the deprecated verify callback (see
|
2654
|
+
// |X509_STORE_CTX_set_verify_cb|) to be called for errors while matching
|
2655
|
+
// subject and issuer certificates.
|
2656
|
+
#define X509_V_FLAG_CB_ISSUER_CHECK 0x1
|
2657
|
+
// X509_V_FLAG_USE_CHECK_TIME is an internal flag used to track whether
|
2658
|
+
// |X509_STORE_CTX_set_time| has been used. If cleared, the system time is
|
2659
|
+
// restored.
|
2660
|
+
#define X509_V_FLAG_USE_CHECK_TIME 0x2
|
2661
|
+
// X509_V_FLAG_CRL_CHECK enables CRL lookup and checking for the leaf.
|
2662
|
+
#define X509_V_FLAG_CRL_CHECK 0x4
|
2663
|
+
// X509_V_FLAG_CRL_CHECK_ALL enables CRL lookup and checking for the entire
|
2664
|
+
// certificate chain. |X509_V_FLAG_CRL_CHECK| must be set for this flag to take
|
2665
|
+
// effect.
|
2666
|
+
#define X509_V_FLAG_CRL_CHECK_ALL 0x8
|
2667
|
+
// X509_V_FLAG_IGNORE_CRITICAL ignores unhandled critical extensions. Do not use
|
2668
|
+
// this option. Critical extensions ensure the verifier does not bypass
|
2669
|
+
// unrecognized security restrictions in certificates.
|
2670
|
+
#define X509_V_FLAG_IGNORE_CRITICAL 0x10
|
2671
|
+
// X509_V_FLAG_X509_STRICT does nothing. Its functionality has been enabled by
|
2672
|
+
// default.
|
2673
|
+
#define X509_V_FLAG_X509_STRICT 0x00
|
2674
|
+
// X509_V_FLAG_ALLOW_PROXY_CERTS does nothing. Proxy certificate support has
|
2675
|
+
// been removed.
|
2676
|
+
#define X509_V_FLAG_ALLOW_PROXY_CERTS 0x40
|
2677
|
+
// X509_V_FLAG_POLICY_CHECK does nothing. Policy checking is always enabled.
|
2678
|
+
#define X509_V_FLAG_POLICY_CHECK 0x80
|
2679
|
+
// X509_V_FLAG_EXPLICIT_POLICY requires some policy OID to be asserted by the
|
2680
|
+
// final certificate chain. See initial-explicit-policy from RFC 5280,
|
2681
|
+
// section 6.1.1.
|
2682
|
+
#define X509_V_FLAG_EXPLICIT_POLICY 0x100
|
2683
|
+
// X509_V_FLAG_INHIBIT_ANY inhibits the anyPolicy OID. See
|
2684
|
+
// initial-any-policy-inhibit from RFC 5280, section 6.1.1.
|
2685
|
+
#define X509_V_FLAG_INHIBIT_ANY 0x200
|
2686
|
+
// X509_V_FLAG_INHIBIT_MAP inhibits policy mapping. See
|
2687
|
+
// initial-policy-mapping-inhibit from RFC 5280, section 6.1.1.
|
2688
|
+
#define X509_V_FLAG_INHIBIT_MAP 0x400
|
2689
|
+
// X509_V_FLAG_NOTIFY_POLICY does nothing. Its functionality has been removed.
|
2690
|
+
#define X509_V_FLAG_NOTIFY_POLICY 0x800
|
2691
|
+
// X509_V_FLAG_EXTENDED_CRL_SUPPORT causes all verifications to fail. Extended
|
2692
|
+
// CRL features have been removed.
|
2693
|
+
#define X509_V_FLAG_EXTENDED_CRL_SUPPORT 0x1000
|
2694
|
+
// X509_V_FLAG_USE_DELTAS causes all verifications to fail. Delta CRL support
|
2695
|
+
// has been removed.
|
2696
|
+
#define X509_V_FLAG_USE_DELTAS 0x2000
|
2697
|
+
// X509_V_FLAG_CHECK_SS_SIGNATURE checks the redundant signature on self-signed
|
2698
|
+
// trust anchors. This check provides no security benefit and only wastes CPU.
|
2699
|
+
#define X509_V_FLAG_CHECK_SS_SIGNATURE 0x4000
|
2700
|
+
// X509_V_FLAG_TRUSTED_FIRST, during path-building, checks for a match in the
|
2701
|
+
// trust store before considering an untrusted intermediate. This flag is
|
2702
|
+
// enabled by default.
|
2703
|
+
#define X509_V_FLAG_TRUSTED_FIRST 0x8000
|
2704
|
+
// X509_V_FLAG_PARTIAL_CHAIN treats all trusted certificates as trust anchors,
|
2705
|
+
// independent of the |X509_VERIFY_PARAM_set_trust| setting.
|
2706
|
+
#define X509_V_FLAG_PARTIAL_CHAIN 0x80000
|
2707
|
+
// X509_V_FLAG_NO_ALT_CHAINS disables building alternative chains if the initial
|
2708
|
+
// one was rejected.
|
2709
|
+
#define X509_V_FLAG_NO_ALT_CHAINS 0x100000
|
2710
|
+
// X509_V_FLAG_NO_CHECK_TIME disables all time checks in certificate
|
2711
|
+
// verification.
|
2712
|
+
#define X509_V_FLAG_NO_CHECK_TIME 0x200000
|
2713
|
+
|
2612
2714
|
// X509_VERIFY_PARAM_set_flags enables all values in |flags| in |param|'s
|
2613
2715
|
// verification flags and returns one. |flags| should be a combination of
|
2614
2716
|
// |X509_V_FLAG_*| constants.
|
@@ -2830,6 +2932,10 @@ OPENSSL_EXPORT int X509_VERIFY_PARAM_set_purpose(X509_VERIFY_PARAM *param,
|
|
2830
2932
|
// it is trusted if self-signed instead. Note this slightly differs from the
|
2831
2933
|
// above.
|
2832
2934
|
//
|
2935
|
+
// If the |X509_V_FLAG_PARTIAL_CHAIN| is set, every certificate from
|
2936
|
+
// |X509_STORE| is a trust anchor, unless it was explicitly distrusted for the
|
2937
|
+
// OID.
|
2938
|
+
//
|
2833
2939
|
// It is currently not possible to configure custom trust OIDs. Contact the
|
2834
2940
|
// BoringSSL maintainers if your application needs to do so. OpenSSL had an
|
2835
2941
|
// |X509_TRUST_add| API, but it was not thread-safe and relied on global mutable
|
@@ -3187,42 +3293,42 @@ OPENSSL_EXPORT int X509_REQ_print_fp(FILE *fp, X509_REQ *req);
|
|
3187
3293
|
|
3188
3294
|
// XN_FLAG_COMPAT prints with |X509_NAME_print|'s format and return value
|
3189
3295
|
// convention.
|
3190
|
-
#define XN_FLAG_COMPAT
|
3296
|
+
#define XN_FLAG_COMPAT 0ul
|
3191
3297
|
|
3192
3298
|
// XN_FLAG_SEP_MASK determines the separators to use between attributes.
|
3193
|
-
#define XN_FLAG_SEP_MASK (
|
3299
|
+
#define XN_FLAG_SEP_MASK (0xful << 16)
|
3194
3300
|
|
3195
3301
|
// XN_FLAG_SEP_COMMA_PLUS separates RDNs with "," and attributes within an RDN
|
3196
3302
|
// with "+", as in RFC 2253.
|
3197
|
-
#define XN_FLAG_SEP_COMMA_PLUS (
|
3303
|
+
#define XN_FLAG_SEP_COMMA_PLUS (1ul << 16)
|
3198
3304
|
|
3199
3305
|
// XN_FLAG_SEP_CPLUS_SPC behaves like |XN_FLAG_SEP_COMMA_PLUS| but adds spaces
|
3200
3306
|
// between the separators.
|
3201
|
-
#define XN_FLAG_SEP_CPLUS_SPC (
|
3307
|
+
#define XN_FLAG_SEP_CPLUS_SPC (2ul << 16)
|
3202
3308
|
|
3203
3309
|
// XN_FLAG_SEP_SPLUS_SPC separates RDNs with "; " and attributes within an RDN
|
3204
3310
|
// with " + ".
|
3205
|
-
#define XN_FLAG_SEP_SPLUS_SPC (
|
3311
|
+
#define XN_FLAG_SEP_SPLUS_SPC (3ul << 16)
|
3206
3312
|
|
3207
3313
|
// XN_FLAG_SEP_MULTILINE prints each attribute on one line.
|
3208
|
-
#define XN_FLAG_SEP_MULTILINE (
|
3314
|
+
#define XN_FLAG_SEP_MULTILINE (4ul << 16)
|
3209
3315
|
|
3210
3316
|
// XN_FLAG_DN_REV prints RDNs in reverse, from least significant to most
|
3211
3317
|
// significant, as RFC 2253.
|
3212
|
-
#define XN_FLAG_DN_REV (
|
3318
|
+
#define XN_FLAG_DN_REV (1ul << 20)
|
3213
3319
|
|
3214
3320
|
// XN_FLAG_FN_MASK determines how attribute types are displayed.
|
3215
|
-
#define XN_FLAG_FN_MASK (
|
3321
|
+
#define XN_FLAG_FN_MASK (0x3ul << 21)
|
3216
3322
|
|
3217
3323
|
// XN_FLAG_FN_SN uses the attribute type's short name, when available.
|
3218
|
-
#define XN_FLAG_FN_SN
|
3324
|
+
#define XN_FLAG_FN_SN 0ul
|
3219
3325
|
|
3220
3326
|
// XN_FLAG_SPC_EQ wraps the "=" operator with spaces when printing attributes.
|
3221
|
-
#define XN_FLAG_SPC_EQ (
|
3327
|
+
#define XN_FLAG_SPC_EQ (1ul << 23)
|
3222
3328
|
|
3223
3329
|
// XN_FLAG_DUMP_UNKNOWN_FIELDS causes unknown attribute types to be printed in
|
3224
3330
|
// hex, as in RFC 2253.
|
3225
|
-
#define XN_FLAG_DUMP_UNKNOWN_FIELDS (
|
3331
|
+
#define XN_FLAG_DUMP_UNKNOWN_FIELDS (1ul << 24)
|
3226
3332
|
|
3227
3333
|
// XN_FLAG_RFC2253 prints like RFC 2253.
|
3228
3334
|
#define XN_FLAG_RFC2253 \
|
@@ -3787,6 +3893,43 @@ OPENSSL_EXPORT int X509_check_purpose(X509 *x509, int purpose, int ca);
|
|
3787
3893
|
// |flags| should be zero and is ignored.
|
3788
3894
|
OPENSSL_EXPORT int X509_check_trust(X509 *x509, int id, int flags);
|
3789
3895
|
|
3896
|
+
// X509_STORE_CTX_get1_certs returns a newly-allocated stack containing all
|
3897
|
+
// trusted certificates in |ctx|'s |X509_STORE| whose subject matches |name|, or
|
3898
|
+
// NULL on error. The caller must release the result with |sk_X509_pop_free| and
|
3899
|
+
// |X509_free| when done.
|
3900
|
+
//
|
3901
|
+
// TODO(crbug.com/boringssl/407): |name| should be const.
|
3902
|
+
OPENSSL_EXPORT STACK_OF(X509) *X509_STORE_CTX_get1_certs(X509_STORE_CTX *ctx,
|
3903
|
+
X509_NAME *name);
|
3904
|
+
|
3905
|
+
// X509_STORE_CTX_get1_crls returns a newly-allocated stack containing all
|
3906
|
+
// CRLs in |ctx|'s |X509_STORE| whose subject matches |name|, or NULL on error.
|
3907
|
+
// The caller must release the result with |sk_X509_CRL_pop_free| and
|
3908
|
+
// |X509_CRL_free| when done.
|
3909
|
+
//
|
3910
|
+
// TODO(crbug.com/boringssl/407): |name| should be const.
|
3911
|
+
OPENSSL_EXPORT STACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *ctx,
|
3912
|
+
X509_NAME *name);
|
3913
|
+
|
3914
|
+
// X509_STORE_CTX_get_by_subject looks up an object of type |type| in |ctx|'s
|
3915
|
+
// |X509_STORE| that matches |name|. |type| should be one of the |X509_LU_*|
|
3916
|
+
// constants to indicate the type of object. If a match was found, it stores the
|
3917
|
+
// result in |ret| and returns one. Otherwise, it returns zero. If multiple
|
3918
|
+
// objects match, this function outputs an arbitray one.
|
3919
|
+
//
|
3920
|
+
// WARNING: |ret| must be in the empty state, as returned by |X509_OBJECT_new|.
|
3921
|
+
// Otherwise, the object currently in |ret| will be leaked when overwritten.
|
3922
|
+
// https://crbug.com/boringssl/685 tracks fixing this.
|
3923
|
+
//
|
3924
|
+
// WARNING: Multiple trusted certificates or CRLs may share a name. In this
|
3925
|
+
// case, this function returns an arbitrary match. Use
|
3926
|
+
// |X509_STORE_CTX_get1_certs| or |X509_STORE_CTX_get1_crls| instead.
|
3927
|
+
//
|
3928
|
+
// TODO(crbug.com/boringssl/407): |name| should be const.
|
3929
|
+
OPENSSL_EXPORT int X509_STORE_CTX_get_by_subject(X509_STORE_CTX *ctx, int type,
|
3930
|
+
X509_NAME *name,
|
3931
|
+
X509_OBJECT *ret);
|
3932
|
+
|
3790
3933
|
|
3791
3934
|
// X.509 information.
|
3792
3935
|
//
|
@@ -4224,6 +4367,45 @@ OPENSSL_EXPORT void X509_STORE_CTX_set_chain(X509_STORE_CTX *ctx,
|
|
4224
4367
|
// always enabled.
|
4225
4368
|
#define X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS 0
|
4226
4369
|
|
4370
|
+
// X509_STORE_get0_objects returns a non-owning pointer of |store|'s internal
|
4371
|
+
// object list. Although this function is not const, callers must not modify
|
4372
|
+
// the result of this function.
|
4373
|
+
//
|
4374
|
+
// WARNING: This function is not thread-safe. If |store| is shared across
|
4375
|
+
// multiple threads, callers cannot safely inspect the result of this function,
|
4376
|
+
// because another thread may have concurrently added to it. In particular,
|
4377
|
+
// |X509_LOOKUP_hash_dir| treats this list as a cache and may add to it in the
|
4378
|
+
// course of certificate verification. This API additionally prevents fixing
|
4379
|
+
// some quadratic worst-case behavior in |X509_STORE| and may be removed in the
|
4380
|
+
// future. Use |X509_STORE_get1_objects| instead.
|
4381
|
+
OPENSSL_EXPORT STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(
|
4382
|
+
X509_STORE *store);
|
4383
|
+
|
4384
|
+
// X509_PURPOSE_get_by_sname returns the |X509_PURPOSE_*| constant corresponding
|
4385
|
+
// a short name |sname|, or -1 if |sname| was not recognized.
|
4386
|
+
//
|
4387
|
+
// Use |X509_PURPOSE_*| constants directly instead. The short names used by this
|
4388
|
+
// function look like "sslserver" or "smimeencrypt", so they do not make
|
4389
|
+
// especially good APIs.
|
4390
|
+
//
|
4391
|
+
// This function differs from OpenSSL, which returns an "index" to be passed to
|
4392
|
+
// |X509_PURPOSE_get0|, followed by |X509_PURPOSE_get_id|, to finally obtain an
|
4393
|
+
// |X509_PURPOSE_*| value suitable for use with |X509_VERIFY_PARAM_set_purpose|.
|
4394
|
+
OPENSSL_EXPORT int X509_PURPOSE_get_by_sname(const char *sname);
|
4395
|
+
|
4396
|
+
// X509_PURPOSE_get0 returns the |X509_PURPOSE| object corresponding to |id|,
|
4397
|
+
// which should be one of the |X509_PURPOSE_*| constants, or NULL if none
|
4398
|
+
// exists.
|
4399
|
+
//
|
4400
|
+
// This function differs from OpenSSL, which takes an "index", returned from
|
4401
|
+
// |X509_PURPOSE_get_by_sname|. In BoringSSL, indices and |X509_PURPOSE_*| IDs
|
4402
|
+
// are the same.
|
4403
|
+
OPENSSL_EXPORT const X509_PURPOSE *X509_PURPOSE_get0(int id);
|
4404
|
+
|
4405
|
+
// X509_PURPOSE_get_id returns |purpose|'s ID. This will be one of the
|
4406
|
+
// |X509_PURPOSE_*| constants.
|
4407
|
+
OPENSSL_EXPORT int X509_PURPOSE_get_id(const X509_PURPOSE *purpose);
|
4408
|
+
|
4227
4409
|
|
4228
4410
|
// Private structures.
|
4229
4411
|
|
@@ -4242,23 +4424,6 @@ struct X509_algor_st {
|
|
4242
4424
|
|
4243
4425
|
DECLARE_STACK_OF(DIST_POINT)
|
4244
4426
|
|
4245
|
-
// This is used for a table of trust checking functions
|
4246
|
-
|
4247
|
-
struct x509_trust_st {
|
4248
|
-
int trust;
|
4249
|
-
int flags;
|
4250
|
-
int (*check_trust)(const X509_TRUST *, X509 *, int);
|
4251
|
-
char *name;
|
4252
|
-
int arg1;
|
4253
|
-
void *arg2;
|
4254
|
-
} /* X509_TRUST */;
|
4255
|
-
|
4256
|
-
DEFINE_STACK_OF(X509_TRUST)
|
4257
|
-
|
4258
|
-
// standard trust ids
|
4259
|
-
|
4260
|
-
#define X509_TRUST_DEFAULT (-1) // Only valid in purpose settings
|
4261
|
-
|
4262
4427
|
OPENSSL_EXPORT const char *X509_get_default_cert_area(void);
|
4263
4428
|
OPENSSL_EXPORT const char *X509_get_default_cert_dir(void);
|
4264
4429
|
OPENSSL_EXPORT const char *X509_get_default_cert_file(void);
|
@@ -4267,8 +4432,6 @@ OPENSSL_EXPORT const char *X509_get_default_cert_file_env(void);
|
|
4267
4432
|
OPENSSL_EXPORT const char *X509_get_default_private_dir(void);
|
4268
4433
|
|
4269
4434
|
|
4270
|
-
OPENSSL_EXPORT int X509_TRUST_set(int *t, int trust);
|
4271
|
-
|
4272
4435
|
OPENSSL_EXPORT int X509_cmp(const X509 *a, const X509 *b);
|
4273
4436
|
|
4274
4437
|
// X509_NAME_hash returns a hash of |name|, or zero on error. This is the new
|
@@ -4299,13 +4462,6 @@ OPENSSL_EXPORT uint32_t X509_NAME_hash_old(X509_NAME *name);
|
|
4299
4462
|
|
4300
4463
|
OPENSSL_EXPORT int X509_CRL_match(const X509_CRL *a, const X509_CRL *b);
|
4301
4464
|
|
4302
|
-
OPENSSL_EXPORT int X509_TRUST_get_count(void);
|
4303
|
-
OPENSSL_EXPORT const X509_TRUST *X509_TRUST_get0(int idx);
|
4304
|
-
OPENSSL_EXPORT int X509_TRUST_get_by_id(int id);
|
4305
|
-
OPENSSL_EXPORT int X509_TRUST_get_flags(const X509_TRUST *xp);
|
4306
|
-
OPENSSL_EXPORT char *X509_TRUST_get0_name(const X509_TRUST *xp);
|
4307
|
-
OPENSSL_EXPORT int X509_TRUST_get_trust(const X509_TRUST *xp);
|
4308
|
-
|
4309
4465
|
|
4310
4466
|
/*
|
4311
4467
|
SSL_CTX -> X509_STORE
|
@@ -4324,13 +4480,6 @@ The X509_STORE then calls a function to actually verify the
|
|
4324
4480
|
certificate chain.
|
4325
4481
|
*/
|
4326
4482
|
|
4327
|
-
#define X509_LU_NONE 0
|
4328
|
-
#define X509_LU_X509 1
|
4329
|
-
#define X509_LU_CRL 2
|
4330
|
-
#define X509_LU_PKEY 3
|
4331
|
-
|
4332
|
-
DEFINE_STACK_OF(X509_OBJECT)
|
4333
|
-
|
4334
4483
|
#define X509_STORE_CTX_set_app_data(ctx, data) \
|
4335
4484
|
X509_STORE_CTX_set_ex_data(ctx, 0, data)
|
4336
4485
|
#define X509_STORE_CTX_get_app_data(ctx) X509_STORE_CTX_get_ex_data(ctx, 0)
|
@@ -4360,84 +4509,12 @@ OPENSSL_EXPORT int X509_LOOKUP_load_file(X509_LOOKUP *lookup, const char *path,
|
|
4360
4509
|
OPENSSL_EXPORT int X509_LOOKUP_add_dir(X509_LOOKUP *lookup, const char *path,
|
4361
4510
|
int type);
|
4362
4511
|
|
4363
|
-
// Certificate verify flags
|
4364
|
-
|
4365
|
-
// Send issuer+subject checks to verify_cb
|
4366
|
-
#define X509_V_FLAG_CB_ISSUER_CHECK 0x1
|
4367
|
-
// Use check time instead of current time
|
4368
|
-
#define X509_V_FLAG_USE_CHECK_TIME 0x2
|
4369
|
-
// Lookup CRLs
|
4370
|
-
#define X509_V_FLAG_CRL_CHECK 0x4
|
4371
|
-
// Lookup CRLs for whole chain
|
4372
|
-
#define X509_V_FLAG_CRL_CHECK_ALL 0x8
|
4373
|
-
// Ignore unhandled critical extensions
|
4374
|
-
#define X509_V_FLAG_IGNORE_CRITICAL 0x10
|
4375
|
-
// Does nothing as its functionality has been enabled by default.
|
4376
|
-
#define X509_V_FLAG_X509_STRICT 0x00
|
4377
|
-
// This flag does nothing as proxy certificate support has been removed.
|
4378
|
-
#define X509_V_FLAG_ALLOW_PROXY_CERTS 0x40
|
4379
|
-
// Does nothing as its functionality has been enabled by default.
|
4380
|
-
#define X509_V_FLAG_POLICY_CHECK 0x80
|
4381
|
-
// Policy variable require-explicit-policy
|
4382
|
-
#define X509_V_FLAG_EXPLICIT_POLICY 0x100
|
4383
|
-
// Policy variable inhibit-any-policy
|
4384
|
-
#define X509_V_FLAG_INHIBIT_ANY 0x200
|
4385
|
-
// Policy variable inhibit-policy-mapping
|
4386
|
-
#define X509_V_FLAG_INHIBIT_MAP 0x400
|
4387
|
-
// Does nothing
|
4388
|
-
#define X509_V_FLAG_NOTIFY_POLICY 0x800
|
4389
|
-
// Causes all verifications to fail. Extended CRL features have been removed.
|
4390
|
-
#define X509_V_FLAG_EXTENDED_CRL_SUPPORT 0x1000
|
4391
|
-
// Causes all verifications to fail. Delta CRL support has been removed.
|
4392
|
-
#define X509_V_FLAG_USE_DELTAS 0x2000
|
4393
|
-
// Check selfsigned CA signature
|
4394
|
-
#define X509_V_FLAG_CHECK_SS_SIGNATURE 0x4000
|
4395
|
-
// Use trusted store first
|
4396
|
-
#define X509_V_FLAG_TRUSTED_FIRST 0x8000
|
4397
|
-
|
4398
|
-
// Allow partial chains if at least one certificate is in trusted store
|
4399
|
-
#define X509_V_FLAG_PARTIAL_CHAIN 0x80000
|
4400
|
-
|
4401
|
-
// If the initial chain is not trusted, do not attempt to build an alternative
|
4402
|
-
// chain. Alternate chain checking was introduced in 1.0.2b. Setting this flag
|
4403
|
-
// will force the behaviour to match that of previous versions.
|
4404
|
-
#define X509_V_FLAG_NO_ALT_CHAINS 0x100000
|
4405
|
-
|
4406
|
-
// X509_V_FLAG_NO_CHECK_TIME disables all time checks in certificate
|
4407
|
-
// verification.
|
4408
|
-
#define X509_V_FLAG_NO_CHECK_TIME 0x200000
|
4409
|
-
|
4410
|
-
// X509_OBJECT_new returns a newly-allocated, empty |X509_OBJECT| or NULL on
|
4411
|
-
// error.
|
4412
|
-
OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_new(void);
|
4413
|
-
|
4414
|
-
// X509_OBJECT_free releases memory associated with |obj|.
|
4415
|
-
OPENSSL_EXPORT void X509_OBJECT_free(X509_OBJECT *obj);
|
4416
|
-
|
4417
|
-
// X509_OBJECT_get_type returns the type of |obj|, which will be one of the
|
4418
|
-
// |X509_LU_*| constants.
|
4419
|
-
OPENSSL_EXPORT int X509_OBJECT_get_type(const X509_OBJECT *obj);
|
4420
|
-
|
4421
|
-
// X509_OBJECT_get0_X509 returns |obj| as a certificate, or NULL if |obj| is not
|
4422
|
-
// a certificate.
|
4423
|
-
OPENSSL_EXPORT X509 *X509_OBJECT_get0_X509(const X509_OBJECT *obj);
|
4424
|
-
|
4425
|
-
OPENSSL_EXPORT STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *st);
|
4426
|
-
OPENSSL_EXPORT STACK_OF(X509) *X509_STORE_CTX_get1_certs(X509_STORE_CTX *st,
|
4427
|
-
X509_NAME *nm);
|
4428
|
-
OPENSSL_EXPORT STACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *st,
|
4429
|
-
X509_NAME *nm);
|
4430
|
-
|
4431
4512
|
OPENSSL_EXPORT X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v,
|
4432
4513
|
const X509_LOOKUP_METHOD *m);
|
4433
4514
|
|
4434
4515
|
OPENSSL_EXPORT const X509_LOOKUP_METHOD *X509_LOOKUP_hash_dir(void);
|
4435
4516
|
OPENSSL_EXPORT const X509_LOOKUP_METHOD *X509_LOOKUP_file(void);
|
4436
4517
|
|
4437
|
-
OPENSSL_EXPORT int X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, int type,
|
4438
|
-
X509_NAME *name,
|
4439
|
-
X509_OBJECT *ret);
|
4440
|
-
|
4441
4518
|
OPENSSL_EXPORT int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,
|
4442
4519
|
long argl, char **ret);
|
4443
4520
|
|
@@ -4629,18 +4706,6 @@ struct ISSUING_DIST_POINT_st {
|
|
4629
4706
|
#define NS_OBJSIGN_CA 0x01
|
4630
4707
|
#define NS_ANY_CA (NS_SSL_CA | NS_SMIME_CA | NS_OBJSIGN_CA)
|
4631
4708
|
|
4632
|
-
typedef struct x509_purpose_st {
|
4633
|
-
int purpose;
|
4634
|
-
int trust; // Default trust ID
|
4635
|
-
int flags;
|
4636
|
-
int (*check_purpose)(const struct x509_purpose_st *, const X509 *, int);
|
4637
|
-
char *name;
|
4638
|
-
char *sname;
|
4639
|
-
void *usr_data;
|
4640
|
-
} X509_PURPOSE;
|
4641
|
-
|
4642
|
-
DEFINE_STACK_OF(X509_PURPOSE)
|
4643
|
-
|
4644
4709
|
DECLARE_ASN1_FUNCTIONS_const(BASIC_CONSTRAINTS)
|
4645
4710
|
|
4646
4711
|
// TODO(https://crbug.com/boringssl/407): This is not const because it contains
|
@@ -4840,17 +4905,6 @@ OPENSSL_EXPORT X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit,
|
|
4840
4905
|
OPENSSL_EXPORT int X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid,
|
4841
4906
|
void *value, int crit, unsigned long flags);
|
4842
4907
|
|
4843
|
-
OPENSSL_EXPORT int X509_PURPOSE_set(int *p, int purpose);
|
4844
|
-
|
4845
|
-
OPENSSL_EXPORT int X509_PURPOSE_get_count(void);
|
4846
|
-
OPENSSL_EXPORT const X509_PURPOSE *X509_PURPOSE_get0(int idx);
|
4847
|
-
OPENSSL_EXPORT int X509_PURPOSE_get_by_sname(const char *sname);
|
4848
|
-
OPENSSL_EXPORT int X509_PURPOSE_get_by_id(int id);
|
4849
|
-
OPENSSL_EXPORT char *X509_PURPOSE_get0_name(const X509_PURPOSE *xp);
|
4850
|
-
OPENSSL_EXPORT char *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp);
|
4851
|
-
OPENSSL_EXPORT int X509_PURPOSE_get_trust(const X509_PURPOSE *xp);
|
4852
|
-
OPENSSL_EXPORT int X509_PURPOSE_get_id(const X509_PURPOSE *);
|
4853
|
-
|
4854
4908
|
|
4855
4909
|
#if defined(__cplusplus)
|
4856
4910
|
} // extern C
|
@@ -4885,6 +4939,7 @@ BORINGSSL_MAKE_DELETER(X509_INFO, X509_INFO_free)
|
|
4885
4939
|
BORINGSSL_MAKE_DELETER(X509_LOOKUP, X509_LOOKUP_free)
|
4886
4940
|
BORINGSSL_MAKE_DELETER(X509_NAME, X509_NAME_free)
|
4887
4941
|
BORINGSSL_MAKE_DELETER(X509_NAME_ENTRY, X509_NAME_ENTRY_free)
|
4942
|
+
BORINGSSL_MAKE_DELETER(X509_OBJECT, X509_OBJECT_free)
|
4888
4943
|
BORINGSSL_MAKE_DELETER(X509_PUBKEY, X509_PUBKEY_free)
|
4889
4944
|
BORINGSSL_MAKE_DELETER(X509_REQ, X509_REQ_free)
|
4890
4945
|
BORINGSSL_MAKE_DELETER(X509_REVOKED, X509_REVOKED_free)
|
@@ -887,10 +887,17 @@ int SSL_CTX_set_chain_and_key(SSL_CTX *ctx, CRYPTO_BUFFER *const *certs,
|
|
887
887
|
privkey_method);
|
888
888
|
}
|
889
889
|
|
890
|
-
const STACK_OF(CRYPTO_BUFFER)*
|
890
|
+
const STACK_OF(CRYPTO_BUFFER) *SSL_CTX_get0_chain(const SSL_CTX *ctx) {
|
891
891
|
return ctx->cert->chain.get();
|
892
892
|
}
|
893
893
|
|
894
|
+
const STACK_OF(CRYPTO_BUFFER) *SSL_get0_chain(const SSL *ssl) {
|
895
|
+
if (!ssl->config) {
|
896
|
+
return nullptr;
|
897
|
+
}
|
898
|
+
return ssl->config->cert->chain.get();
|
899
|
+
}
|
900
|
+
|
894
901
|
int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, size_t der_len,
|
895
902
|
const uint8_t *der) {
|
896
903
|
UniquePtr<CRYPTO_BUFFER> buffer(CRYPTO_BUFFER_new(der, der_len, NULL));
|