+Sat Jan 27 01:01:17 1996 Mark Eichin <eichin@cygnus.com>
+
+ * t_kdb.c: wrap db_dbm decls and berkely_dispatch in ifdefs
+ BERK_DB_DBM.
+ (do_testing): wrap references as well.
+
+ * keytab.c (krb5_ktkdb_get_entry): use KRB5_PROTOTYPE.
+
Wed Dec 13 09:28:33 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* keytab.c (krb5_ktkdb_resolve): Fix casting
#include "k5-int.h"
#include "kdb_dbc.h"
-krb5_error_code krb5_ktkdb_get_entry(krb5_context, krb5_keytab, krb5_principal,
- krb5_kvno, krb5_enctype, krb5_keytab_entry *);
+krb5_error_code krb5_ktkdb_get_entry KRB5_PROTOTYPE((krb5_context, krb5_keytab, krb5_principal,
+ krb5_kvno, krb5_enctype, krb5_keytab_entry *));
krb5_kt_ops krb5_kt_kdb_ops = {
0,
krb5_principal *recorded_principals = (krb5_principal *) NULL;
char **recorded_names = (char **) NULL;
+#ifdef BERK_DB_DBM
extern DBM *db_dbm_open PROTOTYPE((char *, int, int));
extern void db_dbm_close PROTOTYPE((DBM *));
extern datum db_dbm_fetch PROTOTYPE((DBM *, datum));
db_dbm_dirfno, /* Get Database FD num */
(int (*)()) NULL /* Get Database FD num */
};
+#endif
/*
* The following prototypes are necessary in case dbm_error and
krb5_init_ets(kcontext);
switch (db_type) {
+#ifdef BERK_DB_DBM
case DB_BERKELEY:
op = "setting up Berkeley database operations";
if (kret = kdb5_db_set_dbops(kcontext, &berkeley_dispatch))
goto goodbye;
break;
+#endif
case DB_DBM:
op = "setting up DBM database operations";
if (kret = kdb5_db_set_dbops(kcontext, &dbm_dispatch))
krb5_init_context(&ccontext);
krb5_init_ets(ccontext);
switch (db_type) {
+#ifdef BERK_DB_DBM
case DB_BERKELEY:
if (kret = kdb5_db_set_dbops(ccontext, &berkeley_dispatch))
exit(1);
break;
+#endif
case DB_DBM:
if (kret = kdb5_db_set_dbops(ccontext, &dbm_dispatch))
exit(1);
if (db_created) {
if (!kret && !save_db) {
switch (db_type) {
+#ifdef BERK_DB_DBM
case DB_BERKELEY:
op = "setting up Berkeley database operations";
if (kret = kdb5_db_set_dbops(kcontext, &berkeley_dispatch))
goto goodbye1;
break;
+#endif
case DB_DBM:
op = "setting up DBM database operations";
if (kret = kdb5_db_set_dbops(kcontext, &dbm_dispatch))