Lines Matching refs:next
171 dest->next = NULL; in ssl_session_dup_intern()
1267 if ((s->next == NULL) || (s->prev == NULL)) in SSL_SESSION_list_remove()
1270 if (s->next == (SSL_SESSION *)&(ctx->session_cache_tail)) { in SSL_SESSION_list_remove()
1278 s->prev->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_remove()
1283 ctx->session_cache_head = s->next; 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()
1297 SSL_SESSION *next; in SSL_SESSION_list_add() local
1299 if ((s->next != NULL) && (s->prev != NULL)) in SSL_SESSION_list_add()
1306 s->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_add()
1313 s->next = ctx->session_cache_head; in SSL_SESSION_list_add()
1314 s->next->prev = s; in SSL_SESSION_list_add()
1320 s->prev->next = s; in SSL_SESSION_list_add()
1321 s->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_add()
1328 next = ctx->session_cache_head->next; in SSL_SESSION_list_add()
1329 while (next != (SSL_SESSION*)&(ctx->session_cache_tail)) { in SSL_SESSION_list_add()
1330 if (timeoutcmp(s, next) >= 0) { in SSL_SESSION_list_add()
1331 s->next = next; 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()
1337 next = next->next; in SSL_SESSION_list_add()