git: wg: Rename noise_local_private() and make it return the key status
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 8 00:32:31 PST 2024
commit 279da17ae889cb88a1be26dfaf88bc4ac1f05240
Author: Aaron LI <aly at aaronly.me>
Date: Tue Nov 28 13:26:47 2023 +0800
wg: Rename noise_local_private() and make it return the key status
- Rename noise_local_private() to noise_local_set_private() to make it
clearer.
- Update it to return the key/identity status, so the caller don't need
to make another call of noise_local_keys().
- Simplify the caller code accordingly, and update the comments.
Referred to OpenBSD.
Summary of changes:
sys/net/wg/if_wg.c | 6 +++---
sys/net/wg/wg_noise.c | 14 +++++++++++---
sys/net/wg/wg_noise.h | 2 +-
3 files changed, 15 insertions(+), 7 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/279da17ae889cb88a1be26dfaf88bc4ac1f05240
--
DragonFly BSD source repository
More information about the Commits
mailing list