Home
last modified time | relevance | path

Searched refs:kssl_entry (Results 1 – 6 of 6) sorted by relevance

/titanic_41/usr/src/uts/common/inet/kssl/
H A Dksslioctl.c107 kssl_free_entry(kssl_entry_t *kssl_entry) in kssl_free_entry() argument
114 if (kssl_entry->ke_no_freeall) { in kssl_free_entry()
115 kmem_free(kssl_entry, sizeof (kssl_entry_t)); in kssl_free_entry()
119 if ((cert = kssl_entry->ke_server_certificate) != NULL) { in kssl_free_entry()
123 if ((privkey = kssl_entry->ke_private_key) != NULL) { in kssl_free_entry()
127 for (i = 0; i < kssl_entry->sid_cache_nentries; i++) in kssl_free_entry()
128 mutex_destroy(&(kssl_entry->sid_cache[i].se_lock)); in kssl_free_entry()
130 kmem_free(kssl_entry->sid_cache, in kssl_free_entry()
131 kssl_entry->sid_cache_nentries * sizeof (kssl_sid_ent_t)); in kssl_free_entry()
133 ASSERT(kssl_entry->ke_proxy_head == NULL); in kssl_free_entry()
[all …]
H A Dksslimpl.h125 #define KSSL_ENTRY_REFHOLD(kssl_entry) { \ argument
126 atomic_inc_32(&(kssl_entry)->ke_refcnt); \
127 ASSERT((kssl_entry)->ke_refcnt != 0); \
130 #define KSSL_ENTRY_REFRELE(kssl_entry) { \ argument
131 ASSERT((kssl_entry)->ke_refcnt != 0); \
133 if (atomic_dec_32_nv(&(kssl_entry)->ke_refcnt) == 0) { \
134 kssl_free_entry((kssl_entry)); \
H A Dksslrec.c511 ssl->kssl_entry); in kssl_handle_client_hello()
573 kssl_uncache_sid(&ssl->sid, ssl->kssl_entry); in kssl_handle_client_hello()
577 for (i = 0; i < ssl->kssl_entry->kssl_cipherSuites_nentries; i++) { in kssl_handle_client_hello()
578 suite = ssl->kssl_entry->kssl_cipherSuites[i]; in kssl_handle_client_hello()
621 if (ssl->kssl_entry->ke_fallback_head == NULL) { in kssl_handle_client_hello()
842 kssl_cache_sid(sslSessionID *sid, kssl_entry_t *kssl_entry) in kssl_cache_sid() argument
855 index %= kssl_entry->sid_cache_nentries; in kssl_cache_sid()
857 lock = &(kssl_entry->sid_cache[index].se_lock); in kssl_cache_sid()
859 kssl_entry->sid_cache[index].se_used++; in kssl_cache_sid()
860 bcopy(sid, &(kssl_entry->sid_cache[index].se_sid), sizeof (*sid)); in kssl_cache_sid()
[all …]
H A Dksslapi.c183 kssl_entry_t *kssl_entry = (kssl_entry_t *)ksslent; in kssl_find_fallback() local
185 if (kssl_entry->ke_fallback_head != NULL) in kssl_find_fallback()
186 return (kssl_entry->ke_fallback_head->fallback_bound); in kssl_find_fallback()
265 kssl_entry_t *kssl_entry = (kssl_entry_t *)ksslent; in kssl_release_ent() local
269 ASSERT(kssl_entry->ke_proxy_head != NULL); in kssl_release_ent()
271 (kssl_chain_t **)&kssl_entry->ke_proxy_head, in kssl_release_ent()
275 ASSERT(kssl_entry->ke_fallback_head != NULL); in kssl_release_ent()
277 (kssl_chain_t **)&kssl_entry->ke_fallback_head, in kssl_release_ent()
281 KSSL_ENTRY_REFRELE(kssl_entry); in kssl_release_ent()
1046 ssl->kssl_entry); in kssl_handle_any_record()
[all …]
H A Dksslproto.h283 struct kssl_entry_s *kssl_entry; member
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/kssl/ksslcfg/
H A Dksslcfg_create.c177 const char *kssl_entry, const char *pg_name, const char *flags, in add_pg_method() argument
231 strlen(kssl_entry) + 3; in add_pg_method()
239 base_command, flags, kssl_entry); in add_pg_method()
300 const char *instance_name, const char *kssl_entry, const char *command, in create_instance() argument
338 if ((add_pg_method(handle, instance, kssl_entry, "start", in create_instance()
340 (add_pg_method(handle, instance, kssl_entry, "refresh", in create_instance()
342 (add_pg_method(handle, instance, kssl_entry, "stop", in create_instance()
376 create_service(const char *instance_name, const char *kssl_entry, in create_service() argument
427 status = create_instance(handle, svc, instance_name, kssl_entry, in create_service()