Lines Matching refs:in
11 * apply to all code found in this distribution, be it the RC4, RSA,
16 * Copyright remains Eric Young's, and as such any Copyright notices in
18 * If this package is used in a product, Eric Young should be given attribution
20 * This can be in the form of a textual message at program startup or
21 * in documentation (online or textual) provided with the package.
23 * Redistribution and use in source and binary forms, with or without
28 * 2. Redistributions in binary form must reproduce the above copyright
29 * notice, this list of conditions and the following disclaimer in the
89 int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp)
105 M_ASN1_I2D_vars(in);
107 if ((in == NULL) || ((in->cipher == NULL) && (in->cipher_id == 0)))
110 /* Note that I cheat in the following 2 assignments. I know
123 ASN1_INTEGER_set(&(a.ssl_version),in->ssl_version);
128 if (in->cipher == NULL)
129 l=in->cipher_id;
131 l=in->cipher->id;
132 if (in->ssl_version == SSL2_VERSION)
147 if (in->compress_meth)
149 cbuf = (unsigned char)in->compress_meth;
156 a.master_key.length=in->master_key_length;
158 a.master_key.data=in->master_key;
160 a.session_id.length=in->session_id_length;
162 a.session_id.data=in->session_id;
164 a.session_id_context.length=in->sid_ctx_length;
166 a.session_id_context.data=in->sid_ctx;
168 a.key_arg.length=in->key_arg_length;
170 a.key_arg.data=in->key_arg;
173 if (in->krb5_client_princ_len)
175 a.krb5_princ.length=in->krb5_client_princ_len;
177 a.krb5_princ.data=in->krb5_client_princ;
181 if (in->time != 0L)
186 ASN1_INTEGER_set(&(a.time),in->time);
189 if (in->timeout != 0L)
194 ASN1_INTEGER_set(&(a.timeout),in->timeout);
197 if (in->verify_result != X509_V_OK)
202 ASN1_INTEGER_set(&a.verify_result,in->verify_result);
206 if (in->tlsext_hostname)
208 a.tlsext_hostname.length=strlen(in->tlsext_hostname);
210 a.tlsext_hostname.data=(unsigned char *)in->tlsext_hostname;
212 if (in->tlsext_tick)
214 a.tlsext_tick.length= in->tlsext_ticklen;
216 a.tlsext_tick.data=(unsigned char *)in->tlsext_tick;
218 if (in->tlsext_tick_lifetime_hint > 0)
223 ASN1_INTEGER_set(&a.tlsext_tick_lifetime,in->tlsext_tick_lifetime_hint);
232 if (in->krb5_client_princ_len)
235 if (in->key_arg_length > 0)
237 if (in->time != 0L)
239 if (in->timeout != 0L)
241 if (in->peer != NULL)
242 M_ASN1_I2D_len_EXP_opt(in->peer,i2d_X509,3,v3);
244 if (in->verify_result != X509_V_OK)
248 if (in->tlsext_tick_lifetime_hint > 0)
250 if (in->tlsext_tick)
252 if (in->tlsext_hostname)
255 if (in->compress_meth)
267 if (in->krb5_client_princ_len)
270 if (in->key_arg_length > 0)
272 if (in->time != 0L)
274 if (in->timeout != 0L)
276 if (in->peer != NULL)
277 M_ASN1_I2D_put_EXP_opt(in->peer,i2d_X509,3,v3);
280 if (in->verify_result != X509_V_OK)
283 if (in->tlsext_hostname)
285 if (in->tlsext_tick_lifetime_hint > 0)
287 if (in->tlsext_tick)
291 if (in->compress_meth)