diff options
| author | jsing <> | 2022-01-11 18:39:28 +0000 |
|---|---|---|
| committer | jsing <> | 2022-01-11 18:39:28 +0000 |
| commit | 63cfd45b8cd72aee6552ab5469a2864756a42e9a (patch) | |
| tree | cb972e9546005dce58d8452883b2902095510a57 /src/lib/libssl/ssl_sess.c | |
| parent | 085b1f8d013a9a60b98b92e6dc421d666ad08819 (diff) | |
| download | openbsd-63cfd45b8cd72aee6552ab5469a2864756a42e9a.tar.gz openbsd-63cfd45b8cd72aee6552ab5469a2864756a42e9a.tar.bz2 openbsd-63cfd45b8cd72aee6552ab5469a2864756a42e9a.zip | |
Rename 'peer' to 'peer_cert' in SSL_SESSION.
The 'peer' member of SSL_SESSION is the leaf/end-entity certificate
provided by our peer. Rename it since 'peer' on its own is unhelpful.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_sess.c')
| -rw-r--r-- | src/lib/libssl/ssl_sess.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_sess.c b/src/lib/libssl/ssl_sess.c index 8d0f0b928c..a49076be74 100644 --- a/src/lib/libssl/ssl_sess.c +++ b/src/lib/libssl/ssl_sess.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_sess.c,v 1.107 2022/01/08 12:59:59 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_sess.c,v 1.108 2022/01/11 18:39:28 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -766,7 +766,7 @@ SSL_SESSION_free(SSL_SESSION *ss) | |||
| 766 | for (i = 0; i < SSL_PKEY_NUM; i++) | 766 | for (i = 0; i < SSL_PKEY_NUM; i++) |
| 767 | X509_free(ss->peer_pkeys[i].x509); | 767 | X509_free(ss->peer_pkeys[i].x509); |
| 768 | 768 | ||
| 769 | X509_free(ss->peer); | 769 | X509_free(ss->peer_cert); |
| 770 | 770 | ||
| 771 | sk_SSL_CIPHER_free(ss->ciphers); | 771 | sk_SSL_CIPHER_free(ss->ciphers); |
| 772 | 772 | ||
| @@ -881,7 +881,7 @@ SSL_SESSION_get0_cipher(const SSL_SESSION *s) | |||
| 881 | X509 * | 881 | X509 * |
| 882 | SSL_SESSION_get0_peer(SSL_SESSION *s) | 882 | SSL_SESSION_get0_peer(SSL_SESSION *s) |
| 883 | { | 883 | { |
| 884 | return s->peer; | 884 | return s->peer_cert; |
| 885 | } | 885 | } |
| 886 | 886 | ||
| 887 | int | 887 | int |
