grpc 1.41.1 → 1.42.0.pre1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

Files changed (416) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +55 -43
  3. data/include/grpc/event_engine/event_engine.h +82 -42
  4. data/include/grpc/event_engine/internal/memory_allocator_impl.h +98 -0
  5. data/include/grpc/event_engine/memory_allocator.h +210 -0
  6. data/include/grpc/grpc.h +4 -0
  7. data/include/grpc/grpc_security.h +18 -0
  8. data/include/grpc/grpc_security_constants.h +1 -0
  9. data/include/grpc/impl/codegen/port_platform.h +7 -0
  10. data/src/core/ext/filters/client_channel/backend_metric.cc +18 -19
  11. data/src/core/ext/filters/client_channel/backup_poller.cc +2 -1
  12. data/src/core/ext/filters/client_channel/channel_connectivity.cc +71 -89
  13. data/src/core/ext/filters/client_channel/client_channel.cc +187 -252
  14. data/src/core/ext/filters/client_channel/client_channel.h +74 -27
  15. data/src/core/ext/filters/client_channel/client_channel_factory.cc +1 -1
  16. data/src/core/ext/filters/client_channel/client_channel_factory.h +17 -19
  17. data/src/core/ext/filters/client_channel/client_channel_plugin.cc +8 -14
  18. data/src/core/ext/filters/client_channel/config_selector.cc +1 -1
  19. data/src/core/ext/filters/client_channel/config_selector.h +4 -5
  20. data/src/core/ext/filters/client_channel/connector.h +18 -18
  21. data/src/core/ext/filters/client_channel/dynamic_filters.cc +1 -1
  22. data/src/core/ext/filters/client_channel/global_subchannel_pool.h +0 -1
  23. data/src/core/ext/filters/client_channel/health/health_check_client.cc +12 -11
  24. data/src/core/ext/filters/client_channel/http_connect_handshaker.h +1 -1
  25. data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +4 -0
  26. data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +6 -15
  27. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +166 -82
  28. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +4 -0
  29. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc +1 -1
  30. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +2 -4
  31. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +23 -7
  32. data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +15 -10
  33. data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +2 -3
  34. data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +2502 -0
  35. data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +6 -1
  36. data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +7 -1
  37. data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +6 -2
  38. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h +1 -1
  39. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +5 -0
  40. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +8 -1
  41. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +7 -16
  42. data/src/core/ext/filters/client_channel/lb_policy.h +11 -1
  43. data/src/core/ext/filters/client_channel/lb_policy_factory.h +1 -0
  44. data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +139 -0
  45. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +11 -5
  46. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +3 -3
  47. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +12 -39
  48. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +21 -1
  49. data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +6 -2
  50. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +3 -1
  51. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +77 -68
  52. data/src/core/ext/filters/client_channel/resolver.h +1 -1
  53. data/src/core/ext/filters/client_channel/resolver_factory.h +2 -0
  54. data/src/core/ext/filters/client_channel/resolver_registry.cc +6 -8
  55. data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +1 -1
  56. data/src/core/ext/filters/client_channel/resolver_result_parsing.h +1 -1
  57. data/src/core/ext/filters/client_channel/retry_filter.cc +48 -86
  58. data/src/core/ext/filters/client_channel/retry_service_config.h +1 -1
  59. data/src/core/ext/filters/client_channel/retry_throttle.cc +17 -48
  60. data/src/core/ext/filters/client_channel/server_address.h +1 -1
  61. data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +49 -36
  62. data/src/core/ext/filters/client_channel/subchannel.cc +85 -143
  63. data/src/core/ext/filters/client_channel/subchannel.h +29 -49
  64. data/src/core/ext/filters/client_channel/subchannel_pool_interface.cc +22 -7
  65. data/src/core/ext/filters/client_channel/subchannel_pool_interface.h +11 -2
  66. data/src/core/ext/filters/client_idle/client_idle_filter.cc +27 -210
  67. data/src/core/ext/filters/client_idle/idle_filter_state.cc +96 -0
  68. data/src/core/ext/filters/client_idle/idle_filter_state.h +66 -0
  69. data/src/core/ext/filters/deadline/deadline_filter.cc +23 -26
  70. data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +19 -19
  71. data/src/core/ext/filters/fault_injection/service_config_parser.cc +0 -1
  72. data/src/core/ext/filters/fault_injection/service_config_parser.h +1 -1
  73. data/src/core/ext/filters/http/client/http_client_filter.cc +41 -44
  74. data/src/core/ext/filters/http/client_authority_filter.cc +14 -15
  75. data/src/core/ext/filters/http/http_filters_plugin.cc +53 -71
  76. data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +17 -12
  77. data/src/core/ext/filters/http/message_compress/message_decompress_filter.cc +1 -1
  78. data/src/core/ext/filters/http/server/http_server_filter.cc +72 -69
  79. data/src/core/ext/filters/max_age/max_age_filter.cc +24 -26
  80. data/src/core/ext/filters/message_size/message_size_filter.cc +19 -16
  81. data/src/core/ext/filters/message_size/message_size_filter.h +1 -1
  82. data/src/core/ext/{filters/client_channel → service_config}/service_config.cc +2 -2
  83. data/src/core/ext/{filters/client_channel → service_config}/service_config.h +4 -4
  84. data/src/core/ext/service_config/service_config_call_data.h +72 -0
  85. data/src/core/ext/{filters/client_channel → service_config}/service_config_parser.cc +3 -3
  86. data/src/core/ext/{filters/client_channel → service_config}/service_config_parser.h +8 -6
  87. data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +2 -5
  88. data/src/core/ext/transport/chttp2/client/insecure/channel_create.cc +19 -24
  89. data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +27 -50
  90. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +14 -16
  91. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +59 -58
  92. data/src/core/ext/transport/chttp2/transport/flow_control.cc +19 -16
  93. data/src/core/ext/transport/chttp2/transport/flow_control.h +4 -4
  94. data/src/core/ext/transport/chttp2/transport/frame_data.cc +4 -4
  95. data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +2 -1
  96. data/src/core/ext/transport/chttp2/transport/frame_ping.cc +2 -1
  97. data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +2 -3
  98. data/src/core/ext/transport/chttp2/transport/frame_settings.cc +2 -2
  99. data/src/core/ext/transport/chttp2/transport/hpack_constants.h +1 -1
  100. data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +41 -1
  101. data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +8 -4
  102. data/src/core/ext/transport/chttp2/transport/hpack_encoder_index.h +1 -1
  103. data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +136 -98
  104. data/src/core/ext/transport/chttp2/transport/hpack_parser.h +27 -8
  105. data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +12 -25
  106. data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +37 -30
  107. data/src/core/ext/transport/chttp2/transport/internal.h +4 -3
  108. data/src/core/ext/transport/chttp2/transport/parsing.cc +30 -173
  109. data/src/core/ext/transport/chttp2/transport/popularity_count.h +1 -1
  110. data/src/core/ext/transport/chttp2/transport/writing.cc +29 -22
  111. data/src/core/ext/transport/inproc/inproc_transport.cc +105 -109
  112. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +68 -34
  113. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +139 -1
  114. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +16 -4
  115. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +53 -4
  116. data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +3 -2
  117. data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +15 -0
  118. data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +13 -8
  119. data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +23 -0
  120. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +0 -1
  121. data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +14 -11
  122. data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +17 -0
  123. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +15 -12
  124. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +49 -19
  125. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +55 -0
  126. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +154 -0
  127. data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +0 -2
  128. data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +58 -0
  129. data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +182 -0
  130. data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +1 -1
  131. data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +1 -1
  132. data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +1 -1
  133. data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +1 -1
  134. data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +1 -1
  135. data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +1 -1
  136. data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +58 -0
  137. data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +130 -0
  138. data/src/core/ext/upb-generated/{udpa/type/v1 → xds/type/v3}/typed_struct.upb.c +7 -7
  139. data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +83 -0
  140. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +310 -286
  141. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +10 -0
  142. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +101 -88
  143. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +5 -0
  144. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +59 -56
  145. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +59 -46
  146. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +78 -82
  147. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +323 -316
  148. data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +5 -4
  149. data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +19 -23
  150. data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +4 -3
  151. data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +5 -3
  152. data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +5 -4
  153. data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +75 -0
  154. data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +50 -0
  155. data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +13 -12
  156. data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +25 -24
  157. data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +16 -15
  158. data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +17 -16
  159. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +33 -32
  160. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +19 -18
  161. data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +45 -0
  162. data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +35 -0
  163. data/src/core/ext/xds/xds_api.cc +325 -362
  164. data/src/core/ext/xds/xds_api.h +134 -82
  165. data/src/core/ext/xds/xds_bootstrap.h +10 -0
  166. data/src/core/ext/xds/xds_certificate_provider.cc +3 -3
  167. data/src/core/ext/xds/xds_channel_stack_modifier.cc +113 -0
  168. data/src/core/ext/xds/xds_channel_stack_modifier.h +52 -0
  169. data/src/core/ext/xds/xds_client.cc +527 -314
  170. data/src/core/ext/xds/xds_client.h +42 -37
  171. data/src/core/ext/xds/xds_client_stats.h +1 -1
  172. data/src/core/ext/xds/xds_server_config_fetcher.cc +5 -7
  173. data/src/core/lib/address_utils/parse_address.cc +2 -0
  174. data/src/core/lib/avl/avl.cc +5 -5
  175. data/src/core/lib/backoff/backoff.cc +1 -1
  176. data/src/core/lib/channel/channel_args.cc +24 -6
  177. data/src/core/lib/channel/channel_args.h +9 -0
  178. data/src/core/lib/channel/channel_stack_builder.cc +3 -3
  179. data/src/core/lib/channel/channel_trace.cc +1 -1
  180. data/src/core/lib/channel/channel_trace.h +1 -1
  181. data/src/core/lib/channel/channelz.cc +3 -3
  182. data/src/core/lib/channel/channelz.h +2 -2
  183. data/src/core/lib/channel/channelz_registry.cc +1 -1
  184. data/src/core/lib/channel/channelz_registry.h +1 -1
  185. data/src/core/lib/channel/connected_channel.cc +1 -3
  186. data/src/core/lib/channel/connected_channel.h +1 -2
  187. data/src/core/lib/compression/compression.cc +2 -2
  188. data/src/core/lib/compression/compression_args.cc +6 -4
  189. data/src/core/lib/compression/compression_internal.cc +2 -2
  190. data/src/core/lib/compression/compression_internal.h +1 -1
  191. data/src/core/lib/config/core_configuration.cc +44 -2
  192. data/src/core/lib/config/core_configuration.h +39 -1
  193. data/src/core/lib/debug/stats.cc +1 -1
  194. data/src/core/lib/debug/stats_data.cc +13 -13
  195. data/src/core/lib/gpr/atm.cc +1 -1
  196. data/src/core/lib/gpr/cpu_posix.cc +1 -1
  197. data/src/core/lib/gpr/string.cc +2 -2
  198. data/src/core/lib/gpr/tls.h +1 -1
  199. data/src/core/lib/gpr/useful.h +79 -32
  200. data/src/core/lib/gprpp/arena.h +10 -0
  201. data/src/core/lib/gprpp/bitset.h +38 -16
  202. data/src/core/lib/gprpp/chunked_vector.h +211 -0
  203. data/src/core/lib/gprpp/construct_destruct.h +1 -1
  204. data/src/core/lib/gprpp/match.h +1 -1
  205. data/src/core/lib/gprpp/memory.h +6 -0
  206. data/src/core/lib/gprpp/overload.h +1 -1
  207. data/src/core/lib/gprpp/status_helper.cc +23 -3
  208. data/src/core/lib/gprpp/status_helper.h +12 -1
  209. data/src/core/lib/gprpp/table.h +411 -0
  210. data/src/core/lib/http/httpcli.cc +200 -182
  211. data/src/core/lib/http/parser.cc +2 -2
  212. data/src/core/lib/iomgr/call_combiner.cc +28 -10
  213. data/src/core/lib/iomgr/combiner.cc +6 -21
  214. data/src/core/lib/iomgr/endpoint_cfstream.cc +7 -6
  215. data/src/core/lib/iomgr/error.cc +113 -52
  216. data/src/core/lib/iomgr/error.h +50 -9
  217. data/src/core/lib/iomgr/error_cfstream.cc +5 -0
  218. data/src/core/lib/iomgr/ev_epoll1_linux.cc +3 -2
  219. data/src/core/lib/iomgr/ev_epollex_linux.cc +7 -7
  220. data/src/core/lib/iomgr/ev_poll_posix.cc +29 -20
  221. data/src/core/lib/iomgr/event_engine/closure.cc +41 -18
  222. data/src/core/lib/iomgr/event_engine/closure.h +10 -1
  223. data/src/core/lib/iomgr/event_engine/endpoint.cc +3 -3
  224. data/src/core/lib/iomgr/event_engine/iomgr.cc +1 -1
  225. data/src/core/lib/iomgr/event_engine/pollset.cc +5 -4
  226. data/src/core/lib/iomgr/event_engine/resolver.cc +10 -7
  227. data/src/core/lib/iomgr/event_engine/tcp.cc +9 -8
  228. data/src/core/lib/iomgr/event_engine/timer.cc +7 -2
  229. data/src/core/lib/iomgr/exec_ctx.cc +1 -9
  230. data/src/core/lib/iomgr/executor/mpmcqueue.cc +5 -7
  231. data/src/core/lib/iomgr/executor/mpmcqueue.h +3 -8
  232. data/src/core/lib/iomgr/executor.cc +6 -20
  233. data/src/core/lib/iomgr/iomgr.cc +3 -1
  234. data/src/core/lib/iomgr/iomgr_internal.cc +4 -9
  235. data/src/core/lib/iomgr/iomgr_internal.h +3 -2
  236. data/src/core/lib/iomgr/load_file.cc +2 -2
  237. data/src/core/lib/iomgr/lockfree_event.cc +18 -0
  238. data/src/core/lib/iomgr/pollset_custom.cc +1 -1
  239. data/src/core/lib/iomgr/pollset_custom.h +1 -1
  240. data/src/core/lib/iomgr/resolve_address_posix.cc +5 -7
  241. data/src/core/lib/iomgr/resource_quota.cc +13 -11
  242. data/src/core/lib/iomgr/socket_factory_posix.cc +2 -2
  243. data/src/core/lib/iomgr/socket_mutator.cc +2 -2
  244. data/src/core/lib/iomgr/socket_utils_common_posix.cc +1 -2
  245. data/src/core/lib/iomgr/tcp_client_cfstream.cc +5 -3
  246. data/src/core/lib/iomgr/tcp_client_custom.cc +1 -1
  247. data/src/core/lib/iomgr/tcp_client_posix.cc +9 -18
  248. data/src/core/lib/iomgr/tcp_client_windows.cc +2 -3
  249. data/src/core/lib/iomgr/tcp_posix.cc +4 -5
  250. data/src/core/lib/iomgr/tcp_server_custom.cc +2 -1
  251. data/src/core/lib/iomgr/tcp_server_posix.cc +3 -4
  252. data/src/core/lib/iomgr/tcp_server_windows.cc +4 -5
  253. data/src/core/lib/iomgr/tcp_windows.cc +2 -2
  254. data/src/core/lib/iomgr/timer_generic.cc +13 -13
  255. data/src/core/lib/iomgr/timer_heap.cc +1 -1
  256. data/src/core/lib/json/json_util.cc +68 -0
  257. data/src/core/lib/json/json_util.h +57 -99
  258. data/src/core/lib/json/json_writer.cc +0 -3
  259. data/src/core/lib/security/authorization/authorization_policy_provider.h +1 -1
  260. data/src/core/lib/security/authorization/authorization_policy_provider_vtable.cc +1 -1
  261. data/src/core/lib/security/authorization/evaluate_args.cc +14 -12
  262. data/src/core/lib/security/authorization/sdk_server_authz_filter.cc +13 -1
  263. data/src/core/lib/security/context/security_context.cc +4 -2
  264. data/src/core/lib/security/credentials/composite/composite_credentials.cc +1 -1
  265. data/src/core/lib/security/credentials/credentials.cc +4 -2
  266. data/src/core/lib/security/credentials/credentials.h +6 -1
  267. data/src/core/lib/security/credentials/external/external_account_credentials.cc +47 -11
  268. data/src/core/lib/security/credentials/external/external_account_credentials.h +1 -0
  269. data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +1 -1
  270. data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +5 -9
  271. data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +2 -2
  272. data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +2 -2
  273. data/src/core/lib/security/security_connector/security_connector.cc +9 -4
  274. data/src/core/lib/security/security_connector/security_connector.h +1 -1
  275. data/src/core/lib/security/security_connector/ssl_utils.cc +1 -1
  276. data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +1 -0
  277. data/src/core/lib/security/security_connector/tls/tls_security_connector.h +0 -2
  278. data/src/core/lib/security/transport/client_auth_filter.cc +5 -5
  279. data/src/core/lib/security/transport/security_handshaker.cc +73 -43
  280. data/src/core/lib/security/transport/server_auth_filter.cc +3 -5
  281. data/src/core/lib/security/transport/tsi_error.cc +3 -5
  282. data/src/core/lib/slice/slice.cc +0 -16
  283. data/src/core/lib/slice/slice_api.cc +39 -0
  284. data/src/core/lib/slice/slice_buffer.cc +5 -5
  285. data/src/core/lib/slice/slice_intern.cc +8 -13
  286. data/src/core/lib/slice/slice_internal.h +1 -244
  287. data/src/core/lib/slice/slice_refcount.cc +17 -0
  288. data/src/core/lib/slice/slice_refcount.h +121 -0
  289. data/src/core/lib/slice/slice_refcount_base.h +173 -0
  290. data/src/core/lib/slice/slice_split.cc +100 -0
  291. data/src/core/lib/slice/slice_split.h +40 -0
  292. data/src/core/lib/slice/slice_string_helpers.cc +0 -83
  293. data/src/core/lib/slice/slice_string_helpers.h +0 -11
  294. data/src/core/lib/slice/static_slice.cc +529 -0
  295. data/src/core/lib/slice/static_slice.h +331 -0
  296. data/src/core/lib/surface/builtins.cc +49 -0
  297. data/src/core/{ext/filters/workarounds/workaround_cronet_compression_filter.h → lib/surface/builtins.h} +8 -9
  298. data/src/core/lib/surface/call.cc +103 -120
  299. data/src/core/lib/surface/call.h +0 -6
  300. data/src/core/lib/surface/channel.cc +19 -32
  301. data/src/core/lib/surface/channel.h +0 -9
  302. data/src/core/lib/surface/channel_init.cc +23 -76
  303. data/src/core/lib/surface/channel_init.h +52 -44
  304. data/src/core/lib/surface/completion_queue.cc +6 -5
  305. data/src/core/lib/surface/init.cc +0 -39
  306. data/src/core/lib/surface/init_secure.cc +17 -14
  307. data/src/core/lib/surface/lame_client.cc +18 -11
  308. data/src/core/lib/surface/lame_client.h +1 -1
  309. data/src/core/lib/surface/server.cc +25 -17
  310. data/src/core/lib/surface/server.h +17 -10
  311. data/src/core/lib/surface/validate_metadata.cc +5 -2
  312. data/src/core/lib/surface/version.cc +2 -2
  313. data/src/core/lib/transport/bdp_estimator.cc +1 -1
  314. data/src/core/lib/transport/error_utils.cc +42 -17
  315. data/src/core/lib/transport/error_utils.h +1 -1
  316. data/src/core/lib/transport/metadata.cc +31 -10
  317. data/src/core/lib/transport/metadata.h +2 -1
  318. data/src/core/lib/transport/metadata_batch.cc +35 -371
  319. data/src/core/lib/transport/metadata_batch.h +905 -71
  320. data/src/core/lib/transport/parsed_metadata.h +263 -0
  321. data/src/core/lib/transport/pid_controller.cc +4 -4
  322. data/src/core/lib/transport/static_metadata.cc +714 -846
  323. data/src/core/lib/transport/static_metadata.h +115 -379
  324. data/src/core/lib/transport/status_metadata.cc +1 -0
  325. data/src/core/lib/transport/transport.cc +4 -5
  326. data/src/core/lib/transport/transport_op_string.cc +40 -20
  327. data/src/core/plugin_registry/grpc_plugin_registry.cc +64 -43
  328. data/src/core/tsi/alts/crypt/aes_gcm.cc +3 -1
  329. data/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +13 -12
  330. data/src/core/tsi/alts/frame_protector/frame_handler.cc +10 -11
  331. data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +1 -2
  332. data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +12 -2
  333. data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc +1 -1
  334. data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +2 -2
  335. data/src/core/tsi/fake_transport_security.cc +15 -7
  336. data/src/core/tsi/local_transport_security.cc +36 -73
  337. data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +16 -50
  338. data/src/core/tsi/ssl/session_cache/ssl_session_cache.h +4 -3
  339. data/src/core/tsi/ssl_transport_security.cc +10 -2
  340. data/src/core/tsi/transport_security.cc +12 -0
  341. data/src/core/tsi/transport_security.h +16 -1
  342. data/src/core/tsi/transport_security_interface.h +26 -0
  343. data/src/ruby/ext/grpc/extconf.rb +12 -9
  344. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +4 -0
  345. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +6 -0
  346. data/src/ruby/lib/grpc/version.rb +1 -1
  347. data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +2 -2
  348. data/src/ruby/spec/client_server_spec.rb +1 -1
  349. data/third_party/abseil-cpp/absl/base/internal/thread_identity.cc +4 -4
  350. data/third_party/abseil-cpp/absl/base/internal/thread_identity.h +11 -6
  351. data/third_party/address_sorting/address_sorting_posix.c +1 -0
  352. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_bool.c +20 -21
  353. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strnid.c +104 -114
  354. data/third_party/boringssl-with-bazel/src/crypto/asn1/internal.h +13 -0
  355. data/third_party/boringssl-with-bazel/src/crypto/blake2/blake2.c +4 -6
  356. data/third_party/boringssl-with-bazel/src/crypto/chacha/chacha.c +38 -47
  357. data/third_party/boringssl-with-bazel/src/crypto/evp/scrypt.c +32 -34
  358. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/sqrt.c +5 -9
  359. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/des.c +10 -11
  360. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h +1 -3
  361. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md4/md4.c +3 -6
  362. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md5/md5.c +4 -7
  363. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha1.c +35 -35
  364. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha256.c +11 -10
  365. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha512.c +10 -37
  366. data/third_party/boringssl-with-bazel/src/crypto/internal.h +39 -0
  367. data/third_party/boringssl-with-bazel/src/crypto/siphash/siphash.c +6 -6
  368. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +0 -1
  369. data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +72 -45
  370. data/third_party/boringssl-with-bazel/src/include/openssl/base.h +5 -1
  371. data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +2 -2
  372. data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +479 -15
  373. data/third_party/boringssl-with-bazel/src/include/openssl/x509_vfy.h +16 -564
  374. data/third_party/boringssl-with-bazel/src/ssl/ssl_x509.cc +0 -1
  375. data/third_party/re2/re2/compile.cc +91 -109
  376. data/third_party/re2/re2/dfa.cc +27 -39
  377. data/third_party/re2/re2/filtered_re2.cc +18 -2
  378. data/third_party/re2/re2/filtered_re2.h +10 -5
  379. data/third_party/re2/re2/nfa.cc +1 -1
  380. data/third_party/re2/re2/parse.cc +42 -23
  381. data/third_party/re2/re2/perl_groups.cc +34 -34
  382. data/third_party/re2/re2/prefilter.cc +3 -2
  383. data/third_party/re2/re2/prog.cc +182 -4
  384. data/third_party/re2/re2/prog.h +28 -9
  385. data/third_party/re2/re2/re2.cc +87 -118
  386. data/third_party/re2/re2/re2.h +156 -141
  387. data/third_party/re2/re2/regexp.cc +12 -5
  388. data/third_party/re2/re2/regexp.h +8 -2
  389. data/third_party/re2/re2/set.cc +31 -9
  390. data/third_party/re2/re2/set.h +9 -4
  391. data/third_party/re2/re2/simplify.cc +11 -3
  392. data/third_party/re2/re2/tostring.cc +1 -1
  393. data/third_party/re2/re2/walker-inl.h +1 -1
  394. data/third_party/re2/util/mutex.h +2 -2
  395. data/third_party/re2/util/pcre.h +3 -3
  396. metadata +78 -66
  397. data/include/grpc/event_engine/slice_allocator.h +0 -71
  398. data/src/core/ext/filters/client_channel/service_config_call_data.h +0 -126
  399. data/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc +0 -211
  400. data/src/core/ext/filters/workarounds/workaround_utils.cc +0 -53
  401. data/src/core/ext/filters/workarounds/workaround_utils.h +0 -39
  402. data/src/core/ext/transport/chttp2/client/authority.cc +0 -42
  403. data/src/core/ext/transport/chttp2/client/authority.h +0 -36
  404. data/src/core/ext/transport/chttp2/transport/chttp2_slice_allocator.cc +0 -67
  405. data/src/core/ext/transport/chttp2/transport/chttp2_slice_allocator.h +0 -74
  406. data/src/core/ext/transport/chttp2/transport/incoming_metadata.cc +0 -66
  407. data/src/core/ext/transport/chttp2/transport/incoming_metadata.h +0 -58
  408. data/src/core/ext/upb-generated/udpa/data/orca/v1/orca_load_report.upb.c +0 -58
  409. data/src/core/ext/upb-generated/udpa/data/orca/v1/orca_load_report.upb.h +0 -130
  410. data/src/core/ext/upb-generated/udpa/type/v1/typed_struct.upb.h +0 -83
  411. data/src/core/ext/upbdefs-generated/udpa/type/v1/typed_struct.upbdefs.c +0 -44
  412. data/src/core/ext/upbdefs-generated/udpa/type/v1/typed_struct.upbdefs.h +0 -35
  413. data/src/core/lib/iomgr/udp_server.cc +0 -747
  414. data/src/core/lib/iomgr/udp_server.h +0 -103
  415. data/src/core/lib/transport/authority_override.cc +0 -40
  416. data/src/core/lib/transport/authority_override.h +0 -37
@@ -1,566 +1,18 @@
1
- /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
2
- * All rights reserved.
1
+ /* Copyright (c) 2021, Google Inc.
3
2
  *
4
- * This package is an SSL implementation written
5
- * by Eric Young (eay@cryptsoft.com).
6
- * The implementation was written so as to conform with Netscapes SSL.
3
+ * Permission to use, copy, modify, and/or distribute this software for any
4
+ * purpose with or without fee is hereby granted, provided that the above
5
+ * copyright notice and this permission notice appear in all copies.
7
6
  *
8
- * This library is free for commercial and non-commercial use as long as
9
- * the following conditions are aheared to. The following conditions
10
- * apply to all code found in this distribution, be it the RC4, RSA,
11
- * lhash, DES, etc., code; not just the SSL code. The SSL documentation
12
- * included with this distribution is covered by the same copyright terms
13
- * except that the holder is Tim Hudson (tjh@cryptsoft.com).
14
- *
15
- * Copyright remains Eric Young's, and as such any Copyright notices in
16
- * the code are not to be removed.
17
- * If this package is used in a product, Eric Young should be given attribution
18
- * as the author of the parts of the library used.
19
- * This can be in the form of a textual message at program startup or
20
- * in documentation (online or textual) provided with the package.
21
- *
22
- * Redistribution and use in source and binary forms, with or without
23
- * modification, are permitted provided that the following conditions
24
- * are met:
25
- * 1. Redistributions of source code must retain the copyright
26
- * notice, this list of conditions and the following disclaimer.
27
- * 2. Redistributions in binary form must reproduce the above copyright
28
- * notice, this list of conditions and the following disclaimer in the
29
- * documentation and/or other materials provided with the distribution.
30
- * 3. All advertising materials mentioning features or use of this software
31
- * must display the following acknowledgement:
32
- * "This product includes cryptographic software written by
33
- * Eric Young (eay@cryptsoft.com)"
34
- * The word 'cryptographic' can be left out if the rouines from the library
35
- * being used are not cryptographic related :-).
36
- * 4. If you include any Windows specific code (or a derivative thereof) from
37
- * the apps directory (application code) you must include an acknowledgement:
38
- * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
39
- *
40
- * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
41
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
43
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
44
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
45
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
46
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
48
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
49
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
50
- * SUCH DAMAGE.
51
- *
52
- * The licence and distribution terms for any publically available version or
53
- * derivative of this code cannot be changed. i.e. this code cannot simply be
54
- * copied and put under another distribution licence
55
- * [including the GNU Public Licence.]
56
- */
57
-
58
- #ifndef HEADER_X509_H
59
- #include <openssl/x509.h>
60
- // openssl/x509.h ends up #include-ing this file at about the only
61
- // appropriate moment.
62
- #endif
63
-
64
- #ifndef HEADER_X509_VFY_H
65
- #define HEADER_X509_VFY_H
66
-
67
- #include <openssl/thread.h>
68
-
69
- #ifdef __cplusplus
70
- extern "C" {
71
- #endif
72
-
73
- // Legacy X.509 library.
74
- //
75
- // This header is part of OpenSSL's X.509 implementation. It is retained for
76
- // compatibility but otherwise underdocumented and not actively maintained. In
77
- // the future, a replacement library will be available. Meanwhile, minimize
78
- // dependencies on this header where possible.
79
-
80
-
81
- /*
82
- SSL_CTX -> X509_STORE
83
- -> X509_LOOKUP
84
- ->X509_LOOKUP_METHOD
85
- -> X509_LOOKUP
86
- ->X509_LOOKUP_METHOD
87
-
88
- SSL -> X509_STORE_CTX
89
- ->X509_STORE
90
-
91
- The X509_STORE holds the tables etc for verification stuff.
92
- A X509_STORE_CTX is used while validating a single certificate.
93
- The X509_STORE has X509_LOOKUPs for looking up certs.
94
- The X509_STORE then calls a function to actually verify the
95
- certificate chain.
96
- */
97
-
98
- #define X509_LU_X509 1
99
- #define X509_LU_CRL 2
100
- #define X509_LU_PKEY 3
101
-
102
- DEFINE_STACK_OF(X509_LOOKUP)
103
- DEFINE_STACK_OF(X509_OBJECT)
104
- DEFINE_STACK_OF(X509_VERIFY_PARAM)
105
-
106
- typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *);
107
- typedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *);
108
- typedef int (*X509_STORE_CTX_get_issuer_fn)(X509 **issuer, X509_STORE_CTX *ctx,
109
- X509 *x);
110
- typedef int (*X509_STORE_CTX_check_issued_fn)(X509_STORE_CTX *ctx, X509 *x,
111
- X509 *issuer);
112
- typedef int (*X509_STORE_CTX_check_revocation_fn)(X509_STORE_CTX *ctx);
113
- typedef int (*X509_STORE_CTX_get_crl_fn)(X509_STORE_CTX *ctx, X509_CRL **crl,
114
- X509 *x);
115
- typedef int (*X509_STORE_CTX_check_crl_fn)(X509_STORE_CTX *ctx, X509_CRL *crl);
116
- typedef int (*X509_STORE_CTX_cert_crl_fn)(X509_STORE_CTX *ctx, X509_CRL *crl,
117
- X509 *x);
118
- typedef int (*X509_STORE_CTX_check_policy_fn)(X509_STORE_CTX *ctx);
119
- typedef STACK_OF(X509) *(*X509_STORE_CTX_lookup_certs_fn)(X509_STORE_CTX *ctx,
120
- X509_NAME *nm);
121
- typedef STACK_OF(X509_CRL) *(*X509_STORE_CTX_lookup_crls_fn)(
122
- X509_STORE_CTX *ctx, X509_NAME *nm);
123
- typedef int (*X509_STORE_CTX_cleanup_fn)(X509_STORE_CTX *ctx);
124
-
125
- OPENSSL_EXPORT int X509_STORE_set_depth(X509_STORE *store, int depth);
126
-
127
- OPENSSL_EXPORT void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);
128
-
129
- #define X509_STORE_CTX_set_app_data(ctx, data) \
130
- X509_STORE_CTX_set_ex_data(ctx, 0, data)
131
- #define X509_STORE_CTX_get_app_data(ctx) X509_STORE_CTX_get_ex_data(ctx, 0)
132
-
133
- #define X509_L_FILE_LOAD 1
134
- #define X509_L_ADD_DIR 2
135
-
136
- #define X509_LOOKUP_load_file(x, name, type) \
137
- X509_LOOKUP_ctrl((x), X509_L_FILE_LOAD, (name), (long)(type), NULL)
138
-
139
- #define X509_LOOKUP_add_dir(x, name, type) \
140
- X509_LOOKUP_ctrl((x), X509_L_ADD_DIR, (name), (long)(type), NULL)
141
-
142
- #define X509_V_OK 0
143
- #define X509_V_ERR_UNSPECIFIED 1
144
-
145
- #define X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT 2
146
- #define X509_V_ERR_UNABLE_TO_GET_CRL 3
147
- #define X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE 4
148
- #define X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE 5
149
- #define X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY 6
150
- #define X509_V_ERR_CERT_SIGNATURE_FAILURE 7
151
- #define X509_V_ERR_CRL_SIGNATURE_FAILURE 8
152
- #define X509_V_ERR_CERT_NOT_YET_VALID 9
153
- #define X509_V_ERR_CERT_HAS_EXPIRED 10
154
- #define X509_V_ERR_CRL_NOT_YET_VALID 11
155
- #define X509_V_ERR_CRL_HAS_EXPIRED 12
156
- #define X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD 13
157
- #define X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD 14
158
- #define X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD 15
159
- #define X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD 16
160
- #define X509_V_ERR_OUT_OF_MEM 17
161
- #define X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT 18
162
- #define X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN 19
163
- #define X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY 20
164
- #define X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE 21
165
- #define X509_V_ERR_CERT_CHAIN_TOO_LONG 22
166
- #define X509_V_ERR_CERT_REVOKED 23
167
- #define X509_V_ERR_INVALID_CA 24
168
- #define X509_V_ERR_PATH_LENGTH_EXCEEDED 25
169
- #define X509_V_ERR_INVALID_PURPOSE 26
170
- #define X509_V_ERR_CERT_UNTRUSTED 27
171
- #define X509_V_ERR_CERT_REJECTED 28
172
- // These are 'informational' when looking for issuer cert
173
- #define X509_V_ERR_SUBJECT_ISSUER_MISMATCH 29
174
- #define X509_V_ERR_AKID_SKID_MISMATCH 30
175
- #define X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH 31
176
- #define X509_V_ERR_KEYUSAGE_NO_CERTSIGN 32
177
-
178
- #define X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER 33
179
- #define X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION 34
180
- #define X509_V_ERR_KEYUSAGE_NO_CRL_SIGN 35
181
- #define X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION 36
182
- #define X509_V_ERR_INVALID_NON_CA 37
183
- #define X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED 38
184
- #define X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE 39
185
- #define X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED 40
186
-
187
- #define X509_V_ERR_INVALID_EXTENSION 41
188
- #define X509_V_ERR_INVALID_POLICY_EXTENSION 42
189
- #define X509_V_ERR_NO_EXPLICIT_POLICY 43
190
- #define X509_V_ERR_DIFFERENT_CRL_SCOPE 44
191
- #define X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE 45
192
-
193
- #define X509_V_ERR_UNNESTED_RESOURCE 46
194
-
195
- #define X509_V_ERR_PERMITTED_VIOLATION 47
196
- #define X509_V_ERR_EXCLUDED_VIOLATION 48
197
- #define X509_V_ERR_SUBTREE_MINMAX 49
198
- #define X509_V_ERR_APPLICATION_VERIFICATION 50
199
- #define X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE 51
200
- #define X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX 52
201
- #define X509_V_ERR_UNSUPPORTED_NAME_SYNTAX 53
202
- #define X509_V_ERR_CRL_PATH_VALIDATION_ERROR 54
203
-
204
- // Suite B mode algorithm violation
205
- #define X509_V_ERR_SUITE_B_INVALID_VERSION 56
206
- #define X509_V_ERR_SUITE_B_INVALID_ALGORITHM 57
207
- #define X509_V_ERR_SUITE_B_INVALID_CURVE 58
208
- #define X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM 59
209
- #define X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED 60
210
- #define X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 61
211
-
212
- // Host, email and IP check errors
213
- #define X509_V_ERR_HOSTNAME_MISMATCH 62
214
- #define X509_V_ERR_EMAIL_MISMATCH 63
215
- #define X509_V_ERR_IP_ADDRESS_MISMATCH 64
216
-
217
- // Caller error
218
- #define X509_V_ERR_INVALID_CALL 65
219
- // Issuer lookup error
220
- #define X509_V_ERR_STORE_LOOKUP 66
221
-
222
- #define X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS 67
223
-
224
- // Certificate verify flags
225
-
226
- // Send issuer+subject checks to verify_cb
227
- #define X509_V_FLAG_CB_ISSUER_CHECK 0x1
228
- // Use check time instead of current time
229
- #define X509_V_FLAG_USE_CHECK_TIME 0x2
230
- // Lookup CRLs
231
- #define X509_V_FLAG_CRL_CHECK 0x4
232
- // Lookup CRLs for whole chain
233
- #define X509_V_FLAG_CRL_CHECK_ALL 0x8
234
- // Ignore unhandled critical extensions
235
- #define X509_V_FLAG_IGNORE_CRITICAL 0x10
236
- // Does nothing as its functionality has been enabled by default.
237
- #define X509_V_FLAG_X509_STRICT 0x00
238
- // Enable proxy certificate validation
239
- #define X509_V_FLAG_ALLOW_PROXY_CERTS 0x40
240
- // Enable policy checking
241
- #define X509_V_FLAG_POLICY_CHECK 0x80
242
- // Policy variable require-explicit-policy
243
- #define X509_V_FLAG_EXPLICIT_POLICY 0x100
244
- // Policy variable inhibit-any-policy
245
- #define X509_V_FLAG_INHIBIT_ANY 0x200
246
- // Policy variable inhibit-policy-mapping
247
- #define X509_V_FLAG_INHIBIT_MAP 0x400
248
- // Notify callback that policy is OK
249
- #define X509_V_FLAG_NOTIFY_POLICY 0x800
250
- // Extended CRL features such as indirect CRLs, alternate CRL signing keys
251
- #define X509_V_FLAG_EXTENDED_CRL_SUPPORT 0x1000
252
- // Delta CRL support
253
- #define X509_V_FLAG_USE_DELTAS 0x2000
254
- // Check selfsigned CA signature
255
- #define X509_V_FLAG_CHECK_SS_SIGNATURE 0x4000
256
- // Use trusted store first
257
- #define X509_V_FLAG_TRUSTED_FIRST 0x8000
258
- // Suite B 128 bit only mode: not normally used
259
- #define X509_V_FLAG_SUITEB_128_LOS_ONLY 0x10000
260
- // Suite B 192 bit only mode
261
- #define X509_V_FLAG_SUITEB_192_LOS 0x20000
262
- // Suite B 128 bit mode allowing 192 bit algorithms
263
- #define X509_V_FLAG_SUITEB_128_LOS 0x30000
264
-
265
- // Allow partial chains if at least one certificate is in trusted store
266
- #define X509_V_FLAG_PARTIAL_CHAIN 0x80000
267
-
268
- // If the initial chain is not trusted, do not attempt to build an alternative
269
- // chain. Alternate chain checking was introduced in 1.0.2b. Setting this flag
270
- // will force the behaviour to match that of previous versions.
271
- #define X509_V_FLAG_NO_ALT_CHAINS 0x100000
272
-
273
- #define X509_VP_FLAG_DEFAULT 0x1
274
- #define X509_VP_FLAG_OVERWRITE 0x2
275
- #define X509_VP_FLAG_RESET_FLAGS 0x4
276
- #define X509_VP_FLAG_LOCKED 0x8
277
- #define X509_VP_FLAG_ONCE 0x10
278
-
279
- // Internal use: mask of policy related options
280
- #define X509_V_FLAG_POLICY_MASK \
281
- (X509_V_FLAG_POLICY_CHECK | X509_V_FLAG_EXPLICIT_POLICY | \
282
- X509_V_FLAG_INHIBIT_ANY | X509_V_FLAG_INHIBIT_MAP)
283
-
284
- OPENSSL_EXPORT int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h,
285
- int type, X509_NAME *name);
286
- OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_retrieve_by_subject(
287
- STACK_OF(X509_OBJECT) *h, int type, X509_NAME *name);
288
- OPENSSL_EXPORT X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h,
289
- X509_OBJECT *x);
290
- OPENSSL_EXPORT int X509_OBJECT_up_ref_count(X509_OBJECT *a);
291
- OPENSSL_EXPORT void X509_OBJECT_free_contents(X509_OBJECT *a);
292
- OPENSSL_EXPORT int X509_OBJECT_get_type(const X509_OBJECT *a);
293
- OPENSSL_EXPORT X509 *X509_OBJECT_get0_X509(const X509_OBJECT *a);
294
- OPENSSL_EXPORT X509_STORE *X509_STORE_new(void);
295
- OPENSSL_EXPORT int X509_STORE_up_ref(X509_STORE *store);
296
- OPENSSL_EXPORT void X509_STORE_free(X509_STORE *v);
297
-
298
- OPENSSL_EXPORT STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *st);
299
- OPENSSL_EXPORT STACK_OF(X509) *X509_STORE_get1_certs(X509_STORE_CTX *st,
300
- X509_NAME *nm);
301
- OPENSSL_EXPORT STACK_OF(X509_CRL) *X509_STORE_get1_crls(X509_STORE_CTX *st,
302
- X509_NAME *nm);
303
- OPENSSL_EXPORT int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags);
304
- OPENSSL_EXPORT int X509_STORE_set_purpose(X509_STORE *ctx, int purpose);
305
- OPENSSL_EXPORT int X509_STORE_set_trust(X509_STORE *ctx, int trust);
306
- OPENSSL_EXPORT int X509_STORE_set1_param(X509_STORE *ctx,
307
- X509_VERIFY_PARAM *pm);
308
- OPENSSL_EXPORT X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx);
309
-
310
- OPENSSL_EXPORT void X509_STORE_set_verify(X509_STORE *ctx,
311
- X509_STORE_CTX_verify_fn verify);
312
- #define X509_STORE_set_verify_func(ctx, func) \
313
- X509_STORE_set_verify((ctx), (func))
314
- OPENSSL_EXPORT void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx,
315
- X509_STORE_CTX_verify_fn verify);
316
- OPENSSL_EXPORT X509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx);
317
- OPENSSL_EXPORT void X509_STORE_set_verify_cb(
318
- X509_STORE *ctx, X509_STORE_CTX_verify_cb verify_cb);
319
- #define X509_STORE_set_verify_cb_func(ctx, func) \
320
- X509_STORE_set_verify_cb((ctx), (func))
321
- OPENSSL_EXPORT X509_STORE_CTX_verify_cb
322
- X509_STORE_get_verify_cb(X509_STORE *ctx);
323
- OPENSSL_EXPORT void X509_STORE_set_get_issuer(
324
- X509_STORE *ctx, X509_STORE_CTX_get_issuer_fn get_issuer);
325
- OPENSSL_EXPORT X509_STORE_CTX_get_issuer_fn
326
- X509_STORE_get_get_issuer(X509_STORE *ctx);
327
- OPENSSL_EXPORT void X509_STORE_set_check_issued(
328
- X509_STORE *ctx, X509_STORE_CTX_check_issued_fn check_issued);
329
- OPENSSL_EXPORT X509_STORE_CTX_check_issued_fn
330
- X509_STORE_get_check_issued(X509_STORE *ctx);
331
- OPENSSL_EXPORT void X509_STORE_set_check_revocation(
332
- X509_STORE *ctx, X509_STORE_CTX_check_revocation_fn check_revocation);
333
- OPENSSL_EXPORT X509_STORE_CTX_check_revocation_fn
334
- X509_STORE_get_check_revocation(X509_STORE *ctx);
335
- OPENSSL_EXPORT void X509_STORE_set_get_crl(X509_STORE *ctx,
336
- X509_STORE_CTX_get_crl_fn get_crl);
337
- OPENSSL_EXPORT X509_STORE_CTX_get_crl_fn
338
- X509_STORE_get_get_crl(X509_STORE *ctx);
339
- OPENSSL_EXPORT void X509_STORE_set_check_crl(
340
- X509_STORE *ctx, X509_STORE_CTX_check_crl_fn check_crl);
341
- OPENSSL_EXPORT X509_STORE_CTX_check_crl_fn
342
- X509_STORE_get_check_crl(X509_STORE *ctx);
343
- OPENSSL_EXPORT void X509_STORE_set_cert_crl(
344
- X509_STORE *ctx, X509_STORE_CTX_cert_crl_fn cert_crl);
345
- OPENSSL_EXPORT X509_STORE_CTX_cert_crl_fn
346
- X509_STORE_get_cert_crl(X509_STORE *ctx);
347
- OPENSSL_EXPORT void X509_STORE_set_lookup_certs(
348
- X509_STORE *ctx, X509_STORE_CTX_lookup_certs_fn lookup_certs);
349
- OPENSSL_EXPORT X509_STORE_CTX_lookup_certs_fn
350
- X509_STORE_get_lookup_certs(X509_STORE *ctx);
351
- OPENSSL_EXPORT void X509_STORE_set_lookup_crls(
352
- X509_STORE *ctx, X509_STORE_CTX_lookup_crls_fn lookup_crls);
353
- #define X509_STORE_set_lookup_crls_cb(ctx, func) \
354
- X509_STORE_set_lookup_crls((ctx), (func))
355
- OPENSSL_EXPORT X509_STORE_CTX_lookup_crls_fn
356
- X509_STORE_get_lookup_crls(X509_STORE *ctx);
357
- OPENSSL_EXPORT void X509_STORE_set_cleanup(X509_STORE *ctx,
358
- X509_STORE_CTX_cleanup_fn cleanup);
359
- OPENSSL_EXPORT X509_STORE_CTX_cleanup_fn
360
- X509_STORE_get_cleanup(X509_STORE *ctx);
361
-
362
-
363
- OPENSSL_EXPORT X509_STORE_CTX *X509_STORE_CTX_new(void);
364
-
365
- OPENSSL_EXPORT int X509_STORE_CTX_get1_issuer(X509 **issuer,
366
- X509_STORE_CTX *ctx, X509 *x);
367
-
368
- OPENSSL_EXPORT void X509_STORE_CTX_zero(X509_STORE_CTX *ctx);
369
- OPENSSL_EXPORT void X509_STORE_CTX_free(X509_STORE_CTX *ctx);
370
- OPENSSL_EXPORT int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store,
371
- X509 *x509, STACK_OF(X509) *chain);
372
- OPENSSL_EXPORT void X509_STORE_CTX_trusted_stack(X509_STORE_CTX *ctx,
373
- STACK_OF(X509) *sk);
374
- OPENSSL_EXPORT void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);
375
-
376
- OPENSSL_EXPORT X509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx);
377
- OPENSSL_EXPORT X509 *X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx);
378
-
379
- OPENSSL_EXPORT X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v,
380
- X509_LOOKUP_METHOD *m);
381
-
382
- OPENSSL_EXPORT X509_LOOKUP_METHOD *X509_LOOKUP_hash_dir(void);
383
- OPENSSL_EXPORT X509_LOOKUP_METHOD *X509_LOOKUP_file(void);
384
-
385
- OPENSSL_EXPORT int X509_STORE_add_cert(X509_STORE *ctx, X509 *x);
386
- OPENSSL_EXPORT int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x);
387
-
388
- OPENSSL_EXPORT int X509_STORE_get_by_subject(X509_STORE_CTX *vs, int type,
389
- X509_NAME *name, X509_OBJECT *ret);
390
-
391
- OPENSSL_EXPORT int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,
392
- long argl, char **ret);
393
-
394
- #ifndef OPENSSL_NO_STDIO
395
- OPENSSL_EXPORT int X509_load_cert_file(X509_LOOKUP *ctx, const char *file,
396
- int type);
397
- OPENSSL_EXPORT int X509_load_crl_file(X509_LOOKUP *ctx, const char *file,
398
- int type);
399
- OPENSSL_EXPORT int X509_load_cert_crl_file(X509_LOOKUP *ctx, const char *file,
400
- int type);
401
- #endif
402
-
403
-
404
- OPENSSL_EXPORT X509_LOOKUP *X509_LOOKUP_new(X509_LOOKUP_METHOD *method);
405
- OPENSSL_EXPORT void X509_LOOKUP_free(X509_LOOKUP *ctx);
406
- OPENSSL_EXPORT int X509_LOOKUP_init(X509_LOOKUP *ctx);
407
- OPENSSL_EXPORT int X509_LOOKUP_by_subject(X509_LOOKUP *ctx, int type,
408
- X509_NAME *name, X509_OBJECT *ret);
409
- OPENSSL_EXPORT int X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, int type,
410
- X509_NAME *name,
411
- ASN1_INTEGER *serial,
412
- X509_OBJECT *ret);
413
- OPENSSL_EXPORT int X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, int type,
414
- unsigned char *bytes, int len,
415
- X509_OBJECT *ret);
416
- OPENSSL_EXPORT int X509_LOOKUP_by_alias(X509_LOOKUP *ctx, int type, char *str,
417
- int len, X509_OBJECT *ret);
418
- OPENSSL_EXPORT int X509_LOOKUP_shutdown(X509_LOOKUP *ctx);
419
-
420
- #ifndef OPENSSL_NO_STDIO
421
- OPENSSL_EXPORT int X509_STORE_load_locations(X509_STORE *ctx, const char *file,
422
- const char *dir);
423
- OPENSSL_EXPORT int X509_STORE_set_default_paths(X509_STORE *ctx);
424
- #endif
425
-
426
- OPENSSL_EXPORT int X509_STORE_CTX_get_ex_new_index(long argl, void *argp,
427
- CRYPTO_EX_unused *unused,
428
- CRYPTO_EX_dup *dup_unused,
429
- CRYPTO_EX_free *free_func);
430
- OPENSSL_EXPORT int X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx, int idx,
431
- void *data);
432
- OPENSSL_EXPORT void *X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx, int idx);
433
- OPENSSL_EXPORT int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);
434
- OPENSSL_EXPORT void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx, int s);
435
- OPENSSL_EXPORT int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);
436
- OPENSSL_EXPORT X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);
437
- OPENSSL_EXPORT X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx);
438
- OPENSSL_EXPORT X509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx);
439
- OPENSSL_EXPORT X509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(
440
- X509_STORE_CTX *ctx);
441
- OPENSSL_EXPORT STACK_OF(X509) *X509_STORE_CTX_get_chain(X509_STORE_CTX *ctx);
442
- OPENSSL_EXPORT STACK_OF(X509) *X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx);
443
- OPENSSL_EXPORT STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx);
444
- OPENSSL_EXPORT void X509_STORE_CTX_set_cert(X509_STORE_CTX *c, X509 *x);
445
- OPENSSL_EXPORT void X509_STORE_CTX_set_chain(X509_STORE_CTX *c,
446
- STACK_OF(X509) *sk);
447
- OPENSSL_EXPORT STACK_OF(X509) *X509_STORE_CTX_get0_untrusted(
448
- X509_STORE_CTX *ctx);
449
- OPENSSL_EXPORT void X509_STORE_CTX_set0_crls(X509_STORE_CTX *c,
450
- STACK_OF(X509_CRL) *sk);
451
- OPENSSL_EXPORT int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);
452
- OPENSSL_EXPORT int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust);
453
- OPENSSL_EXPORT int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx,
454
- int def_purpose, int purpose,
455
- int trust);
456
- OPENSSL_EXPORT void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx,
457
- unsigned long flags);
458
- OPENSSL_EXPORT void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx,
459
- unsigned long flags, time_t t);
460
- OPENSSL_EXPORT void X509_STORE_CTX_set_verify_cb(
461
- X509_STORE_CTX *ctx, int (*verify_cb)(int, X509_STORE_CTX *));
462
-
463
- OPENSSL_EXPORT X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(
464
- X509_STORE_CTX *ctx);
465
- OPENSSL_EXPORT int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx);
466
-
467
- OPENSSL_EXPORT X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(
468
- X509_STORE_CTX *ctx);
469
- OPENSSL_EXPORT void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx,
470
- X509_VERIFY_PARAM *param);
471
- OPENSSL_EXPORT int X509_STORE_CTX_set_default(X509_STORE_CTX *ctx,
472
- const char *name);
473
-
474
- // X509_VERIFY_PARAM functions
475
-
476
- OPENSSL_EXPORT X509_VERIFY_PARAM *X509_VERIFY_PARAM_new(void);
477
- OPENSSL_EXPORT void X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param);
478
- OPENSSL_EXPORT int X509_VERIFY_PARAM_inherit(X509_VERIFY_PARAM *to,
479
- const X509_VERIFY_PARAM *from);
480
- OPENSSL_EXPORT int X509_VERIFY_PARAM_set1(X509_VERIFY_PARAM *to,
481
- const X509_VERIFY_PARAM *from);
482
- OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_name(X509_VERIFY_PARAM *param,
483
- const char *name);
484
- OPENSSL_EXPORT int X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param,
485
- unsigned long flags);
486
- OPENSSL_EXPORT int X509_VERIFY_PARAM_clear_flags(X509_VERIFY_PARAM *param,
487
- unsigned long flags);
488
- OPENSSL_EXPORT unsigned long X509_VERIFY_PARAM_get_flags(
489
- X509_VERIFY_PARAM *param);
490
- OPENSSL_EXPORT int X509_VERIFY_PARAM_set_purpose(X509_VERIFY_PARAM *param,
491
- int purpose);
492
- OPENSSL_EXPORT int X509_VERIFY_PARAM_set_trust(X509_VERIFY_PARAM *param,
493
- int trust);
494
- OPENSSL_EXPORT void X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param,
495
- int depth);
496
- OPENSSL_EXPORT void X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param,
497
- time_t t);
498
- OPENSSL_EXPORT int X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param,
499
- ASN1_OBJECT *policy);
500
- OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_policies(
501
- X509_VERIFY_PARAM *param, STACK_OF(ASN1_OBJECT) *policies);
502
-
503
- OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param,
504
- const char *name,
505
- size_t namelen);
506
- OPENSSL_EXPORT int X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param,
507
- const char *name,
508
- size_t namelen);
509
- OPENSSL_EXPORT void X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param,
510
- unsigned int flags);
511
- OPENSSL_EXPORT char *X509_VERIFY_PARAM_get0_peername(X509_VERIFY_PARAM *);
512
- OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_email(X509_VERIFY_PARAM *param,
513
- const char *email,
514
- size_t emaillen);
515
- OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_ip(X509_VERIFY_PARAM *param,
516
- const unsigned char *ip,
517
- size_t iplen);
518
- OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_ip_asc(X509_VERIFY_PARAM *param,
519
- const char *ipasc);
520
-
521
- OPENSSL_EXPORT int X509_VERIFY_PARAM_get_depth(const X509_VERIFY_PARAM *param);
522
- OPENSSL_EXPORT const char *X509_VERIFY_PARAM_get0_name(
523
- const X509_VERIFY_PARAM *param);
524
-
525
- OPENSSL_EXPORT int X509_VERIFY_PARAM_add0_table(X509_VERIFY_PARAM *param);
526
- OPENSSL_EXPORT int X509_VERIFY_PARAM_get_count(void);
527
- OPENSSL_EXPORT const X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id);
528
- OPENSSL_EXPORT const X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(
529
- const char *name);
530
- OPENSSL_EXPORT void X509_VERIFY_PARAM_table_cleanup(void);
531
-
532
- OPENSSL_EXPORT int X509_policy_check(X509_POLICY_TREE **ptree,
533
- int *pexplicit_policy,
534
- STACK_OF(X509) *certs,
535
- STACK_OF(ASN1_OBJECT) *policy_oids,
536
- unsigned int flags);
537
-
538
- OPENSSL_EXPORT void X509_policy_tree_free(X509_POLICY_TREE *tree);
539
-
540
- OPENSSL_EXPORT int X509_policy_tree_level_count(const X509_POLICY_TREE *tree);
541
- OPENSSL_EXPORT X509_POLICY_LEVEL *X509_policy_tree_get0_level(
542
- const X509_POLICY_TREE *tree, int i);
543
-
544
- OPENSSL_EXPORT STACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_policies(
545
- const X509_POLICY_TREE *tree);
546
-
547
- OPENSSL_EXPORT STACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_user_policies(
548
- const X509_POLICY_TREE *tree);
549
-
550
- OPENSSL_EXPORT int X509_policy_level_node_count(X509_POLICY_LEVEL *level);
551
-
552
- OPENSSL_EXPORT X509_POLICY_NODE *X509_policy_level_get0_node(
553
- X509_POLICY_LEVEL *level, int i);
554
-
555
- OPENSSL_EXPORT const ASN1_OBJECT *X509_policy_node_get0_policy(
556
- const X509_POLICY_NODE *node);
557
-
558
- OPENSSL_EXPORT STACK_OF(POLICYQUALINFO) *X509_policy_node_get0_qualifiers(
559
- const X509_POLICY_NODE *node);
560
- OPENSSL_EXPORT const X509_POLICY_NODE *X509_policy_node_get0_parent(
561
- const X509_POLICY_NODE *node);
562
-
563
- #ifdef __cplusplus
564
- }
565
- #endif
566
- #endif
7
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10
+ * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
14
+
15
+ /* This header is provided in order to make compiling against code that expects
16
+ OpenSSL easier. */
17
+
18
+ #include "x509.h"
@@ -149,7 +149,6 @@
149
149
  #include <openssl/stack.h>
150
150
  #include <openssl/x509.h>
151
151
  #include <openssl/x509v3.h>
152
- #include <openssl/x509_vfy.h>
153
152
 
154
153
  #include "internal.h"
155
154
  #include "../crypto/internal.h"