diff options
author | Matt Caswell <matt@openssl.org> | 2015-09-10 09:19:53 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-10-30 08:38:18 +0000 |
commit | 23a635c0ec895f9876d4d7633e7e2923b5bbfc17 (patch) | |
tree | faf3ec2a456cf4993a7ba6bddca3ce0d7d7a607a /ssl/ssl_locl.h | |
parent | 5e41ba031edd91bfbac6a614664f83b22fb48207 (diff) |
Remove the type variable
The SSL structure contained a "type" variable that was set to either
SSL_ST_ACCEPT or SSL_ST_CONNECT depending on whether we are the server or
the client. This duplicates the capability of the "server" variable and was
actually rarely used.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/ssl_locl.h')
-rw-r--r-- | ssl/ssl_locl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index aebd3af8dd..e7d28622c0 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -1050,8 +1050,7 @@ struct ssl_st { * DTLS1_VERSION) */ int version; - /* SSL_ST_CONNECT or SSL_ST_ACCEPT */ - int type; + /* SSLv3 */ const SSL_METHOD *method; /* @@ -1080,7 +1079,7 @@ struct ssl_st { * handshake_func is == 0 until then, we use this test instead of an * "init" member. */ - /* are we the server side? - mostly used by SSL_clear */ + /* are we the server side? */ int server; /* * Generate a new session or reuse an old one. |