]> git.ipfire.org Git - thirdparty/krb5.git/commit
Refactor GSS per-message token parsing 1362/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 24 Jun 2024 19:46:50 +0000 (15:46 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 13 Aug 2024 02:17:32 +0000 (22:17 -0400)
commit7ae0adcdf16687810f747e284c9fb571a561c5bd
tree4253c856068ab99aeb25547a7f66327d0b9b1409
parent784c38f50e70a739400cdd3f2620bac2e2788e6c
Refactor GSS per-message token parsing

Replace kg_unseal_v1() and gss_krb5int_unseal_token_v3() with new
functions using current coding practices.  Notable differences
include:

* The new functions use k5input for improved safety.
* The new functions do not modify the input buffer.
* The new functions will never try to allocate zero bytes of memory.
* There are separate functions for unwrap and verify_mic, which means
  there is no message_buffer parameter acting conditionally as an
  input or output.
src/lib/gssapi/krb5/Makefile.in
src/lib/gssapi/krb5/gssapiP_krb5.h
src/lib/gssapi/krb5/k5sealv3.c
src/lib/gssapi/krb5/k5unseal.c [deleted file]
src/lib/gssapi/krb5/process_context_token.c
src/lib/gssapi/krb5/unwrap.c [new file with mode: 0644]
src/lib/gssapi/krb5/util_crypt.c
src/lib/gssapi/krb5/util_seqnum.c
src/lib/gssapi/krb5/verify_mic.c [new file with mode: 0644]
src/lib/gssapi/libgssapi_krb5.exports