Lines Matching refs:dest
108 SSL_SESSION *dest;
110 dest = OPENSSL_malloc(sizeof(*dest));
111 if (dest == NULL) {
114 memcpy(dest, src, sizeof(*dest));
118 * the case of an error whilst halfway through constructing dest
121 dest->psk_identity_hint = NULL;
122 dest->psk_identity = NULL;
124 dest->ext.hostname = NULL;
125 dest->ext.tick = NULL;
126 dest->ext.alpn_selected = NULL;
128 dest->srp_username = NULL;
130 dest->peer_chain = NULL;
131 dest->peer = NULL;
132 dest->ticket_appdata = NULL;
133 memset(&dest->ex_data, 0, sizeof(dest->ex_data));
136 dest->prev = NULL;
137 dest->next = NULL;
139 dest->references = 1;
141 dest->lock = CRYPTO_THREAD_lock_new();
142 if (dest->lock == NULL)
145 if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_SESSION, dest, &dest->ex_data))
151 dest->peer = src->peer;
155 dest->peer_chain = X509_chain_up_ref(src->peer_chain);
156 if (dest->peer_chain == NULL)
161 dest->psk_identity_hint = OPENSSL_strdup(src->psk_identity_hint);
162 if (dest->psk_identity_hint == NULL) {
167 dest->psk_identity = OPENSSL_strdup(src->psk_identity);
168 if (dest->psk_identity == NULL) {
175 &dest->ex_data, &src->ex_data)) {
180 dest->ext.hostname = OPENSSL_strdup(src->ext.hostname);
181 if (dest->ext.hostname == NULL) {
187 dest->ext.tick =
189 if (dest->ext.tick == NULL)
192 dest->ext.tick_lifetime_hint = 0;
193 dest->ext.ticklen = 0;
197 dest->ext.alpn_selected = OPENSSL_memdup(src->ext.alpn_selected,
199 if (dest->ext.alpn_selected == NULL)
205 dest->srp_username = OPENSSL_strdup(src->srp_username);
206 if (dest->srp_username == NULL) {
213 dest->ticket_appdata =
215 if (dest->ticket_appdata == NULL)
219 return dest;
222 SSL_SESSION_free(dest);