Home
last modified time | relevance | path

Searched refs:cert_slice (Results 1 – 18 of 18) 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
41 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in SetKeyMaterials()
47 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in SetKeyMaterials()
54 grpc_slice_unref(cert_slice); in SetKeyMaterials()
63 grpc_slice ca_slice, cert_slice, key_slice; in TEST() local
67 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in TEST()
73 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in TEST()
80 grpc_slice_unref(cert_slice); in TEST()
Dssl_server_fuzzer.cc72 grpc_slice ca_slice, cert_slice, key_slice; in LLVMFuzzerTestOneInput() local
76 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in LLVMFuzzerTestOneInput()
82 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in LLVMFuzzerTestOneInput()
88 grpc_slice_unref(cert_slice); in LLVMFuzzerTestOneInput()
Dtls_security_connector_test.cc42 grpc_slice ca_slice, cert_slice, key_slice; in SetKeyMaterials() local
46 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in SetKeyMaterials()
52 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in SetKeyMaterials()
59 grpc_slice_unref(cert_slice); in SetKeyMaterials()
/third_party/grpc/test/core/handshake/
Dverify_peer_options.cc58 grpc_slice ca_slice, cert_slice, key_slice; in server_thread() local
62 grpc_load_file(SSL_CERT_PATH, 1, &cert_slice))); in server_thread()
70 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in server_thread()
108 grpc_slice_unref(cert_slice); in server_thread()
130 grpc_slice ca_slice, cert_slice, key_slice; in verify_peer_options_test() local
134 grpc_load_file(SSL_CERT_PATH, 1, &cert_slice))); in verify_peer_options_test()
142 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in verify_peer_options_test()
195 grpc_slice_unref(cert_slice); in verify_peer_options_test()
243 grpc_slice cert_slice; in main() local
245 grpc_load_file(SSL_CERT_PATH, 1, &cert_slice))); in main()
[all …]
Dserver_ssl_common.cc106 grpc_slice ca_slice, cert_slice, key_slice; in server_thread() local
110 grpc_load_file(SSL_CERT_PATH, 1, &cert_slice))); in server_thread()
118 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in server_thread()
157 grpc_slice_unref(cert_slice); in server_thread()
Dclient_ssl.cc244 grpc_slice ca_slice, cert_slice, key_slice; in client_ssl_test() local
248 grpc_load_file(SSL_CERT_PATH, 1, &cert_slice))); in client_ssl_test()
256 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in client_ssl_test()
302 grpc_slice_unref(cert_slice); in client_ssl_test()
/third_party/grpc/test/core/bad_ssl/servers/
Dcert.cc37 grpc_slice cert_slice, key_slice; in main() local
43 grpc_load_file("src/core/tsi/test_creds/badserver.pem", 1, &cert_slice))); in main()
50 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in main()
58 grpc_slice_unref(cert_slice); in main()
Dalpn.cc59 grpc_slice cert_slice, key_slice; in main() local
61 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in main()
65 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in main()
80 grpc_slice_unref(cert_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
48 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in create_proxy_server()
52 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in create_proxy_server()
58 grpc_slice_unref(cert_slice); in create_proxy_server()
181 grpc_slice cert_slice, key_slice; in chttp2_init_server_simple_ssl_secure_fullstack() local
183 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in chttp2_init_server_simple_ssl_secure_fullstack()
187 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in chttp2_init_server_simple_ssl_secure_fullstack()
193 grpc_slice_unref(cert_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
167 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in client_cred_reload_sync()
173 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in client_cred_reload_sync()
184 grpc_slice_unref(cert_slice); in client_cred_reload_sync()
199 grpc_slice ca_slice, cert_slice, key_slice; in server_cred_reload_sync() local
203 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in server_cred_reload_sync()
209 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in server_cred_reload_sync()
224 grpc_slice_unref(cert_slice); in server_cred_reload_sync()
Dh2_ssl.cc154 grpc_slice cert_slice, key_slice; in chttp2_init_server_simple_ssl_secure_fullstack() local
156 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in chttp2_init_server_simple_ssl_secure_fullstack()
160 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in chttp2_init_server_simple_ssl_secure_fullstack()
175 grpc_slice_unref(cert_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
59 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in ssl_server_certificate_config_callback()
65 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in ssl_server_certificate_config_callback()
71 grpc_slice_unref(cert_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
231 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in chttp2_init_server_simple_ssl_secure_fullstack()
235 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in chttp2_init_server_simple_ssl_secure_fullstack()
253 grpc_slice_unref(cert_slice); in chttp2_init_server_simple_ssl_secure_fullstack()
/third_party/grpc/test/core/end2end/
Dh2_ssl_session_reuse_test.cc52 grpc_slice ca_slice, cert_slice, key_slice; in server_create() local
56 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in server_create()
62 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in server_create()
77 grpc_slice_unref(cert_slice); in server_create()
85 grpc_slice ca_slice, cert_slice, key_slice; in client_create() local
89 "load_file", grpc_load_file(CLIENT_CERT_PATH, 1, &cert_slice))); in client_create()
95 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in client_create()
123 grpc_slice_unref(cert_slice); in client_create()
/third_party/grpc/test/cpp/util/
Dcli_credentials.cc122 grpc_slice cert_slice = grpc_empty_slice(); in GetChannelCredentials() local
125 grpc_load_file(FLAGS_ssl_client_cert.c_str(), 1, &cert_slice)); in GetChannelCredentials()
127 grpc::StringFromCopiedSlice(cert_slice); in GetChannelCredentials()
128 grpc_slice_unref(cert_slice); in GetChannelCredentials()
Dgrpc_tool_test.cc262 grpc_slice cert_slice, key_slice; in SetUpServer() local
264 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in SetUpServer()
268 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in SetUpServer()
284 grpc_slice_unref(cert_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
157 "load_file", grpc_load_file(SERVER_CERT_PATH, 1, &cert_slice))); in secure_test_add_port()
161 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(cert_slice); in secure_test_add_port()
167 grpc_slice_unref(cert_slice); in secure_test_add_port()
/third_party/grpc/src/core/lib/security/credentials/tls/
Dgrpc_tls_certificate_provider.cc316 SliceWrapper key_slice, cert_slice; in ReadIdentityKeyCertPairFromFiles() local
326 grpc_load_file(identity_certificate_path.c_str(), 0, &cert_slice.slice); in ReadIdentityKeyCertPairFromFiles()
334 std::string cert_chain(StringViewFromSlice(cert_slice.slice)); in ReadIdentityKeyCertPairFromFiles()