diff options
author | jsing <> | 2022-01-11 18:39:28 +0000 |
---|---|---|
committer | jsing <> | 2022-01-11 18:39:28 +0000 |
commit | 3c4c9d25a49a9af8367d4e68d7f0a97edc8b03b8 (patch) | |
tree | cb972e9546005dce58d8452883b2902095510a57 /src/lib/libssl/ssl_lib.c | |
parent | d4ce9c2bac946bbdc71968607877005d28948186 (diff) | |
download | openbsd-3c4c9d25a49a9af8367d4e68d7f0a97edc8b03b8.tar.gz openbsd-3c4c9d25a49a9af8367d4e68d7f0a97edc8b03b8.tar.bz2 openbsd-3c4c9d25a49a9af8367d4e68d7f0a97edc8b03b8.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_lib.c')
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index bfa312207d..a90490ff55 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_lib.c,v 1.284 2022/01/09 15:53:52 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.285 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 | * |
@@ -870,7 +870,7 @@ SSL_get_peer_certificate(const SSL *s) | |||
870 | if ((s == NULL) || (s->session == NULL)) | 870 | if ((s == NULL) || (s->session == NULL)) |
871 | r = NULL; | 871 | r = NULL; |
872 | else | 872 | else |
873 | r = s->session->peer; | 873 | r = s->session->peer_cert; |
874 | 874 | ||
875 | if (r == NULL) | 875 | if (r == NULL) |
876 | return (r); | 876 | return (r); |