kdb_db2.h revision 2dd2efa5a06a9befe46075cf41e16f57533c9f98
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*
* 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. Furthermore if you modify this software you must label
* your software as modified software and not distribute it in such a
* fashion that it might be confused with the original M.I.T. software.
* 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 Database backend definitions for Berkely DB.
*/
#ifndef KRB5_KDB_DB2_H
#define KRB5_KDB_DB2_H
#include "policy_db.h"
typedef struct _krb5_db2_context {
char * db_name; /* Name of database */
char * db_lf_name; /* Name of lock file */
int db_lf_file; /* File descriptor of lock file */
int db_locks_held; /* Number of times locked */
int db_lock_mode; /* Last lock mode, e.g. greatest*/
#define KRB5_DB2_MAX_RETRY 5
#define KDB2_LOCK_EXT ".ok"
#define KDB2_TEMP_LOCK_EXT "~.ok"
(krb5_context);
(krb5_context);
char *,
time_t * );
char *,
char * );
char *,
char * );
int *,
krb5_boolean * );
int );
int *,
char **db_args
);
krb5_error_code (*) (krb5_pointer,
krb5_db_entry *),
krb5_pointer, int, int );
/* Solaris Kerberos: adding support for db_args */
(krb5_context,char *,
krb5_error_code (*) (krb5_pointer,
krb5_db_entry *),
char **db_args );
krb5_boolean * );
krb5_boolean );
(krb5_context);
(krb5_context);
char *pwd,
krb5_keyblock *key);
krb5_keyblock *key);
krb5_keyblock **key);
register int *nentries,
char **db_args);
int *nentries);
krb5_error_code krb5_db2_lib_init(void);
char *conf_section,
char **db_args);
int option,
void *value );
int in_mode);
char *conf_section,
char **db_args,
int mode );
char *conf_section,
char **db_args );
char *conf_section,
char **db_args );
long err_code );
void *
void *ptr,
void
void *ptr );
/* policy management functions */
char *name,
int *cnt);
char *match_entry,
void *data );
char *policy );
#endif /* KRB5_KDB_DB2_H */