From: Chris Provenzano Date: Mon, 7 Aug 1995 15:48:31 +0000 (+0000) Subject: Add prototypes for krb5_dbe_{en,de}code_last_pwd_change(), and X-Git-Tag: krb5-1.0-beta6~1395 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=16ca1a94a16b7975ad5648f92b5ab6acc0f86576;p=krb5.git Add prototypes for krb5_dbe_{en,de}code_last_pwd_change(), and krb5_dbe_{apw,cpw,ark,crk}(), the passowrd changing routines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6429 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/ChangeLog b/src/include/krb5/ChangeLog index 40ff69ae7..56595004f 100644 --- a/src/include/krb5/ChangeLog +++ b/src/include/krb5/ChangeLog @@ -1,11 +1,15 @@ +Mon Aug 07 11:22:57 1995 Chris Provenzano (proven@mit.edu) + + * kdb.h : Add prototypes for krb5_dbe_{en,de}code_last_pwd_change(), + krb5_dbe_{apw,cpw,ark,crk}(), + Fri Aug 4 16:10:34 EDT 1995 Paul Park (pjpark@mit.edu) * adm_proto.h - Add prototype definitions for new libkadm functions in keysalt.c dealing with key/salt tuples. * kdb.h - Add encode/decode macros for integers for use between kdb modules. - Thu Aug 03 12:19:52 1995 Chris Provenzano (proven@mit.edu) * kdb.h : Added prototype for krb5_dbe_cpw() the new dd entry diff --git a/src/include/krb5/kdb.h b/src/include/krb5/kdb.h index 6aacf4f78..b38aa4552 100644 --- a/src/include/krb5/kdb.h +++ b/src/include/krb5/kdb.h @@ -93,9 +93,9 @@ typedef struct _krb5_db_entry_new { #define KRB5_KDB_MAGIC_NUMBER 0xdbdbdbdb #define KRB5_KDB_V1_BASE_LENGTH 42 -struct tl_data_1 { +typedef struct tl_data_1 { krb5_timestamp last_pwd_change; /* Last time passwd changed */ -}; +} krb5_tl_last_change; #define KRB5_TL_LAST_PWD_CHANGE 0x0001 @@ -266,6 +266,14 @@ krb5_error_code krb5_dbe_decode_mod_princ_data KRB5_PROTOTYPE((krb5_context, krb5_db_entry *, krb5_tl_mod_princ **)); +krb5_error_code krb5_dbe_encode_last_pwd_change + KRB5_PROTOTYPE((krb5_context, + krb5_tl_last_change *, + krb5_db_entry *)); +krb5_error_code krb5_dbe_decode_last_pwd_change + KRB5_PROTOTYPE((krb5_context, + krb5_db_entry *, + krb5_tl_last_change *)); int krb5_encode_princ_dbmkey KRB5_PROTOTYPE((krb5_context, datum *, @@ -293,10 +301,29 @@ struct __krb5_key_salt_tuple; krb5_error_code krb5_dbe_cpw KRB5_PROTOTYPE((krb5_context, krb5_encrypt_block *, - krb5_db_entry *, struct __krb5_key_salt_tuple *, int, - char *)); + char *, + krb5_db_entry *)); +krb5_error_code krb5_dbe_apw + KRB5_PROTOTYPE((krb5_context, + krb5_encrypt_block *, + struct __krb5_key_salt_tuple *, + int, + char *, + krb5_db_entry *)); +krb5_error_code krb5_dbe_crk + KRB5_PROTOTYPE((krb5_context, + krb5_encrypt_block *, + struct __krb5_key_salt_tuple *, + int, + krb5_db_entry *)); +krb5_error_code krb5_dbe_ark + KRB5_PROTOTYPE((krb5_context, + krb5_encrypt_block *, + struct __krb5_key_salt_tuple *, + int, + krb5_db_entry *)); #define KRB5_KDB_DEF_FLAGS 0