Add prototypes for krb5_dbe_{en,de}code_last_pwd_change(), and
authorChris Provenzano <proven@mit.edu>
Mon, 7 Aug 1995 15:48:31 +0000 (15:48 +0000)
committerChris Provenzano <proven@mit.edu>
Mon, 7 Aug 1995 15:48:31 +0000 (15:48 +0000)
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

src/include/krb5/ChangeLog
src/include/krb5/kdb.h

index 40ff69ae75338f553727fa1fd7504a7ab20a8458..56595004f15328c76a91fcf337c77355c709e486 100644 (file)
@@ -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
index 6aacf4f78614b40edb4ecbfd28fa7b1bcb7069f2..b38aa455222ea4ca5893d2859e43a48bd1bff0ba 100644 (file)
@@ -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