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_lib.c | |
parent | 5e41ba031edd91bfbac6a614664f83b22fb48207 (diff) | |
download | openssl-23a635c0ec895f9876d4d7633e7e2923b5bbfc17.tar.gz |
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_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 0aef51f361..cb303c419d 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -215,8 +215,6 @@ int SSL_clear(SSL *s) return 0; } - s->type = 0; - statem_clear(s); s->version = s->method->version; @@ -2469,7 +2467,6 @@ SSL *SSL_dup(SSL *s) return (NULL); ret->version = s->version; - ret->type = s->type; ret->method = s->method; if (s->session != NULL) { |