From 1e7b3aff6d2e43f507774b2db887086035cd32a9 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 6 Jan 2003 22:51:16 +0000 Subject: Implement krb5_auth_con_set_checksum_func, an API for setting a callback to specify the data to be checksummed by krb5_mk_req after the auth_context has been set up. Mainly useful for GSSAPI. Ticket: 1054 Status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15084 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 5 +++++ src/include/krb5.hin | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 2b6e7d46e..76a2a95ec 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,8 @@ +2003-01-06 Sam Hartman + + * krb5.hin: Add support for setting a callback to generate the + data checksummed by mk_req + 2003-01-03 Ezra Peisach * fake-addrinfo.h (freeaddrinfo): Do not free a NULL pointer. diff --git a/src/include/krb5.hin b/src/include/krb5.hin index 9d2d1ef8e..e238f7a60 100644 --- a/src/include/krb5.hin +++ b/src/include/krb5.hin @@ -1,7 +1,7 @@ /* * include/krb5.h * - * Copyright 1989,1990,1995,2001 by the Massachusetts Institute of Technology. + * Copyright 1989,1990,1995,2001, 2003 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -1159,6 +1159,13 @@ typedef struct krb5_replay_data { #define KRB5_AUTH_CONTEXT_GENERATE_LOCAL_FULL_ADDR 0x00000004 #define KRB5_AUTH_CONTEXT_GENERATE_REMOTE_FULL_ADDR 0x00000008 +/* type of function used as a callback to generate checksum data for + * mk_req*/ + +typedef krb5_error_code KRB5_CALLCONV +(* krb5_mk_req_checksum_func) (krb5_context, krb5_auth_context , void *, + krb5_data **); + /* * end "safepriv.h" */ @@ -2103,6 +2110,14 @@ krb5_error_code KRB5_CALLCONV krb5_auth_con_getflags krb5_auth_context, krb5_int32 *); +krb5_error_code KRB5_CALLCONV +krb5_auth_con_set_checksum_func (krb5_context, krb5_auth_context, + krb5_mk_req_checksum_func, void *); + +krb5_error_code KRB5_CALLCONV +krb5_auth_con_get_checksum_func( krb5_context, krb5_auth_context, + krb5_mk_req_checksum_func *, void **); + krb5_error_code KRB5_CALLCONV_WRONG krb5_auth_con_setaddrs (krb5_context, krb5_auth_context, -- cgit