My bad... I think this is the code (from around line 500 in s3_both.c): /* s->init_num == 4 */ if ((mt >= 0) && (*p != mt)) { al=SSL_AD_UNEXPECTED_MESSAGE; SSLerr(SSL_F_SSL3_GET_MESSAGE,SSL_R_UNEXPECTED_MESSAGE); goto f_err; } What would cause this error on a client? On Sun, Jan 18, 2015 at 3:00 PM, Jeffrey Walton <noloader at gmail.com> wrote: > In the code below from s3_both.c, what would cause the > SSLerr(SSL_F_SSL3_GET_MESSAGE,SSL_R_UNEXPECTED_MESSAGE)? > > I'm having trouble understanding the 'reuse_message', and what > satisfies the condition 'tmp.message_type != mt' (i.e., what causes > the failure). >