• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/ssl/

Lines Matching refs:session

219 			if (!s->hit) /* new session */
292 /* If we want to cache session-ids in the client
293 * and we successfully add the session-id to the
295 * 26/11/96 - eay - only add if not a re-used session.
420 memset(s->session->session_id,0,
422 s->session->session_id_length=0;
427 * client session but others are already reusing it.
428 * If this was a new 'blank' session ID, the session-id
430 if (s->session->session_id_length > 0)
460 &s->session->ciphers);
508 s->session->cipher=sk_SSL_CIPHER_value(prio,i);
511 if (s->session->peer != NULL) /* can't happen*/
518 s->session->peer = s->session->sess_cert->peer_key->x509;
520 CRYPTO_add(&s->session->peer->references, 1, CRYPTO_LOCK_X509);
523 if (s->session->sess_cert == NULL
524 || s->session->peer != s->session->sess_cert->peer_key->x509)
553 if ((s->session == NULL) ||
554 (s->session->ssl_version != s->version))
562 /* else use the pre-loaded session */
581 if ((s->session->session_id_length > 0) &&
582 (s->session->session_id_length <=
585 i=s->session->session_id_length;
586 s2n(i,p); /* session id length */
587 memcpy(d,s->session->session_id,(unsigned int)i);
624 if (!ssl_cipher_get_evp(s->session,&c,&md,NULL))
630 sess=s->session;
758 * the session if it does not have one */
866 n=i2d_X509(s->session->sess_cert->peer_key->x509,&p);
995 if (!s->hit) /* new session */
997 /* new session-id */
1001 s->session->session_id_length=SSL2_SSL_SESSION_ID_LENGTH;
1002 memcpy(s->session->session_id,p+1,SSL2_SSL_SESSION_ID_LENGTH);
1008 if ((s->session->session_id_length > sizeof s->session->session_id)
1009 || (0 != memcmp(buf + 1, s->session->session_id,
1010 (unsigned int)s->session->session_id_length)))
1053 s->session->verify_result = s->verify_result;
1055 /* server's cert for this session */
1062 if (s->session->sess_cert) ssl_sess_cert_free(s->session->sess_cert);
1063 s->session->sess_cert=sc;