Lines Matching defs:in

10  * apply to all code found in this distribution, be it the RC4, RSA,
15 * Copyright remains Eric Young's, and as such any Copyright notices in
17 * If this package is used in a product, Eric Young should be given attribution
19 * This can be in the form of a textual message at program startup or
20 * in documentation (online or textual) provided with the package.
22 * Redistribution and use in source and binary forms, with or without
27 * 2. Redistributions in binary form must reproduce the above copyright
28 * notice, this list of conditions and the following disclaimer in the
68 * No patent licenses or other rights except those expressly stated in
103 * timeout [2] INTEGER OPTIONAL, -- in seconds
158 static int SSL_SESSION_to_bytes_full(SSL_SESSION *in, uint8_t **out_data,
162 if (in == NULL || in->cipher == NULL) {
172 !CBB_add_asn1_uint64(&session, in->ssl_version) ||
174 !CBB_add_u16(&child, (uint16_t)(in->cipher->id & 0xffff)) ||
177 !CBB_add_bytes(&child, in->session_id,
178 for_ticket ? 0 : in->session_id_length) ||
180 !CBB_add_bytes(&child, in->master_key, in->master_key_length)) {
185 if (in->time != 0) {
187 !CBB_add_asn1_uint64(&child, in->time)) {
193 if (in->timeout != 0) {
195 !CBB_add_asn1_uint64(&child, in->timeout)) {
203 if (in->peer && !in->peer_sha256_valid) {
205 int len = i2d_X509(in->peer, NULL);
214 if (buf != NULL && i2d_X509(in->peer, &buf) < 0) {
223 !CBB_add_bytes(&child2, in->sid_ctx, in->sid_ctx_length)) {
228 if (in->verify_result != X509_V_OK) {
230 !CBB_add_asn1_uint64(&child, in->verify_result)) {
236 if (in->tlsext_hostname) {
239 !CBB_add_bytes(&child2, (const uint8_t *)in->tlsext_hostname,
240 strlen(in->tlsext_hostname))) {
246 if (in->psk_identity) {
249 !CBB_add_bytes(&child2, (const uint8_t *)in->psk_identity,
250 strlen(in->psk_identity))) {
256 if (in->tlsext_tick_lifetime_hint > 0) {
258 !CBB_add_asn1_uint64(&child, in->tlsext_tick_lifetime_hint)) {
264 if (in->tlsext_tick) {
267 !CBB_add_bytes(&child2, in->tlsext_tick, in->tlsext_ticklen)) {
273 if (in->peer_sha256_valid) {
276 !CBB_add_bytes(&child2, in->peer_sha256, sizeof(in->peer_sha256))) {
282 if (in->original_handshake_hash_len > 0) {
285 !CBB_add_bytes(&child2, in->original_handshake_hash,
286 in->original_handshake_hash_len)) {
292 if (in->tlsext_signed_cert_timestamp_list_length > 0) {
295 !CBB_add_bytes(&child2, in->tlsext_signed_cert_timestamp_list,
296 in->tlsext_signed_cert_timestamp_list_length)) {
302 if (in->ocsp_response_length > 0) {
305 !CBB_add_bytes(&child2, in->ocsp_response, in->ocsp_response_length)) {
311 if (in->extended_master_secret) {
331 int SSL_SESSION_to_bytes(SSL_SESSION *in, uint8_t **out_data, size_t *out_len) {
332 return SSL_SESSION_to_bytes_full(in, out_data, out_len, 0);
335 int SSL_SESSION_to_bytes_for_ticket(SSL_SESSION *in, uint8_t **out_data,
337 return SSL_SESSION_to_bytes_full(in, out_data, out_len, 1);
340 int i2d_SSL_SESSION(SSL_SESSION *in, uint8_t **pp) {
344 if (!SSL_SESSION_to_bytes(in, &out, &len)) {
364 * explicitly tagged with |tag| from |cbs| and saves it in |*out|. On
393 * explicitly tagged with |tag| from |cbs| and stows it in |*out_ptr|