Remove unused 'peer_type' from SSL_SESSION

This field has not been used since #3858 was merged in 2017 when we
moved to a table-based lookup for certificate type properties instead of
an index-based one.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/13991)
This commit is contained in:
Benjamin Kaduk 2021-01-27 12:19:08 -08:00
parent af53092c2b
commit 3bc0b621a7
2 changed files with 0 additions and 2 deletions

View File

@ -585,7 +585,6 @@ struct ssl_session_st {
int not_resumable;
/* This is the cert and type for the other end. */
X509 *peer;
int peer_type;
/* Certificate chain peer sent. */
STACK_OF(X509) *peer_chain;
/*

View File

@ -1916,7 +1916,6 @@ WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst)
return WORK_ERROR;
}
}
s->session->peer_type = certidx;
X509_free(s->session->peer);
X509_up_ref(x);