]> git.ipfire.org Git - thirdparty/krb5.git/commit
Refactor PKINIT KDF internal interfaces 1322/head
authorGreg Hudson <ghudson@mit.edu>
Sat, 2 Dec 2023 00:40:02 +0000 (19:40 -0500)
committerGreg Hudson <ghudson@mit.edu>
Tue, 12 Dec 2023 22:35:56 +0000 (17:35 -0500)
commitec71ac1cabbb3926f8ffaf71e1ad007e4e56e0e5
treecd905e22e9f61c97a8240e62faad55159b3f3e6a
parent401f584526e501b68e7516c17d8e467883f8f210
Refactor PKINIT KDF internal interfaces

Simplify the client and server PKINIT code by renaming
pkinit_alg_agility_kdf() to pkinit_kdf() and making it do RFC 4556
octet2string if alg_oid is null.  Move responsibility for tracing
inside the new interface.  Constify some parameters and remove some
unnecessary casts.  Rename "key" to "secret" in several internal
functions to avoid confusion between the input DH secret and the
output key.
src/plugins/preauth/pkinit/pkinit_clnt.c
src/plugins/preauth/pkinit/pkinit_crypto.h
src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
src/plugins/preauth/pkinit/pkinit_kdf_test.c
src/plugins/preauth/pkinit/pkinit_srv.c
src/plugins/preauth/pkinit/pkinit_trace.h