Home
last modified time | relevance | path

Searched refs:key_slice (Results 1 – 23 of 23) sorted by relevance

/third_party/grpc/test/core/security/
Dgrpc_tls_credentials_options_test.cc37 grpc_slice ca_slice, cert_slice, key_slice; in SetKeyMaterials() local
43 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in SetKeyMaterials()
49 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in SetKeyMaterials()
55 grpc_slice_unref(key_slice); in SetKeyMaterials()
63 grpc_slice ca_slice, cert_slice, key_slice; in TEST() local
69 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in TEST()
75 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in TEST()
81 grpc_slice_unref(key_slice); in TEST()
Dssl_server_fuzzer.cc72 grpc_slice ca_slice, cert_slice, key_slice; in LLVMFuzzerTestOneInput() local
78 "load_file", grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in LLVMFuzzerTestOneInput()
84 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in LLVMFuzzerTestOneInput()
89 grpc_slice_unref(key_slice); in LLVMFuzzerTestOneInput()
Dtls_security_connector_test.cc42 grpc_slice ca_slice, cert_slice, key_slice; in SetKeyMaterials() local
48 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in SetKeyMaterials()
54 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in SetKeyMaterials()
60 grpc_slice_unref(key_slice); in SetKeyMaterials()
/third_party/grpc/test/core/bad_ssl/servers/
Dcert.cc37 grpc_slice cert_slice, key_slice; in main() local
46 grpc_load_file("src/core/tsi/test_creds/badserver.key", 1, &key_slice))); in main()
48 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in main()
59 grpc_slice_unref(key_slice); in main()
Dalpn.cc59 grpc_slice cert_slice, key_slice; in main() local
63 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in main()
67 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in main()
81 grpc_slice_unref(key_slice); in main()
/third_party/grpc/test/core/end2end/fixtures/
Dh2_ssl_proxy.cc46 grpc_slice cert_slice, key_slice; in create_proxy_server() local
50 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in create_proxy_server()
54 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in create_proxy_server()
59 grpc_slice_unref(key_slice); in create_proxy_server()
181 grpc_slice cert_slice, key_slice; in chttp2_init_server_simple_ssl_secure_fullstack() local
185 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in chttp2_init_server_simple_ssl_secure_fullstack()
189 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in chttp2_init_server_simple_ssl_secure_fullstack()
194 grpc_slice_unref(key_slice); in chttp2_init_server_simple_ssl_secure_fullstack()
Dh2_tls.cc163 grpc_slice ca_slice, cert_slice, key_slice; in client_cred_reload_sync() local
169 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in client_cred_reload_sync()
175 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in client_cred_reload_sync()
185 grpc_slice_unref(key_slice); in client_cred_reload_sync()
199 grpc_slice ca_slice, cert_slice, key_slice; in server_cred_reload_sync() local
205 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in server_cred_reload_sync()
211 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in server_cred_reload_sync()
225 grpc_slice_unref(key_slice); in server_cred_reload_sync()
Dh2_ssl.cc154 grpc_slice cert_slice, key_slice; in chttp2_init_server_simple_ssl_secure_fullstack() local
158 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in chttp2_init_server_simple_ssl_secure_fullstack()
162 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in chttp2_init_server_simple_ssl_secure_fullstack()
176 grpc_slice_unref(key_slice); in chttp2_init_server_simple_ssl_secure_fullstack()
Dh2_ssl_cred_reload.cc55 grpc_slice ca_slice, cert_slice, key_slice; in ssl_server_certificate_config_callback() local
61 "load_file", grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in ssl_server_certificate_config_callback()
67 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in ssl_server_certificate_config_callback()
72 grpc_slice_unref(key_slice); in ssl_server_certificate_config_callback()
Dh2_oauth2.cc229 grpc_slice cert_slice, key_slice; in chttp2_init_server_simple_ssl_secure_fullstack() local
233 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in chttp2_init_server_simple_ssl_secure_fullstack()
237 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in chttp2_init_server_simple_ssl_secure_fullstack()
254 grpc_slice_unref(key_slice); in chttp2_init_server_simple_ssl_secure_fullstack()
/third_party/grpc/test/core/handshake/
Dverify_peer_options.cc58 grpc_slice ca_slice, cert_slice, key_slice; in server_thread() local
64 grpc_load_file(SSL_KEY_PATH, 1, &key_slice))); in server_thread()
68 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in server_thread()
109 grpc_slice_unref(key_slice); in server_thread()
130 grpc_slice ca_slice, cert_slice, key_slice; in verify_peer_options_test() local
136 grpc_load_file(SSL_KEY_PATH, 1, &key_slice))); in verify_peer_options_test()
140 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in verify_peer_options_test()
196 grpc_slice_unref(key_slice); in verify_peer_options_test()
Dserver_ssl_common.cc106 grpc_slice ca_slice, cert_slice, key_slice; in server_thread() local
112 grpc_load_file(SSL_KEY_PATH, 1, &key_slice))); in server_thread()
116 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in server_thread()
158 grpc_slice_unref(key_slice); in server_thread()
Dclient_ssl.cc244 grpc_slice ca_slice, cert_slice, key_slice; in client_ssl_test() local
250 grpc_load_file(SSL_KEY_PATH, 1, &key_slice))); in client_ssl_test()
254 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in client_ssl_test()
303 grpc_slice_unref(key_slice); in client_ssl_test()
/third_party/grpc/test/core/end2end/
Dh2_ssl_session_reuse_test.cc52 grpc_slice ca_slice, cert_slice, key_slice; in server_create() local
58 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in server_create()
64 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in server_create()
78 grpc_slice_unref(key_slice); in server_create()
85 grpc_slice ca_slice, cert_slice, key_slice; in client_create() local
91 grpc_load_file(CLIENT_KEY_PATH, 1, &key_slice))); in client_create()
97 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in client_create()
124 grpc_slice_unref(key_slice); in client_create()
/third_party/grpc/test/cpp/util/
Dcli_credentials.cc131 grpc_slice key_slice = grpc_empty_slice(); in GetChannelCredentials() local
134 grpc_load_file(FLAGS_ssl_client_key.c_str(), 1, &key_slice)); in GetChannelCredentials()
136 grpc::StringFromCopiedSlice(key_slice); in GetChannelCredentials()
137 grpc_slice_unref(key_slice); in GetChannelCredentials()
Dgrpc_tool_test.cc262 grpc_slice cert_slice, key_slice; in SetUpServer() local
266 "load_file", grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in SetUpServer()
270 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in SetUpServer()
285 grpc_slice_unref(key_slice); in SetUpServer()
/third_party/grpc/test/core/surface/
Dsequential_connectivity_test.cc155 grpc_slice cert_slice, key_slice; in secure_test_add_port() local
159 grpc_load_file(SERVER_KEY_PATH, 1, &key_slice))); in secure_test_add_port()
163 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(key_slice); in secure_test_add_port()
168 grpc_slice_unref(key_slice); in secure_test_add_port()
/third_party/grpc/src/core/tsi/ssl/session_cache/
Dssl_session_cache.cc127 grpc_slice key_slice = grpc_slice_from_copied_string(key); in Put() local
128 node = new Node(key_slice, std::move(session)); in Put()
146 grpc_slice key_slice = grpc_slice_from_static_string(key); in Get() local
147 Node* node = FindLocked(key_slice); in Get()
/third_party/grpc/src/ruby/ext/grpc/
Drb_call.c400 grpc_slice key_slice; in grpc_rb_md_ary_fill_hash_cb() local
405 key_slice = grpc_slice_from_static_string(rb_id2name(SYM2ID(key))); in grpc_rb_md_ary_fill_hash_cb()
407 key_slice = in grpc_rb_md_ary_fill_hash_cb()
415 if (!grpc_header_key_is_legal(key_slice)) { in grpc_rb_md_ary_fill_hash_cb()
416 tmp_str = grpc_slice_to_c_string(key_slice); in grpc_rb_md_ary_fill_hash_cb()
432 if (!grpc_is_binary_header(key_slice) && in grpc_rb_md_ary_fill_hash_cb()
441 md_ary->metadata[md_ary->count].key = key_slice; in grpc_rb_md_ary_fill_hash_cb()
448 if (!grpc_is_binary_header(key_slice) && in grpc_rb_md_ary_fill_hash_cb()
457 md_ary->metadata[md_ary->count].key = key_slice; in grpc_rb_md_ary_fill_hash_cb()
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dmetadata.pyx.pxi61 cdef tuple _metadatum(grpc_slice key_slice, grpc_slice value_slice): argument
62 cdef bytes key = _slice_bytes(key_slice)
Dmetadata.pxd.pxi23 cdef tuple _metadatum(grpc_slice key_slice, grpc_slice value_slice) argument
/third_party/grpc/src/core/lib/security/credentials/tls/
Dgrpc_tls_certificate_provider.cc316 SliceWrapper key_slice, cert_slice; in ReadIdentityKeyCertPairFromFiles() local
318 grpc_load_file(private_key_path.c_str(), 0, &key_slice.slice); in ReadIdentityKeyCertPairFromFiles()
333 std::string private_key(StringViewFromSlice(key_slice.slice)); in ReadIdentityKeyCertPairFromFiles()
/third_party/grpc/src/core/lib/transport/
Dmetadata.cc553 grpc_slice key_slice = in grpc_mdelem_from_grpc_metadata() local
558 key_slice, value_slice, in grpc_mdelem_from_grpc_metadata()