Lines Matching refs:sess
616 SSL_SESSION *sess;
630 sess=s->session;
635 i=ssl_put_cipher_by_char(s,sess->cipher,p);
640 sess->key_arg_length=i;
648 if (RAND_pseudo_bytes(sess->key_arg,i) <= 0)
653 sess->master_key_length=i;
656 if (i > (int)sizeof(sess->master_key))
662 if (RAND_bytes(sess->master_key,i) <= 0)
669 if (sess->cipher->algorithm2 & SSL2_CF_8_BYTE_ENC)
671 else if (SSL_C_IS_EXPORT(sess->cipher))
684 memcpy(d,sess->master_key,(unsigned int)clear);
687 enc=ssl_rsa_public_encrypt(sess->sess_cert,enc,
688 &(sess->master_key[clear]),d,
699 sess->master_key[clear]++;
703 karg=sess->key_arg_length;
705 if (karg > (int)sizeof(sess->key_arg))
711 memcpy(d,sess->key_arg,(unsigned int)karg);