diff options
author | Cy Schubert <cy@FreeBSD.org> | 2024-05-10 15:15:56 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2024-05-26 22:55:52 +0000 |
commit | 1f833b3fc9968c3dd7ed79ccf0525ebf16c891ad (patch) | |
tree | 85801af20e3b694584668aeb39ecec75ee71f72c /libntp/authkeys.c | |
parent | ab1f1aa8333369a83ff284848fc3fc2e52d5f29f (diff) |
Diffstat (limited to 'libntp/authkeys.c')
-rw-r--r-- | libntp/authkeys.c | 4 |
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( |