Hi, I'm doing session resumption on client side. For this of the previous session I did a i2d_SSL_SESSION() and in this session, I'm setting this SSL_SESSION ptr, which I obtained from d2i_SSL_SESSION(). Now the problem is when I do a d2i_SSL_SESSION() to get the SSL_SESSION ptr, the ptr->cipher is NULL, and in SSL_connect code this cipher is checked against the cipher retured from the server.. following code in ssl\s3_clnt.c.. if (s->hit && (s->session->cipher != c)) { if (!(s->options & SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG)) { al=SSL_AD_ILLEGAL_PARAMETER; SSLerr(SSL_F_SSL3_GET_SERVER_HELLO,SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED); goto f_err; } } since my s->session->cipher is NULL, my handshake is failing.. Could any one suggest me what I'm doing wrong in session resumption thing. Thanks Aslam ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]