/third_party/grpc/test/core/security/ |
D | grpc_tls_credentials_options_test.cc | 37 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()
|
D | ssl_server_fuzzer.cc | 72 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()
|
D | tls_security_connector_test.cc | 42 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/ |
D | cert.cc | 37 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()
|
D | alpn.cc | 59 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/ |
D | h2_ssl_proxy.cc | 46 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()
|
D | h2_tls.cc | 163 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()
|
D | h2_ssl.cc | 154 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()
|
D | h2_ssl_cred_reload.cc | 55 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()
|
D | h2_oauth2.cc | 229 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/ |
D | verify_peer_options.cc | 58 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()
|
D | server_ssl_common.cc | 106 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()
|
D | client_ssl.cc | 244 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/ |
D | h2_ssl_session_reuse_test.cc | 52 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/ |
D | cli_credentials.cc | 131 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()
|
D | grpc_tool_test.cc | 262 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/ |
D | sequential_connectivity_test.cc | 155 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/ |
D | ssl_session_cache.cc | 127 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/ |
D | rb_call.c | 400 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/ |
D | metadata.pyx.pxi | 61 cdef tuple _metadatum(grpc_slice key_slice, grpc_slice value_slice): argument 62 cdef bytes key = _slice_bytes(key_slice)
|
D | metadata.pxd.pxi | 23 cdef tuple _metadatum(grpc_slice key_slice, grpc_slice value_slice) argument
|
/third_party/grpc/src/core/lib/security/credentials/tls/ |
D | grpc_tls_certificate_provider.cc | 316 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/ |
D | metadata.cc | 553 grpc_slice key_slice = in grpc_mdelem_from_grpc_metadata() local 558 key_slice, value_slice, in grpc_mdelem_from_grpc_metadata()
|