Test the state of SSL_in_init() from the info_callback
Check that in a handshake done event SSL_in_init() is 0 (see #4574) Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6019)
This commit is contained in:
parent
4ce787b97a
commit
033c181ba6
1 changed files with 6 additions and 0 deletions
|
@ -4269,6 +4269,12 @@ static void sslapi_info_callback(const SSL *s, int where, int ret)
|
||||||
info_cb_failed = 1;
|
info_cb_failed = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check that, if we've got SSL_CB_HANDSHAKE_DONE we are not in init */
|
||||||
|
if ((where & SSL_CB_HANDSHAKE_DONE) && SSL_in_init((SSL *)s) != 0) {
|
||||||
|
info_cb_failed = 1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue