aboutsummaryrefslogtreecommitdiff
path: root/libntp/authkeys.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2024-05-10 15:15:56 +0000
committerCy Schubert <cy@FreeBSD.org>2024-05-26 22:55:52 +0000
commit1f833b3fc9968c3dd7ed79ccf0525ebf16c891ad (patch)
tree85801af20e3b694584668aeb39ecec75ee71f72c /libntp/authkeys.c
parentab1f1aa8333369a83ff284848fc3fc2e52d5f29f (diff)
Diffstat (limited to 'libntp/authkeys.c')
-rw-r--r--libntp/authkeys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libntp/authkeys.c b/libntp/authkeys.c
index d28b4b932b84..29671ac922bb 100644
--- a/libntp/authkeys.c
+++ b/libntp/authkeys.c
@@ -611,6 +611,9 @@ authhavekey(
/*
* The key is found and trusted. Initialize the key cache.
+ * The cache really should be a struct savekey to streamline
+ * this code. Using a sk pointer would be even faster but more
+ * fragile around pointing to freed memory.
*/
cache_keyid = sk->keyid;
cache_type = sk->type;
@@ -927,6 +930,7 @@ authdecrypt(
pkt, length, size, keyno);
}
+
/* password decoding helpers */
static size_t
pwdecode_plain(