Lines Matching refs:prev
147 memcpy(dest, src, offsetof(SSL_SESSION, prev)); in ssl_session_dup_intern()
170 dest->prev = NULL; in ssl_session_dup_intern()
1267 if ((s->next == NULL) || (s->prev == NULL)) in SSL_SESSION_list_remove()
1272 if (s->prev == (SSL_SESSION *)&(ctx->session_cache_head)) { in SSL_SESSION_list_remove()
1277 ctx->session_cache_tail = s->prev; in SSL_SESSION_list_remove()
1278 s->prev->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_remove()
1281 if (s->prev == (SSL_SESSION *)&(ctx->session_cache_head)) { in SSL_SESSION_list_remove()
1284 s->next->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_remove()
1287 s->next->prev = s->prev; in SSL_SESSION_list_remove()
1288 s->prev->next = s->next; in SSL_SESSION_list_remove()
1291 s->prev = s->next = NULL; in SSL_SESSION_list_remove()
1299 if ((s->next != NULL) && (s->prev != NULL)) in SSL_SESSION_list_add()
1305 s->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_add()
1314 s->next->prev = s; in SSL_SESSION_list_add()
1315 s->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_add()
1319 s->prev = ctx->session_cache_tail; in SSL_SESSION_list_add()
1320 s->prev->next = s; in SSL_SESSION_list_add()
1332 s->prev = next->prev; in SSL_SESSION_list_add()
1333 next->prev->next = s; in SSL_SESSION_list_add()
1334 next->prev = s; in SSL_SESSION_list_add()