From f1a24b6f5c94741f7d1926cee1397dcbc069cb3e Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 11 Jul 1995 17:20:34 +0000 Subject: [PATCH] krb5.hin (krb5_cc_get_type, krb5_kt_get_type): Add the new functions to get the type of the credentials cache and key table. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6278 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 5 +++++ src/include/krb5.hin | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 9235c7533..10166042b 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,4 +1,9 @@ +Tue Jul 11 13:12:14 1995 + * krb5.hin (krb5_cc_get_type, krb5_kt_get_type): Add the new + functions to get the type of the credentials cache and key + table. + Fri Jul 7 15:56:49 EDT 1995 Paul Park (pjpark@mit.edu) * krb5.hin - Add checksum verifier dispatch in the checksum entry. This is now the supported method for verifying checksums. Also diff --git a/src/include/krb5.hin b/src/include/krb5.hin index ada092c4d..e22260d7f 100644 --- a/src/include/krb5.hin +++ b/src/include/krb5.hin @@ -1044,6 +1044,7 @@ typedef struct _krb5_cc_ops { #define krb5_cc_remove_cred(context, cache, flags, creds) (*(cache)->ops->remove_cred)(context, cache,flags, creds) #define krb5_cc_set_flags(context, cache, flags) (*(cache)->ops->set_flags)(context, cache, flags) #define krb5_cc_get_name(context, cache) (*(cache)->ops->get_name)(context, cache) +#define krb5_cc_get_type(context, cache) (*(cache)->ops->prefix) extern krb5_cc_ops FAR *krb5_cc_dfl_ops; @@ -1196,6 +1197,7 @@ typedef struct _krb5_kt_ops { krb5_keytab_entry FAR *)); } krb5_kt_ops; +#define krb5_kt_get_type(context, keytab) (*(keytab)->ops->prefix) #define krb5_kt_get_name(context, keytab, name, namelen) (*(keytab)->ops->get_name)(context, keytab,name,namelen) #define krb5_kt_close(context, keytab) (*(keytab)->ops->close)(context, keytab) #define krb5_kt_get_entry(context, keytab, principal, vno, keytype, entry) (*(keytab)->ops->get)(context, keytab, principal, vno, keytype, entry) -- 2.26.2