summaryrefslogtreecommitdiffstats
path: root/ssl/statem/statem.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-22 13:57:18 +0100
committerMatt Caswell <matt@openssl.org>2015-10-30 08:39:47 +0000
commit024f543c15e70acb57a80067c3b32227f87bfe5f (patch)
tree72bc8530d31b4fae449df9270f516d9637be31e3 /ssl/statem/statem.h
parent20dbe585772a18952b730b71cd6722ce62dfe88b (diff)
Move in_handshake into STATEM
The SSL variable |in_handshake| seems misplaced. It would be better to have it in the STATEM structure. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/statem/statem.h')
-rw-r--r--ssl/statem/statem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/statem/statem.h b/ssl/statem/statem.h
index 2dc603ac05..2c5184dde5 100644
--- a/ssl/statem/statem.h
+++ b/ssl/statem/statem.h
@@ -136,6 +136,9 @@ struct ossl_statem_st {
int in_init;
int read_state_first_init;
+ /* true when we are actually in SSL_accept() or SSL_connect() */
+ int in_handshake;
+
/* Should we skip the CertificateVerify message? */
unsigned int no_cert_verify;
@@ -161,6 +164,8 @@ void ossl_statem_set_renegotiate(SSL *s);
void ossl_statem_set_error(SSL *s);
int ossl_statem_in_error(const SSL *s);
void ossl_statem_set_in_init(SSL *s, int init);
+int ossl_statem_get_in_handshake(SSL *s);
+void ossl_statem_set_in_handshake(SSL *s, int inhand);
void ossl_statem_set_hello_verify_done(SSL *s);
__owur int ossl_statem_app_data_allowed(SSL *s);
#ifndef OPENSSL_NO_SCTP