mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
Inline function tls_get_peer_info
All other places in our code also directly access peer_info and this function does not contribute to code clarity. Signed-off-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20201023113431.26691-1-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21217.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
bbcada8abb
commit
0d5aab889b
2 changed files with 1 additions and 9 deletions
|
|
@ -3993,7 +3993,7 @@ management_get_peer_info(void *arg, const unsigned long cid)
|
|||
|
||||
if (mi)
|
||||
{
|
||||
ret = tls_get_peer_info(mi->context.c2.tls_multi);
|
||||
ret = mi->context.c2.tls_multi->peer_info;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
|
|
@ -499,14 +499,6 @@ bool tls_session_update_crypto_params(struct tls_session *session,
|
|||
struct frame *frame,
|
||||
struct frame *frame_fragment);
|
||||
|
||||
#ifdef MANAGEMENT_DEF_AUTH
|
||||
static inline char *
|
||||
tls_get_peer_info(const struct tls_multi *multi)
|
||||
{
|
||||
return multi->peer_info;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* inline functions
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue