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.cc210 auto ticket_keys = std::make_shared<TicketKeys>(); in renew_ticket_key_cb() local
224 auto &new_keys = ticket_keys->keys; in renew_ticket_key_cb()
237 ticket_keys->keys.resize(1); in renew_ticket_key_cb()
240 auto &new_key = ticket_keys->keys[0]; in renew_ticket_key_cb()
253 assert(ticket_keys->keys.size() >= 1); in renew_ticket_key_cb()
255 << util::format_hex(ticket_keys->keys[0].data.name); in renew_ticket_key_cb()
256 for (size_t i = 1; i < ticket_keys->keys.size(); ++i) { in renew_ticket_key_cb()
257 auto &key = ticket_keys->keys[i]; in renew_ticket_key_cb()
262 conn_handler->set_ticket_keys(ticket_keys); in renew_ticket_key_cb()
263 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.cc175 const std::shared_ptr<TicketKeys> &ticket_keys) { in set_ticket_keys_to_worker() argument
177 worker->set_ticket_keys(ticket_keys); in set_ticket_keys_to_worker()
488 std::shared_ptr<TicketKeys> ticket_keys) { in set_ticket_keys() argument
489 ticket_keys_ = std::move(ticket_keys); in set_ticket_keys()
764 const std::shared_ptr<TicketKeys> &ticket_keys, ev_timer *w) { in on_tls_ticket_key_get_success() argument
772 if (!ticket_keys || ticket_keys->keys.empty()) { in on_tls_ticket_key_get_success()
782 << util::format_hex(ticket_keys->keys[0].data.name); in on_tls_ticket_key_get_success()
783 for (size_t i = 1; i < ticket_keys->keys.size(); ++i) { in on_tls_ticket_key_get_success()
784 auto &key = ticket_keys->keys[i]; in on_tls_ticket_key_get_success()
789 set_ticket_keys(ticket_keys); in on_tls_ticket_key_get_success()
[all …]
Dshrpx_connection_handler.h114 set_ticket_keys_to_worker(const std::shared_ptr<TicketKeys> &ticket_keys);
116 void set_ticket_keys(std::shared_ptr<TicketKeys> ticket_keys);
153 on_tls_ticket_key_get_success(const std::shared_ptr<TicketKeys> &ticket_keys,
Dshrpx_worker.h262 std::shared_ptr<TicketKeys> ticket_keys; member
271 const std::shared_ptr<TicketKeys> &ticket_keys,
285 void set_ticket_keys(std::shared_ptr<TicketKeys> ticket_keys);
Dshrpx_worker.cc133 const std::shared_ptr<TicketKeys> &ticket_keys, in Worker() argument
144 ticket_keys_(ticket_keys),
512 void Worker::set_ticket_keys(std::shared_ptr<TicketKeys> ticket_keys) { in set_ticket_keys() argument
515 std::atomic_store_explicit(&ticket_keys_, std::move(ticket_keys), in set_ticket_keys()
519 ticket_keys_ = std::move(ticket_keys); in set_ticket_keys()
Dshrpx_tls.cc481 auto ticket_keys = worker->get_ticket_keys(); in ticket_key_cb() local
483 if (!ticket_keys) { in ticket_key_cb()
488 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/
Dhandshake_helper.c508 unsigned char *ticket_keys; in configure_handshake_ctx() local
671 if (!TEST_ptr(ticket_keys = OPENSSL_zalloc(ticket_key_len)) in configure_handshake_ctx()
673 ticket_keys, in configure_handshake_ctx()
675 OPENSSL_free(ticket_keys); in configure_handshake_ctx()
678 OPENSSL_free(ticket_keys); in configure_handshake_ctx()