Lines Matching refs:in
109 int i2d_SSL_SESSION(const SSL_SESSION *in, unsigned char **pp) in i2d_SSL_SESSION() argument
136 if ((in == NULL) || ((in->cipher == NULL) && (in->cipher_id == 0))) in i2d_SSL_SESSION()
142 as.ssl_version = in->ssl_version; in i2d_SSL_SESSION()
144 as.kex_group = in->kex_group; in i2d_SSL_SESSION()
146 if (in->cipher == NULL) in i2d_SSL_SESSION()
147 l = in->cipher_id; in i2d_SSL_SESSION()
149 l = in->cipher->id; in i2d_SSL_SESSION()
156 if (in->compress_meth) { in i2d_SSL_SESSION()
157 comp_id_data = (unsigned char)in->compress_meth; in i2d_SSL_SESSION()
163 in->master_key, in->master_key_length); in i2d_SSL_SESSION()
166 in->session_id, in->session_id_length); in i2d_SSL_SESSION()
169 in->sid_ctx, in->sid_ctx_length); in i2d_SSL_SESSION()
171 as.time = (int64_t)ossl_time_to_time_t(in->time); in i2d_SSL_SESSION()
172 as.timeout = (int64_t)ossl_time2seconds(in->timeout); in i2d_SSL_SESSION()
173 as.verify_result = in->verify_result; in i2d_SSL_SESSION()
175 as.peer = in->peer; in i2d_SSL_SESSION()
179 if (in->peer_rpk != NULL) { in i2d_SSL_SESSION()
180 peer_rpk.length = i2d_PUBKEY(in->peer_rpk, &peer_rpk.data); in i2d_SSL_SESSION()
186 in->ext.hostname); in i2d_SSL_SESSION()
187 if (in->ext.tick) { in i2d_SSL_SESSION()
189 in->ext.tick, in->ext.ticklen); in i2d_SSL_SESSION()
191 if (in->ext.tick_lifetime_hint > 0) in i2d_SSL_SESSION()
192 as.tlsext_tick_lifetime_hint = in->ext.tick_lifetime_hint; in i2d_SSL_SESSION()
193 as.tlsext_tick_age_add = in->ext.tick_age_add; in i2d_SSL_SESSION()
196 in->psk_identity_hint); in i2d_SSL_SESSION()
197 ssl_session_sinit(&as.psk_identity, &psk_identity, in->psk_identity); in i2d_SSL_SESSION()
200 ssl_session_sinit(&as.srp_username, &srp_username, in->srp_username); in i2d_SSL_SESSION()
203 as.flags = in->flags; in i2d_SSL_SESSION()
204 as.max_early_data = in->ext.max_early_data; in i2d_SSL_SESSION()
206 if (in->ext.alpn_selected == NULL) in i2d_SSL_SESSION()
210 in->ext.alpn_selected, in->ext.alpn_selected_len); in i2d_SSL_SESSION()
212 as.tlsext_max_fragment_len_mode = in->ext.max_fragment_len_mode; in i2d_SSL_SESSION()
214 if (in->ticket_appdata == NULL) in i2d_SSL_SESSION()
218 in->ticket_appdata, in->ticket_appdata_len); in i2d_SSL_SESSION()