+Fri Jul 25 15:18:25 1997 Tom Yu <tlyu@mit.edu>
+
+ * kdb_kt.h: Move support for "kdb" keytab here.
+
+ * kdb.h: Add support for modified kdb API; remove extra arguments
+ for db_set_mkey and db_get_mkey. Remove all (hopefully) mentions
+ of any particular backend database implementation. Add flags
+ argument for db_create, allowing caller to specify whether btree
+ or hash methods are to be used in the backend.
+
Thu Nov 21 11:55:16 EST 1996 Richard Basch <basch@lehman.com>
* Makefile.in:
#define KRB5_KDB_SUPPORT_DESMD5 0x00004000
#define KRB5_KDB_NEW_PRINC 0x00008000
+/* Creation flags */
+#define KRB5_KDB_CREATE_BTREE 0x00000001
+#define KRB5_KDB_CREATE_HASH 0x00000002
+
#if !defined(_MACINTOSH) && !defined(_MSDOS) && !defined(_WIN32)
/*
time_t * ));
krb5_error_code krb5_db_create
KRB5_PROTOTYPE((krb5_context,
- char * ));
+ char *,
+ krb5_int32 ));
krb5_error_code krb5_db_rename
KRB5_PROTOTYPE((krb5_context,
char *,
const char *,
char **,
krb5_principal *));
+
+krb5_error_code krb5_db_set_mkey
+ KRB5_PROTOTYPE((krb5_context, krb5_encrypt_block *));
+
+krb5_error_code krb5_db_get_mkey
+ KRB5_PROTOTYPE((krb5_context, krb5_encrypt_block **));
+krb5_error_code krb5_db_destroy
+ KRB5_PROTOTYPE((krb5_context,
+ char * ));
krb5_error_code krb5_db_lock
KRB5_PROTOTYPE((krb5_context,
int ));
krb5_data *,
krb5_keyblock * ));
+krb5_error_code krb5_db_open_database
+ KRB5_PROTOTYPE((krb5_context));
+krb5_error_code krb5_db_close_database
+ KRB5_PROTOTYPE((krb5_context));
+
krb5_error_code krb5_dbekd_encrypt_key_data
KRB5_PROTOTYPE((krb5_context,
krb5_encrypt_block *,
krb5_db_entry *,
krb5_timestamp *,
krb5_principal *));
-int krb5_encode_princ_dbmkey
+int krb5_encode_princ_dbkey
KRB5_PROTOTYPE((krb5_context,
- datum *,
+ krb5_data *,
krb5_principal));
-void krb5_free_princ_dbmkey
+void krb5_free_princ_dbkey
KRB5_PROTOTYPE((krb5_context,
- datum *));
+ krb5_data *));
krb5_error_code krb5_encode_princ_contents
KRB5_PROTOTYPE((krb5_context,
- datum *,
+ krb5_data *,
krb5_db_entry *));
void krb5_free_princ_contents
KRB5_PROTOTYPE((krb5_context,
- datum *));
+ krb5_data *));
krb5_error_code krb5_decode_princ_contents
KRB5_PROTOTYPE((krb5_context,
- datum *,
+ krb5_data *,
krb5_db_entry *));
void krb5_dbe_free_contents
KRB5_PROTOTYPE((krb5_context,
#endif /* OLD_AND_KRUFTY */
+/* This is now a structure that is private to the database backend. */
+#ifdef notdef
#ifdef KDB5_DISPATCH
/*
* Database operation dispatch table. This table determines the procedures
#else
typedef struct _kdb5_dispatch_table kdb5_dispatch_table;
#endif /* KDB5_DISPATCH */
+#endif /* notdef */
#endif /* !defined(_MACINTOSH) && !defined(_MSDOS) &&!defined(_WIN32) */
#endif /* KRB5_KDB5__ */
--- /dev/null
+/*
+ * include/krb5/kdb_kt.h
+ *
+ * Copyright 1997 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
+ *
+ * Export of this software from the United States of America may
+ * require a specific license from the United States Government.
+ * It is the responsibility of any person or organization contemplating
+ * export to obtain such a license before exporting.
+ *
+ * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
+ * distribute this software and its documentation for any purpose and
+ * without fee is hereby granted, provided that the above copyright
+ * notice appear in all copies and that both that copyright notice and
+ * this permission notice appear in supporting documentation, and that
+ * the name of M.I.T. not be used in advertising or publicity pertaining
+ * to distribution of the software without specific, written prior
+ * permission. M.I.T. makes no representations about the suitability of
+ * this software for any purpose. It is provided "as is" without express
+ * or implied warranty.
+ *
+ *
+ * KDC keytab definitions.
+ */
+
+
+#ifndef KRB5_KDB5_KT_H
+#define KRB5_KDB5_KT_H
+
+#if !defined(_MACINTOSH) && !defined(_MSDOS)
+
+#include "kdb.h"
+
+krb5_error_code krb5_ktkdb_resolve
+ KRB5_PROTOTYPE((krb5_context, krb5_keytab *));
+
+#endif /* !defined(_MACINTOSH) && !defined(_MSDOS) */
+#endif /* KRB5_KDB5_DBM__ */