Home
last modified time | relevance | path

Searched refs:ticket_keys (Results 1 – 9 of 9) sorted by relevance

/third_party/nghttp2/src/
Dshrpx_worker_process.cc226 auto ticket_keys = std::make_shared<TicketKeys>(); in renew_ticket_key_cb() local
240 auto &new_keys = ticket_keys->keys; in renew_ticket_key_cb()
253 ticket_keys->keys.resize(1); in renew_ticket_key_cb()
256 auto &new_key = ticket_keys->keys[0]; in renew_ticket_key_cb()
269 assert(ticket_keys->keys.size() >= 1); in renew_ticket_key_cb()
271 << util::format_hex(ticket_keys->keys[0].data.name); in renew_ticket_key_cb()
272 for (size_t i = 1; i < ticket_keys->keys.size(); ++i) { in renew_ticket_key_cb()
273 auto &key = ticket_keys->keys[i]; in renew_ticket_key_cb()
278 conn_handler->set_ticket_keys(ticket_keys); in renew_ticket_key_cb()
279 conn_handler->set_ticket_keys_to_worker(ticket_keys); in renew_ticket_key_cb()
[all …]
Dshrpx_config_test.cc177 auto ticket_keys = read_tls_ticket_key_file( in test_shrpx_config_read_tls_ticket_key_file() local
181 CU_ASSERT(ticket_keys.get() != nullptr); in test_shrpx_config_read_tls_ticket_key_file()
182 CU_ASSERT(2 == ticket_keys->keys.size()); in test_shrpx_config_read_tls_ticket_key_file()
183 auto key = &ticket_keys->keys[0]; in test_shrpx_config_read_tls_ticket_key_file()
193 key = &ticket_keys->keys[1]; in test_shrpx_config_read_tls_ticket_key_file()
222 auto ticket_keys = read_tls_ticket_key_file( in test_shrpx_config_read_tls_ticket_key_file_aes_256() local
226 CU_ASSERT(ticket_keys.get() != nullptr); in test_shrpx_config_read_tls_ticket_key_file_aes_256()
227 CU_ASSERT(2 == ticket_keys->keys.size()); in test_shrpx_config_read_tls_ticket_key_file_aes_256()
228 auto key = &ticket_keys->keys[0]; in test_shrpx_config_read_tls_ticket_key_file_aes_256()
238 key = &ticket_keys->keys[1]; in test_shrpx_config_read_tls_ticket_key_file_aes_256()
Dshrpx_connection_handler.cc193 const std::shared_ptr<TicketKeys> &ticket_keys) { in set_ticket_keys_to_worker() argument
195 worker->set_ticket_keys(ticket_keys); in set_ticket_keys_to_worker()
590 std::shared_ptr<TicketKeys> ticket_keys) { in set_ticket_keys() argument
591 ticket_keys_ = std::move(ticket_keys); in set_ticket_keys()
895 const std::shared_ptr<TicketKeys> &ticket_keys, ev_timer *w) { in on_tls_ticket_key_get_success() argument
903 if (!ticket_keys || ticket_keys->keys.empty()) { in on_tls_ticket_key_get_success()
913 << util::format_hex(ticket_keys->keys[0].data.name); in on_tls_ticket_key_get_success()
914 for (size_t i = 1; i < ticket_keys->keys.size(); ++i) { in on_tls_ticket_key_get_success()
915 auto &key = ticket_keys->keys[i]; in on_tls_ticket_key_get_success()
920 set_ticket_keys(ticket_keys); in on_tls_ticket_key_get_success()
[all …]
Dshrpx_connection_handler.h147 set_ticket_keys_to_worker(const std::shared_ptr<TicketKeys> &ticket_keys);
149 void set_ticket_keys(std::shared_ptr<TicketKeys> ticket_keys);
186 on_tls_ticket_key_get_success(const std::shared_ptr<TicketKeys> &ticket_keys,
Dshrpx_worker.h301 std::shared_ptr<TicketKeys> ticket_keys; member
320 const std::shared_ptr<TicketKeys> &ticket_keys,
337 void set_ticket_keys(std::shared_ptr<TicketKeys> ticket_keys);
Dshrpx_worker.cc156 const std::shared_ptr<TicketKeys> &ticket_keys, in Worker() argument
179 ticket_keys_(ticket_keys),
592 void Worker::set_ticket_keys(std::shared_ptr<TicketKeys> ticket_keys) { in set_ticket_keys() argument
595 std::atomic_store_explicit(&ticket_keys_, std::move(ticket_keys), in set_ticket_keys()
599 ticket_keys_ = std::move(ticket_keys); in set_ticket_keys()
Dshrpx_tls.cc546 auto ticket_keys = worker->get_ticket_keys(); in ticket_key_cb() local
548 if (!ticket_keys) { in ticket_key_cb()
553 auto &keys = ticket_keys->keys; in ticket_key_cb()
Dshrpx_config.cc164 auto ticket_keys = std::make_unique<TicketKeys>(); in read_tls_ticket_key_file() local
165 auto &keys = ticket_keys->keys; in read_tls_ticket_key_file()
230 return ticket_keys; in read_tls_ticket_key_file()
/third_party/openssl/test/helpers/
Dhandshake.c493 unsigned char *ticket_keys; in configure_handshake_ctx() local
661 if (!TEST_ptr(ticket_keys = OPENSSL_zalloc(ticket_key_len)) in configure_handshake_ctx()
663 ticket_keys, in configure_handshake_ctx()
665 OPENSSL_free(ticket_keys); in configure_handshake_ctx()
668 OPENSSL_free(ticket_keys); in configure_handshake_ctx()