grpc 1.44.0.pre2-universal-darwin → 1.45.0-universal-darwin
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.
- checksums.yaml +4 -4
- data/src/ruby/ext/grpc/extconf.rb +1 -1
- data/src/ruby/ext/grpc/rb_channel.c +5 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +18 -24
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +27 -36
- data/src/ruby/ext/grpc/rb_server.c +7 -4
- data/src/ruby/lib/grpc/2.5/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.6/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.7/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/3.0/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bae8cc5ccbfd634e2854eba8cd96c54d9fa689e8b964d0055887190c4557cc6
|
4
|
+
data.tar.gz: 6525a35bc095730b56d74f8d37ba39e8c21b4e1fc41113e6ce1edeef80b77cf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2af357b9dad4b82c2db459071ffc59a879ec7df6b5334191b9eefd492ac87f6e45937b30f2b7a32deb98a48c44a66bf29c50fe874c5133152f1996f94f96b5f
|
7
|
+
data.tar.gz: '08bbf45993d91fbd3c632183cb207cebc6b593e29c847a12f220bfba1c16ed79aed0777131b74643fb5ff5cfd7e1e19e04fb1b2e3742530548d78c58b7c33452'
|
@@ -60,7 +60,7 @@ end
|
|
60
60
|
|
61
61
|
ENV['CPPFLAGS'] = '-DGPR_BACKWARDS_COMPATIBILITY_MODE'
|
62
62
|
ENV['CPPFLAGS'] += ' -DGRPC_XDS_USER_AGENT_NAME_SUFFIX="\"RUBY\"" '
|
63
|
-
ENV['CPPFLAGS'] += ' -DGRPC_XDS_USER_AGENT_VERSION_SUFFIX="\"1.
|
63
|
+
ENV['CPPFLAGS'] += ' -DGRPC_XDS_USER_AGENT_VERSION_SUFFIX="\"1.45.0\"" '
|
64
64
|
|
65
65
|
output_dir = File.expand_path(RbConfig::CONFIG['topdir'])
|
66
66
|
grpc_lib_dir = File.join(output_dir, 'libs', grpc_config)
|
@@ -242,7 +242,10 @@ static VALUE grpc_rb_channel_init(int argc, VALUE* argv, VALUE self) {
|
|
242
242
|
"bad creds symbol, want :this_channel_is_insecure");
|
243
243
|
return Qnil;
|
244
244
|
}
|
245
|
-
|
245
|
+
grpc_channel_credentials* insecure_creds =
|
246
|
+
grpc_insecure_credentials_create();
|
247
|
+
ch = grpc_channel_create(target_chars, insecure_creds, &args);
|
248
|
+
grpc_channel_credentials_release(insecure_creds);
|
246
249
|
} else {
|
247
250
|
wrapper->credentials = credentials;
|
248
251
|
if (grpc_rb_is_channel_credentials(credentials)) {
|
@@ -254,7 +257,7 @@ static VALUE grpc_rb_channel_init(int argc, VALUE* argv, VALUE self) {
|
|
254
257
|
"bad creds, want ChannelCredentials or XdsChannelCredentials");
|
255
258
|
return Qnil;
|
256
259
|
}
|
257
|
-
ch =
|
260
|
+
ch = grpc_channel_create(target_chars, creds, &args);
|
258
261
|
}
|
259
262
|
|
260
263
|
GPR_ASSERT(ch);
|
@@ -68,7 +68,9 @@ grpc_census_call_get_context_type grpc_census_call_get_context_import;
|
|
68
68
|
grpc_channel_get_target_type grpc_channel_get_target_import;
|
69
69
|
grpc_channel_get_info_type grpc_channel_get_info_import;
|
70
70
|
grpc_channel_reset_connect_backoff_type grpc_channel_reset_connect_backoff_import;
|
71
|
-
|
71
|
+
grpc_channel_credentials_release_type grpc_channel_credentials_release_import;
|
72
|
+
grpc_server_credentials_release_type grpc_server_credentials_release_import;
|
73
|
+
grpc_channel_create_type grpc_channel_create_import;
|
72
74
|
grpc_lame_client_channel_create_type grpc_lame_client_channel_create_import;
|
73
75
|
grpc_channel_destroy_type grpc_channel_destroy_import;
|
74
76
|
grpc_call_cancel_type grpc_call_cancel_import;
|
@@ -84,7 +86,7 @@ grpc_server_register_completion_queue_type grpc_server_register_completion_queue
|
|
84
86
|
grpc_server_config_fetcher_xds_create_type grpc_server_config_fetcher_xds_create_import;
|
85
87
|
grpc_server_config_fetcher_destroy_type grpc_server_config_fetcher_destroy_import;
|
86
88
|
grpc_server_set_config_fetcher_type grpc_server_set_config_fetcher_import;
|
87
|
-
|
89
|
+
grpc_server_add_http2_port_type grpc_server_add_http2_port_import;
|
88
90
|
grpc_server_start_type grpc_server_start_import;
|
89
91
|
grpc_server_shutdown_and_notify_type grpc_server_shutdown_and_notify_import;
|
90
92
|
grpc_server_cancel_all_calls_type grpc_server_cancel_all_calls_import;
|
@@ -109,8 +111,8 @@ grpc_channelz_get_channel_type grpc_channelz_get_channel_import;
|
|
109
111
|
grpc_channelz_get_subchannel_type grpc_channelz_get_subchannel_import;
|
110
112
|
grpc_channelz_get_socket_type grpc_channelz_get_socket_import;
|
111
113
|
grpc_authorization_policy_provider_arg_vtable_type grpc_authorization_policy_provider_arg_vtable_import;
|
112
|
-
|
113
|
-
|
114
|
+
grpc_channel_create_from_fd_type grpc_channel_create_from_fd_import;
|
115
|
+
grpc_server_add_channel_from_fd_type grpc_server_add_channel_from_fd_import;
|
114
116
|
grpc_auth_property_iterator_next_type grpc_auth_property_iterator_next_import;
|
115
117
|
grpc_auth_context_property_iterator_type grpc_auth_context_property_iterator_import;
|
116
118
|
grpc_auth_context_peer_identity_type grpc_auth_context_peer_identity_import;
|
@@ -126,7 +128,6 @@ grpc_ssl_session_cache_create_lru_type grpc_ssl_session_cache_create_lru_import;
|
|
126
128
|
grpc_ssl_session_cache_destroy_type grpc_ssl_session_cache_destroy_import;
|
127
129
|
grpc_ssl_session_cache_create_channel_arg_type grpc_ssl_session_cache_create_channel_arg_import;
|
128
130
|
grpc_call_credentials_release_type grpc_call_credentials_release_import;
|
129
|
-
grpc_channel_credentials_release_type grpc_channel_credentials_release_import;
|
130
131
|
grpc_google_default_credentials_create_type grpc_google_default_credentials_create_import;
|
131
132
|
grpc_set_ssl_roots_override_callback_type grpc_set_ssl_roots_override_callback_import;
|
132
133
|
grpc_ssl_credentials_create_type grpc_ssl_credentials_create_import;
|
@@ -144,8 +145,6 @@ grpc_sts_credentials_create_type grpc_sts_credentials_create_import;
|
|
144
145
|
grpc_auth_metadata_context_copy_type grpc_auth_metadata_context_copy_import;
|
145
146
|
grpc_auth_metadata_context_reset_type grpc_auth_metadata_context_reset_import;
|
146
147
|
grpc_metadata_credentials_create_from_plugin_type grpc_metadata_credentials_create_from_plugin_import;
|
147
|
-
grpc_secure_channel_create_type grpc_secure_channel_create_import;
|
148
|
-
grpc_server_credentials_release_type grpc_server_credentials_release_import;
|
149
148
|
grpc_ssl_server_certificate_config_create_type grpc_ssl_server_certificate_config_create_import;
|
150
149
|
grpc_ssl_server_certificate_config_destroy_type grpc_ssl_server_certificate_config_destroy_import;
|
151
150
|
grpc_ssl_server_credentials_create_type grpc_ssl_server_credentials_create_import;
|
@@ -154,7 +153,6 @@ grpc_ssl_server_credentials_create_options_using_config_type grpc_ssl_server_cre
|
|
154
153
|
grpc_ssl_server_credentials_create_options_using_config_fetcher_type grpc_ssl_server_credentials_create_options_using_config_fetcher_import;
|
155
154
|
grpc_ssl_server_credentials_options_destroy_type grpc_ssl_server_credentials_options_destroy_import;
|
156
155
|
grpc_ssl_server_credentials_create_with_options_type grpc_ssl_server_credentials_create_with_options_import;
|
157
|
-
grpc_server_add_secure_http2_port_type grpc_server_add_secure_http2_port_import;
|
158
156
|
grpc_call_set_credentials_type grpc_call_set_credentials_import;
|
159
157
|
grpc_server_credentials_set_auth_metadata_processor_type grpc_server_credentials_set_auth_metadata_processor_import;
|
160
158
|
grpc_alts_credentials_client_options_create_type grpc_alts_credentials_client_options_create_import;
|
@@ -181,11 +179,14 @@ grpc_tls_credentials_options_set_cert_request_type_type grpc_tls_credentials_opt
|
|
181
179
|
grpc_tls_credentials_options_set_crl_directory_type grpc_tls_credentials_options_set_crl_directory_import;
|
182
180
|
grpc_tls_credentials_options_set_verify_server_cert_type grpc_tls_credentials_options_set_verify_server_cert_import;
|
183
181
|
grpc_tls_credentials_options_set_check_call_host_type grpc_tls_credentials_options_set_check_call_host_import;
|
182
|
+
grpc_insecure_credentials_create_type grpc_insecure_credentials_create_import;
|
183
|
+
grpc_insecure_server_credentials_create_type grpc_insecure_server_credentials_create_import;
|
184
184
|
grpc_xds_credentials_create_type grpc_xds_credentials_create_import;
|
185
185
|
grpc_xds_server_credentials_create_type grpc_xds_server_credentials_create_import;
|
186
186
|
grpc_authorization_policy_provider_static_data_create_type grpc_authorization_policy_provider_static_data_create_import;
|
187
187
|
grpc_authorization_policy_provider_file_watcher_create_type grpc_authorization_policy_provider_file_watcher_create_import;
|
188
188
|
grpc_authorization_policy_provider_release_type grpc_authorization_policy_provider_release_import;
|
189
|
+
grpc_tls_credentials_options_set_tls_session_key_log_file_path_type grpc_tls_credentials_options_set_tls_session_key_log_file_path_import;
|
189
190
|
grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import;
|
190
191
|
grpc_raw_compressed_byte_buffer_create_type grpc_raw_compressed_byte_buffer_create_import;
|
191
192
|
grpc_byte_buffer_copy_type grpc_byte_buffer_copy_import;
|
@@ -212,7 +213,6 @@ grpc_slice_new_with_user_data_type grpc_slice_new_with_user_data_import;
|
|
212
213
|
grpc_slice_new_with_len_type grpc_slice_new_with_len_import;
|
213
214
|
grpc_slice_malloc_type grpc_slice_malloc_import;
|
214
215
|
grpc_slice_malloc_large_type grpc_slice_malloc_large_import;
|
215
|
-
grpc_slice_intern_type grpc_slice_intern_import;
|
216
216
|
grpc_slice_from_copied_string_type grpc_slice_from_copied_string_import;
|
217
217
|
grpc_slice_from_copied_buffer_type grpc_slice_from_copied_buffer_import;
|
218
218
|
grpc_slice_from_static_string_type grpc_slice_from_static_string_import;
|
@@ -223,8 +223,6 @@ grpc_slice_split_tail_type grpc_slice_split_tail_import;
|
|
223
223
|
grpc_slice_split_tail_maybe_ref_type grpc_slice_split_tail_maybe_ref_import;
|
224
224
|
grpc_slice_split_head_type grpc_slice_split_head_import;
|
225
225
|
grpc_empty_slice_type grpc_empty_slice_import;
|
226
|
-
grpc_slice_default_hash_impl_type grpc_slice_default_hash_impl_import;
|
227
|
-
grpc_slice_default_eq_impl_type grpc_slice_default_eq_impl_import;
|
228
226
|
grpc_slice_eq_type grpc_slice_eq_import;
|
229
227
|
grpc_slice_cmp_type grpc_slice_cmp_import;
|
230
228
|
grpc_slice_str_cmp_type grpc_slice_str_cmp_import;
|
@@ -232,7 +230,6 @@ grpc_slice_buf_start_eq_type grpc_slice_buf_start_eq_import;
|
|
232
230
|
grpc_slice_rchr_type grpc_slice_rchr_import;
|
233
231
|
grpc_slice_chr_type grpc_slice_chr_import;
|
234
232
|
grpc_slice_slice_type grpc_slice_slice_import;
|
235
|
-
grpc_slice_hash_type grpc_slice_hash_import;
|
236
233
|
grpc_slice_is_equivalent_type grpc_slice_is_equivalent_import;
|
237
234
|
grpc_slice_dup_type grpc_slice_dup_import;
|
238
235
|
grpc_slice_to_c_string_type grpc_slice_to_c_string_import;
|
@@ -357,7 +354,9 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
357
354
|
grpc_channel_get_target_import = (grpc_channel_get_target_type) GetProcAddress(library, "grpc_channel_get_target");
|
358
355
|
grpc_channel_get_info_import = (grpc_channel_get_info_type) GetProcAddress(library, "grpc_channel_get_info");
|
359
356
|
grpc_channel_reset_connect_backoff_import = (grpc_channel_reset_connect_backoff_type) GetProcAddress(library, "grpc_channel_reset_connect_backoff");
|
360
|
-
|
357
|
+
grpc_channel_credentials_release_import = (grpc_channel_credentials_release_type) GetProcAddress(library, "grpc_channel_credentials_release");
|
358
|
+
grpc_server_credentials_release_import = (grpc_server_credentials_release_type) GetProcAddress(library, "grpc_server_credentials_release");
|
359
|
+
grpc_channel_create_import = (grpc_channel_create_type) GetProcAddress(library, "grpc_channel_create");
|
361
360
|
grpc_lame_client_channel_create_import = (grpc_lame_client_channel_create_type) GetProcAddress(library, "grpc_lame_client_channel_create");
|
362
361
|
grpc_channel_destroy_import = (grpc_channel_destroy_type) GetProcAddress(library, "grpc_channel_destroy");
|
363
362
|
grpc_call_cancel_import = (grpc_call_cancel_type) GetProcAddress(library, "grpc_call_cancel");
|
@@ -373,7 +372,7 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
373
372
|
grpc_server_config_fetcher_xds_create_import = (grpc_server_config_fetcher_xds_create_type) GetProcAddress(library, "grpc_server_config_fetcher_xds_create");
|
374
373
|
grpc_server_config_fetcher_destroy_import = (grpc_server_config_fetcher_destroy_type) GetProcAddress(library, "grpc_server_config_fetcher_destroy");
|
375
374
|
grpc_server_set_config_fetcher_import = (grpc_server_set_config_fetcher_type) GetProcAddress(library, "grpc_server_set_config_fetcher");
|
376
|
-
|
375
|
+
grpc_server_add_http2_port_import = (grpc_server_add_http2_port_type) GetProcAddress(library, "grpc_server_add_http2_port");
|
377
376
|
grpc_server_start_import = (grpc_server_start_type) GetProcAddress(library, "grpc_server_start");
|
378
377
|
grpc_server_shutdown_and_notify_import = (grpc_server_shutdown_and_notify_type) GetProcAddress(library, "grpc_server_shutdown_and_notify");
|
379
378
|
grpc_server_cancel_all_calls_import = (grpc_server_cancel_all_calls_type) GetProcAddress(library, "grpc_server_cancel_all_calls");
|
@@ -398,8 +397,8 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
398
397
|
grpc_channelz_get_subchannel_import = (grpc_channelz_get_subchannel_type) GetProcAddress(library, "grpc_channelz_get_subchannel");
|
399
398
|
grpc_channelz_get_socket_import = (grpc_channelz_get_socket_type) GetProcAddress(library, "grpc_channelz_get_socket");
|
400
399
|
grpc_authorization_policy_provider_arg_vtable_import = (grpc_authorization_policy_provider_arg_vtable_type) GetProcAddress(library, "grpc_authorization_policy_provider_arg_vtable");
|
401
|
-
|
402
|
-
|
400
|
+
grpc_channel_create_from_fd_import = (grpc_channel_create_from_fd_type) GetProcAddress(library, "grpc_channel_create_from_fd");
|
401
|
+
grpc_server_add_channel_from_fd_import = (grpc_server_add_channel_from_fd_type) GetProcAddress(library, "grpc_server_add_channel_from_fd");
|
403
402
|
grpc_auth_property_iterator_next_import = (grpc_auth_property_iterator_next_type) GetProcAddress(library, "grpc_auth_property_iterator_next");
|
404
403
|
grpc_auth_context_property_iterator_import = (grpc_auth_context_property_iterator_type) GetProcAddress(library, "grpc_auth_context_property_iterator");
|
405
404
|
grpc_auth_context_peer_identity_import = (grpc_auth_context_peer_identity_type) GetProcAddress(library, "grpc_auth_context_peer_identity");
|
@@ -415,7 +414,6 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
415
414
|
grpc_ssl_session_cache_destroy_import = (grpc_ssl_session_cache_destroy_type) GetProcAddress(library, "grpc_ssl_session_cache_destroy");
|
416
415
|
grpc_ssl_session_cache_create_channel_arg_import = (grpc_ssl_session_cache_create_channel_arg_type) GetProcAddress(library, "grpc_ssl_session_cache_create_channel_arg");
|
417
416
|
grpc_call_credentials_release_import = (grpc_call_credentials_release_type) GetProcAddress(library, "grpc_call_credentials_release");
|
418
|
-
grpc_channel_credentials_release_import = (grpc_channel_credentials_release_type) GetProcAddress(library, "grpc_channel_credentials_release");
|
419
417
|
grpc_google_default_credentials_create_import = (grpc_google_default_credentials_create_type) GetProcAddress(library, "grpc_google_default_credentials_create");
|
420
418
|
grpc_set_ssl_roots_override_callback_import = (grpc_set_ssl_roots_override_callback_type) GetProcAddress(library, "grpc_set_ssl_roots_override_callback");
|
421
419
|
grpc_ssl_credentials_create_import = (grpc_ssl_credentials_create_type) GetProcAddress(library, "grpc_ssl_credentials_create");
|
@@ -433,8 +431,6 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
433
431
|
grpc_auth_metadata_context_copy_import = (grpc_auth_metadata_context_copy_type) GetProcAddress(library, "grpc_auth_metadata_context_copy");
|
434
432
|
grpc_auth_metadata_context_reset_import = (grpc_auth_metadata_context_reset_type) GetProcAddress(library, "grpc_auth_metadata_context_reset");
|
435
433
|
grpc_metadata_credentials_create_from_plugin_import = (grpc_metadata_credentials_create_from_plugin_type) GetProcAddress(library, "grpc_metadata_credentials_create_from_plugin");
|
436
|
-
grpc_secure_channel_create_import = (grpc_secure_channel_create_type) GetProcAddress(library, "grpc_secure_channel_create");
|
437
|
-
grpc_server_credentials_release_import = (grpc_server_credentials_release_type) GetProcAddress(library, "grpc_server_credentials_release");
|
438
434
|
grpc_ssl_server_certificate_config_create_import = (grpc_ssl_server_certificate_config_create_type) GetProcAddress(library, "grpc_ssl_server_certificate_config_create");
|
439
435
|
grpc_ssl_server_certificate_config_destroy_import = (grpc_ssl_server_certificate_config_destroy_type) GetProcAddress(library, "grpc_ssl_server_certificate_config_destroy");
|
440
436
|
grpc_ssl_server_credentials_create_import = (grpc_ssl_server_credentials_create_type) GetProcAddress(library, "grpc_ssl_server_credentials_create");
|
@@ -443,7 +439,6 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
443
439
|
grpc_ssl_server_credentials_create_options_using_config_fetcher_import = (grpc_ssl_server_credentials_create_options_using_config_fetcher_type) GetProcAddress(library, "grpc_ssl_server_credentials_create_options_using_config_fetcher");
|
444
440
|
grpc_ssl_server_credentials_options_destroy_import = (grpc_ssl_server_credentials_options_destroy_type) GetProcAddress(library, "grpc_ssl_server_credentials_options_destroy");
|
445
441
|
grpc_ssl_server_credentials_create_with_options_import = (grpc_ssl_server_credentials_create_with_options_type) GetProcAddress(library, "grpc_ssl_server_credentials_create_with_options");
|
446
|
-
grpc_server_add_secure_http2_port_import = (grpc_server_add_secure_http2_port_type) GetProcAddress(library, "grpc_server_add_secure_http2_port");
|
447
442
|
grpc_call_set_credentials_import = (grpc_call_set_credentials_type) GetProcAddress(library, "grpc_call_set_credentials");
|
448
443
|
grpc_server_credentials_set_auth_metadata_processor_import = (grpc_server_credentials_set_auth_metadata_processor_type) GetProcAddress(library, "grpc_server_credentials_set_auth_metadata_processor");
|
449
444
|
grpc_alts_credentials_client_options_create_import = (grpc_alts_credentials_client_options_create_type) GetProcAddress(library, "grpc_alts_credentials_client_options_create");
|
@@ -470,11 +465,14 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
470
465
|
grpc_tls_credentials_options_set_crl_directory_import = (grpc_tls_credentials_options_set_crl_directory_type) GetProcAddress(library, "grpc_tls_credentials_options_set_crl_directory");
|
471
466
|
grpc_tls_credentials_options_set_verify_server_cert_import = (grpc_tls_credentials_options_set_verify_server_cert_type) GetProcAddress(library, "grpc_tls_credentials_options_set_verify_server_cert");
|
472
467
|
grpc_tls_credentials_options_set_check_call_host_import = (grpc_tls_credentials_options_set_check_call_host_type) GetProcAddress(library, "grpc_tls_credentials_options_set_check_call_host");
|
468
|
+
grpc_insecure_credentials_create_import = (grpc_insecure_credentials_create_type) GetProcAddress(library, "grpc_insecure_credentials_create");
|
469
|
+
grpc_insecure_server_credentials_create_import = (grpc_insecure_server_credentials_create_type) GetProcAddress(library, "grpc_insecure_server_credentials_create");
|
473
470
|
grpc_xds_credentials_create_import = (grpc_xds_credentials_create_type) GetProcAddress(library, "grpc_xds_credentials_create");
|
474
471
|
grpc_xds_server_credentials_create_import = (grpc_xds_server_credentials_create_type) GetProcAddress(library, "grpc_xds_server_credentials_create");
|
475
472
|
grpc_authorization_policy_provider_static_data_create_import = (grpc_authorization_policy_provider_static_data_create_type) GetProcAddress(library, "grpc_authorization_policy_provider_static_data_create");
|
476
473
|
grpc_authorization_policy_provider_file_watcher_create_import = (grpc_authorization_policy_provider_file_watcher_create_type) GetProcAddress(library, "grpc_authorization_policy_provider_file_watcher_create");
|
477
474
|
grpc_authorization_policy_provider_release_import = (grpc_authorization_policy_provider_release_type) GetProcAddress(library, "grpc_authorization_policy_provider_release");
|
475
|
+
grpc_tls_credentials_options_set_tls_session_key_log_file_path_import = (grpc_tls_credentials_options_set_tls_session_key_log_file_path_type) GetProcAddress(library, "grpc_tls_credentials_options_set_tls_session_key_log_file_path");
|
478
476
|
grpc_raw_byte_buffer_create_import = (grpc_raw_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_byte_buffer_create");
|
479
477
|
grpc_raw_compressed_byte_buffer_create_import = (grpc_raw_compressed_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_compressed_byte_buffer_create");
|
480
478
|
grpc_byte_buffer_copy_import = (grpc_byte_buffer_copy_type) GetProcAddress(library, "grpc_byte_buffer_copy");
|
@@ -501,7 +499,6 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
501
499
|
grpc_slice_new_with_len_import = (grpc_slice_new_with_len_type) GetProcAddress(library, "grpc_slice_new_with_len");
|
502
500
|
grpc_slice_malloc_import = (grpc_slice_malloc_type) GetProcAddress(library, "grpc_slice_malloc");
|
503
501
|
grpc_slice_malloc_large_import = (grpc_slice_malloc_large_type) GetProcAddress(library, "grpc_slice_malloc_large");
|
504
|
-
grpc_slice_intern_import = (grpc_slice_intern_type) GetProcAddress(library, "grpc_slice_intern");
|
505
502
|
grpc_slice_from_copied_string_import = (grpc_slice_from_copied_string_type) GetProcAddress(library, "grpc_slice_from_copied_string");
|
506
503
|
grpc_slice_from_copied_buffer_import = (grpc_slice_from_copied_buffer_type) GetProcAddress(library, "grpc_slice_from_copied_buffer");
|
507
504
|
grpc_slice_from_static_string_import = (grpc_slice_from_static_string_type) GetProcAddress(library, "grpc_slice_from_static_string");
|
@@ -512,8 +509,6 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
512
509
|
grpc_slice_split_tail_maybe_ref_import = (grpc_slice_split_tail_maybe_ref_type) GetProcAddress(library, "grpc_slice_split_tail_maybe_ref");
|
513
510
|
grpc_slice_split_head_import = (grpc_slice_split_head_type) GetProcAddress(library, "grpc_slice_split_head");
|
514
511
|
grpc_empty_slice_import = (grpc_empty_slice_type) GetProcAddress(library, "grpc_empty_slice");
|
515
|
-
grpc_slice_default_hash_impl_import = (grpc_slice_default_hash_impl_type) GetProcAddress(library, "grpc_slice_default_hash_impl");
|
516
|
-
grpc_slice_default_eq_impl_import = (grpc_slice_default_eq_impl_type) GetProcAddress(library, "grpc_slice_default_eq_impl");
|
517
512
|
grpc_slice_eq_import = (grpc_slice_eq_type) GetProcAddress(library, "grpc_slice_eq");
|
518
513
|
grpc_slice_cmp_import = (grpc_slice_cmp_type) GetProcAddress(library, "grpc_slice_cmp");
|
519
514
|
grpc_slice_str_cmp_import = (grpc_slice_str_cmp_type) GetProcAddress(library, "grpc_slice_str_cmp");
|
@@ -521,7 +516,6 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
521
516
|
grpc_slice_rchr_import = (grpc_slice_rchr_type) GetProcAddress(library, "grpc_slice_rchr");
|
522
517
|
grpc_slice_chr_import = (grpc_slice_chr_type) GetProcAddress(library, "grpc_slice_chr");
|
523
518
|
grpc_slice_slice_import = (grpc_slice_slice_type) GetProcAddress(library, "grpc_slice_slice");
|
524
|
-
grpc_slice_hash_import = (grpc_slice_hash_type) GetProcAddress(library, "grpc_slice_hash");
|
525
519
|
grpc_slice_is_equivalent_import = (grpc_slice_is_equivalent_type) GetProcAddress(library, "grpc_slice_is_equivalent");
|
526
520
|
grpc_slice_dup_import = (grpc_slice_dup_type) GetProcAddress(library, "grpc_slice_dup");
|
527
521
|
grpc_slice_to_c_string_import = (grpc_slice_to_c_string_type) GetProcAddress(library, "grpc_slice_to_c_string");
|
@@ -179,9 +179,15 @@ extern grpc_channel_get_info_type grpc_channel_get_info_import;
|
|
179
179
|
typedef void(*grpc_channel_reset_connect_backoff_type)(grpc_channel* channel);
|
180
180
|
extern grpc_channel_reset_connect_backoff_type grpc_channel_reset_connect_backoff_import;
|
181
181
|
#define grpc_channel_reset_connect_backoff grpc_channel_reset_connect_backoff_import
|
182
|
-
typedef
|
183
|
-
extern
|
184
|
-
#define
|
182
|
+
typedef void(*grpc_channel_credentials_release_type)(grpc_channel_credentials* creds);
|
183
|
+
extern grpc_channel_credentials_release_type grpc_channel_credentials_release_import;
|
184
|
+
#define grpc_channel_credentials_release grpc_channel_credentials_release_import
|
185
|
+
typedef void(*grpc_server_credentials_release_type)(grpc_server_credentials* creds);
|
186
|
+
extern grpc_server_credentials_release_type grpc_server_credentials_release_import;
|
187
|
+
#define grpc_server_credentials_release grpc_server_credentials_release_import
|
188
|
+
typedef grpc_channel*(*grpc_channel_create_type)(const char* target, grpc_channel_credentials* creds, const grpc_channel_args* args);
|
189
|
+
extern grpc_channel_create_type grpc_channel_create_import;
|
190
|
+
#define grpc_channel_create grpc_channel_create_import
|
185
191
|
typedef grpc_channel*(*grpc_lame_client_channel_create_type)(const char* target, grpc_status_code error_code, const char* error_message);
|
186
192
|
extern grpc_lame_client_channel_create_type grpc_lame_client_channel_create_import;
|
187
193
|
#define grpc_lame_client_channel_create grpc_lame_client_channel_create_import
|
@@ -227,9 +233,9 @@ extern grpc_server_config_fetcher_destroy_type grpc_server_config_fetcher_destro
|
|
227
233
|
typedef void(*grpc_server_set_config_fetcher_type)(grpc_server* server, grpc_server_config_fetcher* config_fetcher);
|
228
234
|
extern grpc_server_set_config_fetcher_type grpc_server_set_config_fetcher_import;
|
229
235
|
#define grpc_server_set_config_fetcher grpc_server_set_config_fetcher_import
|
230
|
-
typedef int(*
|
231
|
-
extern
|
232
|
-
#define
|
236
|
+
typedef int(*grpc_server_add_http2_port_type)(grpc_server* server, const char* addr, grpc_server_credentials* creds);
|
237
|
+
extern grpc_server_add_http2_port_type grpc_server_add_http2_port_import;
|
238
|
+
#define grpc_server_add_http2_port grpc_server_add_http2_port_import
|
233
239
|
typedef void(*grpc_server_start_type)(grpc_server* server);
|
234
240
|
extern grpc_server_start_type grpc_server_start_import;
|
235
241
|
#define grpc_server_start grpc_server_start_import
|
@@ -302,12 +308,12 @@ extern grpc_channelz_get_socket_type grpc_channelz_get_socket_import;
|
|
302
308
|
typedef const grpc_arg_pointer_vtable*(*grpc_authorization_policy_provider_arg_vtable_type)(void);
|
303
309
|
extern grpc_authorization_policy_provider_arg_vtable_type grpc_authorization_policy_provider_arg_vtable_import;
|
304
310
|
#define grpc_authorization_policy_provider_arg_vtable grpc_authorization_policy_provider_arg_vtable_import
|
305
|
-
typedef grpc_channel*(*
|
306
|
-
extern
|
307
|
-
#define
|
308
|
-
typedef void(*
|
309
|
-
extern
|
310
|
-
#define
|
311
|
+
typedef grpc_channel*(*grpc_channel_create_from_fd_type)(const char* target, int fd, grpc_channel_credentials* creds, const grpc_channel_args* args);
|
312
|
+
extern grpc_channel_create_from_fd_type grpc_channel_create_from_fd_import;
|
313
|
+
#define grpc_channel_create_from_fd grpc_channel_create_from_fd_import
|
314
|
+
typedef void(*grpc_server_add_channel_from_fd_type)(grpc_server* server, int fd, grpc_server_credentials* creds);
|
315
|
+
extern grpc_server_add_channel_from_fd_type grpc_server_add_channel_from_fd_import;
|
316
|
+
#define grpc_server_add_channel_from_fd grpc_server_add_channel_from_fd_import
|
311
317
|
typedef const grpc_auth_property*(*grpc_auth_property_iterator_next_type)(grpc_auth_property_iterator* it);
|
312
318
|
extern grpc_auth_property_iterator_next_type grpc_auth_property_iterator_next_import;
|
313
319
|
#define grpc_auth_property_iterator_next grpc_auth_property_iterator_next_import
|
@@ -353,9 +359,6 @@ extern grpc_ssl_session_cache_create_channel_arg_type grpc_ssl_session_cache_cre
|
|
353
359
|
typedef void(*grpc_call_credentials_release_type)(grpc_call_credentials* creds);
|
354
360
|
extern grpc_call_credentials_release_type grpc_call_credentials_release_import;
|
355
361
|
#define grpc_call_credentials_release grpc_call_credentials_release_import
|
356
|
-
typedef void(*grpc_channel_credentials_release_type)(grpc_channel_credentials* creds);
|
357
|
-
extern grpc_channel_credentials_release_type grpc_channel_credentials_release_import;
|
358
|
-
#define grpc_channel_credentials_release grpc_channel_credentials_release_import
|
359
362
|
typedef grpc_channel_credentials*(*grpc_google_default_credentials_create_type)(grpc_call_credentials* call_credentials);
|
360
363
|
extern grpc_google_default_credentials_create_type grpc_google_default_credentials_create_import;
|
361
364
|
#define grpc_google_default_credentials_create grpc_google_default_credentials_create_import
|
@@ -407,12 +410,6 @@ extern grpc_auth_metadata_context_reset_type grpc_auth_metadata_context_reset_im
|
|
407
410
|
typedef grpc_call_credentials*(*grpc_metadata_credentials_create_from_plugin_type)(grpc_metadata_credentials_plugin plugin, grpc_security_level min_security_level, void* reserved);
|
408
411
|
extern grpc_metadata_credentials_create_from_plugin_type grpc_metadata_credentials_create_from_plugin_import;
|
409
412
|
#define grpc_metadata_credentials_create_from_plugin grpc_metadata_credentials_create_from_plugin_import
|
410
|
-
typedef grpc_channel*(*grpc_secure_channel_create_type)(grpc_channel_credentials* creds, const char* target, const grpc_channel_args* args, void* reserved);
|
411
|
-
extern grpc_secure_channel_create_type grpc_secure_channel_create_import;
|
412
|
-
#define grpc_secure_channel_create grpc_secure_channel_create_import
|
413
|
-
typedef void(*grpc_server_credentials_release_type)(grpc_server_credentials* creds);
|
414
|
-
extern grpc_server_credentials_release_type grpc_server_credentials_release_import;
|
415
|
-
#define grpc_server_credentials_release grpc_server_credentials_release_import
|
416
413
|
typedef grpc_ssl_server_certificate_config*(*grpc_ssl_server_certificate_config_create_type)(const char* pem_root_certs, const grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs, size_t num_key_cert_pairs);
|
417
414
|
extern grpc_ssl_server_certificate_config_create_type grpc_ssl_server_certificate_config_create_import;
|
418
415
|
#define grpc_ssl_server_certificate_config_create grpc_ssl_server_certificate_config_create_import
|
@@ -437,9 +434,6 @@ extern grpc_ssl_server_credentials_options_destroy_type grpc_ssl_server_credenti
|
|
437
434
|
typedef grpc_server_credentials*(*grpc_ssl_server_credentials_create_with_options_type)(grpc_ssl_server_credentials_options* options);
|
438
435
|
extern grpc_ssl_server_credentials_create_with_options_type grpc_ssl_server_credentials_create_with_options_import;
|
439
436
|
#define grpc_ssl_server_credentials_create_with_options grpc_ssl_server_credentials_create_with_options_import
|
440
|
-
typedef int(*grpc_server_add_secure_http2_port_type)(grpc_server* server, const char* addr, grpc_server_credentials* creds);
|
441
|
-
extern grpc_server_add_secure_http2_port_type grpc_server_add_secure_http2_port_import;
|
442
|
-
#define grpc_server_add_secure_http2_port grpc_server_add_secure_http2_port_import
|
443
437
|
typedef grpc_call_error(*grpc_call_set_credentials_type)(grpc_call* call, grpc_call_credentials* creds);
|
444
438
|
extern grpc_call_set_credentials_type grpc_call_set_credentials_import;
|
445
439
|
#define grpc_call_set_credentials grpc_call_set_credentials_import
|
@@ -518,6 +512,12 @@ extern grpc_tls_credentials_options_set_verify_server_cert_type grpc_tls_credent
|
|
518
512
|
typedef void(*grpc_tls_credentials_options_set_check_call_host_type)(grpc_tls_credentials_options* options, int check_call_host);
|
519
513
|
extern grpc_tls_credentials_options_set_check_call_host_type grpc_tls_credentials_options_set_check_call_host_import;
|
520
514
|
#define grpc_tls_credentials_options_set_check_call_host grpc_tls_credentials_options_set_check_call_host_import
|
515
|
+
typedef grpc_channel_credentials*(*grpc_insecure_credentials_create_type)();
|
516
|
+
extern grpc_insecure_credentials_create_type grpc_insecure_credentials_create_import;
|
517
|
+
#define grpc_insecure_credentials_create grpc_insecure_credentials_create_import
|
518
|
+
typedef grpc_server_credentials*(*grpc_insecure_server_credentials_create_type)();
|
519
|
+
extern grpc_insecure_server_credentials_create_type grpc_insecure_server_credentials_create_import;
|
520
|
+
#define grpc_insecure_server_credentials_create grpc_insecure_server_credentials_create_import
|
521
521
|
typedef grpc_channel_credentials*(*grpc_xds_credentials_create_type)(grpc_channel_credentials* fallback_credentials);
|
522
522
|
extern grpc_xds_credentials_create_type grpc_xds_credentials_create_import;
|
523
523
|
#define grpc_xds_credentials_create grpc_xds_credentials_create_import
|
@@ -533,6 +533,9 @@ extern grpc_authorization_policy_provider_file_watcher_create_type grpc_authoriz
|
|
533
533
|
typedef void(*grpc_authorization_policy_provider_release_type)(grpc_authorization_policy_provider* provider);
|
534
534
|
extern grpc_authorization_policy_provider_release_type grpc_authorization_policy_provider_release_import;
|
535
535
|
#define grpc_authorization_policy_provider_release grpc_authorization_policy_provider_release_import
|
536
|
+
typedef void(*grpc_tls_credentials_options_set_tls_session_key_log_file_path_type)(grpc_tls_credentials_options* options, const char* path);
|
537
|
+
extern grpc_tls_credentials_options_set_tls_session_key_log_file_path_type grpc_tls_credentials_options_set_tls_session_key_log_file_path_import;
|
538
|
+
#define grpc_tls_credentials_options_set_tls_session_key_log_file_path grpc_tls_credentials_options_set_tls_session_key_log_file_path_import
|
536
539
|
typedef grpc_byte_buffer*(*grpc_raw_byte_buffer_create_type)(grpc_slice* slices, size_t nslices);
|
537
540
|
extern grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import;
|
538
541
|
#define grpc_raw_byte_buffer_create grpc_raw_byte_buffer_create_import
|
@@ -611,9 +614,6 @@ extern grpc_slice_malloc_type grpc_slice_malloc_import;
|
|
611
614
|
typedef grpc_slice(*grpc_slice_malloc_large_type)(size_t length);
|
612
615
|
extern grpc_slice_malloc_large_type grpc_slice_malloc_large_import;
|
613
616
|
#define grpc_slice_malloc_large grpc_slice_malloc_large_import
|
614
|
-
typedef grpc_slice(*grpc_slice_intern_type)(grpc_slice slice);
|
615
|
-
extern grpc_slice_intern_type grpc_slice_intern_import;
|
616
|
-
#define grpc_slice_intern grpc_slice_intern_import
|
617
617
|
typedef grpc_slice(*grpc_slice_from_copied_string_type)(const char* source);
|
618
618
|
extern grpc_slice_from_copied_string_type grpc_slice_from_copied_string_import;
|
619
619
|
#define grpc_slice_from_copied_string grpc_slice_from_copied_string_import
|
@@ -644,12 +644,6 @@ extern grpc_slice_split_head_type grpc_slice_split_head_import;
|
|
644
644
|
typedef grpc_slice(*grpc_empty_slice_type)(void);
|
645
645
|
extern grpc_empty_slice_type grpc_empty_slice_import;
|
646
646
|
#define grpc_empty_slice grpc_empty_slice_import
|
647
|
-
typedef uint32_t(*grpc_slice_default_hash_impl_type)(grpc_slice s);
|
648
|
-
extern grpc_slice_default_hash_impl_type grpc_slice_default_hash_impl_import;
|
649
|
-
#define grpc_slice_default_hash_impl grpc_slice_default_hash_impl_import
|
650
|
-
typedef int(*grpc_slice_default_eq_impl_type)(grpc_slice a, grpc_slice b);
|
651
|
-
extern grpc_slice_default_eq_impl_type grpc_slice_default_eq_impl_import;
|
652
|
-
#define grpc_slice_default_eq_impl grpc_slice_default_eq_impl_import
|
653
647
|
typedef int(*grpc_slice_eq_type)(grpc_slice a, grpc_slice b);
|
654
648
|
extern grpc_slice_eq_type grpc_slice_eq_import;
|
655
649
|
#define grpc_slice_eq grpc_slice_eq_import
|
@@ -671,9 +665,6 @@ extern grpc_slice_chr_type grpc_slice_chr_import;
|
|
671
665
|
typedef int(*grpc_slice_slice_type)(grpc_slice haystack, grpc_slice needle);
|
672
666
|
extern grpc_slice_slice_type grpc_slice_slice_import;
|
673
667
|
#define grpc_slice_slice grpc_slice_slice_import
|
674
|
-
typedef uint32_t(*grpc_slice_hash_type)(grpc_slice s);
|
675
|
-
extern grpc_slice_hash_type grpc_slice_hash_import;
|
676
|
-
#define grpc_slice_hash grpc_slice_hash_import
|
677
668
|
typedef int(*grpc_slice_is_equivalent_type)(grpc_slice a, grpc_slice b);
|
678
669
|
extern grpc_slice_is_equivalent_type grpc_slice_is_equivalent_import;
|
679
670
|
#define grpc_slice_is_equivalent grpc_slice_is_equivalent_import
|
@@ -320,8 +320,11 @@ static VALUE grpc_rb_server_add_http2_port(VALUE self, VALUE port,
|
|
320
320
|
rb_raise(rb_eTypeError, "bad creds symbol, want :this_port_is_insecure");
|
321
321
|
return Qnil;
|
322
322
|
}
|
323
|
-
|
324
|
-
|
323
|
+
grpc_server_credentials* insecure_creds =
|
324
|
+
grpc_insecure_server_credentials_create();
|
325
|
+
recvd_port = grpc_server_add_http2_port(s->wrapped, StringValueCStr(port),
|
326
|
+
insecure_creds);
|
327
|
+
grpc_server_credentials_release(insecure_creds);
|
325
328
|
if (recvd_port == 0) {
|
326
329
|
rb_raise(rb_eRuntimeError,
|
327
330
|
"could not add port %s to server, not sure why",
|
@@ -340,8 +343,8 @@ static VALUE grpc_rb_server_add_http2_port(VALUE self, VALUE port,
|
|
340
343
|
"failed to create server because credentials parameter has an "
|
341
344
|
"invalid type, want ServerCredentials or XdsServerCredentials");
|
342
345
|
}
|
343
|
-
recvd_port =
|
344
|
-
s->wrapped, StringValueCStr(port), creds);
|
346
|
+
recvd_port =
|
347
|
+
grpc_server_add_http2_port(s->wrapped, StringValueCStr(port), creds);
|
345
348
|
if (recvd_port == 0) {
|
346
349
|
rb_raise(rb_eRuntimeError,
|
347
350
|
"could not add secure port %s to server, not sure why",
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.45.0
|
5
5
|
platform: universal-darwin
|
6
6
|
authors:
|
7
7
|
- gRPC Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: src/ruby/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -349,11 +349,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
349
349
|
version: 3.1.dev
|
350
350
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
351
351
|
requirements:
|
352
|
-
- - "
|
352
|
+
- - ">="
|
353
353
|
- !ruby/object:Gem::Version
|
354
|
-
version:
|
354
|
+
version: '0'
|
355
355
|
requirements: []
|
356
|
-
rubygems_version: 3.3.
|
356
|
+
rubygems_version: 3.3.9
|
357
357
|
signing_key:
|
358
358
|
specification_version: 4
|
359
359
|
summary: GRPC system in Ruby
|