summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kaduk <bkaduk@akamai.com>2021-01-27 12:19:08 -0800
committerBenjamin Kaduk <bkaduk@akamai.com>2021-02-09 22:15:18 -0800
commitee833fe9c325ecacc15b1f4e6c931f69aac0664e (patch)
treed5d548fc3021b159618dbda72c43a4c2982fc888
parentb5aff22ac90623afeb0c74b36096f85eff5bc2b9 (diff)
downloadopenssl-new-ee833fe9c325ecacc15b1f4e6c931f69aac0664e.tar.gz
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) (cherry picked from commit 3bc0b621a7baf1a11bc5cad69a287ad093674d68)
-rw-r--r--ssl/ssl_local.h1
-rw-r--r--ssl/statem/statem_clnt.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h
index 8ddbde7729..3f02751dde 100644
--- a/ssl/ssl_local.h
+++ b/ssl/ssl_local.h
@@ -537,7 +537,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;
/*
diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c
index 3420ce65c7..d68cd1f9d7 100644
--- a/ssl/statem/statem_clnt.c
+++ b/ssl/statem/statem_clnt.c
@@ -1960,7 +1960,6 @@ MSG_PROCESS_RETURN tls_process_server_certificate(SSL *s, PACKET *pkt)
goto err;
}
}
- s->session->peer_type = certidx;
X509_free(s->session->peer);
X509_up_ref(x);