Lines Matching refs:psksess
784 SSL_SESSION *psksess = NULL; in tls_construct_ctos_early_data() local
793 && (!s->psk_use_session_cb(ussl, handmd, &id, &idlen, &psksess) in tls_construct_ctos_early_data()
794 || (psksess != NULL in tls_construct_ctos_early_data()
795 && psksess->ssl_version != TLS1_3_VERSION))) { in tls_construct_ctos_early_data()
796 SSL_SESSION_free(psksess); in tls_construct_ctos_early_data()
802 if (psksess == NULL && s->psk_client_callback != NULL) { in tls_construct_ctos_early_data()
836 psksess = SSL_SESSION_new(); in tls_construct_ctos_early_data()
837 if (psksess == NULL in tls_construct_ctos_early_data()
838 || !SSL_SESSION_set1_master_key(psksess, psk, psklen) in tls_construct_ctos_early_data()
839 || !SSL_SESSION_set_cipher(psksess, cipher) in tls_construct_ctos_early_data()
840 || !SSL_SESSION_set_protocol_version(psksess, TLS1_3_VERSION)) { in tls_construct_ctos_early_data()
851 s->psksession = psksess; in tls_construct_ctos_early_data()
852 if (psksess != NULL) { in tls_construct_ctos_early_data()
865 && (psksess == NULL || psksess->ext.max_early_data == 0))) { in tls_construct_ctos_early_data()
869 edsess = s->session->ext.max_early_data != 0 ? s->session : psksess; in tls_construct_ctos_early_data()