Skip to content

Commit

Permalink
Remove unused 'peer_type' from SSL_SESSION
Browse files Browse the repository at this point in the history
This field has not been used since openssl#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 openssl#13991)
  • Loading branch information
kaduk committed Feb 10, 2021
1 parent af53092 commit 3bc0b62
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion ssl/ssl_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/*
Expand Down
1 change: 0 additions & 1 deletion ssl/statem/statem_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3bc0b62

Please sign in to comment.