krb5 commit: Remove unneeded SPAKE free_modreq method

Greg Hudson ghudson at mit.edu
Fri Jan 28 17:26:42 EST 2022


https://github.com/krb5/krb5/commit/1465dbd8fc88cf31af3579f09a3148da3b9e1c3e
commit 1465dbd8fc88cf31af3579f09a3148da3b9e1c3e
Author: Greg Hudson <ghudson at mit.edu>
Date:   Fri Jan 28 10:44:21 2022 -0500

    Remove unneeded SPAKE free_modreq method
    
    Commit ff57dc682a27bd205d715f3c0bed84890f2453c4 removed the use of
    per-request module data in SPAKE, but neglected to remove the
    corresponding free_modreq method.
    
    ticket: 9049

 src/plugins/preauth/spake/spake_kdc.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/src/plugins/preauth/spake/spake_kdc.c b/src/plugins/preauth/spake/spake_kdc.c
index 95cdb55..687cdc9 100644
--- a/src/plugins/preauth/spake/spake_kdc.c
+++ b/src/plugins/preauth/spake/spake_kdc.c
@@ -537,14 +537,6 @@ spake_verify(krb5_context context, krb5_data *req_pkt, krb5_kdc_req *request,
     k5_free_pa_spake(context, pa_spake);
 }
 
-/* Release a per-request module data object. */
-static void
-spake_free_modreq(krb5_context context, krb5_kdcpreauth_moddata moddata,
-                  krb5_kdcpreauth_modreq modreq)
-{
-    krb5_free_keyblock(context, (krb5_keyblock *)modreq);
-}
-
 krb5_error_code
 kdcpreauth_spake_initvt(krb5_context context, int maj_ver, int min_ver,
                         krb5_plugin_vtable vtable);
@@ -565,6 +557,5 @@ kdcpreauth_spake_initvt(krb5_context context, int maj_ver, int min_ver,
     vt->fini = spake_fini;
     vt->edata = spake_edata;
     vt->verify = spake_verify;
-    vt->free_modreq = spake_free_modreq;
     return 0;
 }


More information about the cvs-krb5 mailing list