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>
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user