adb.h revision 56a424cca6b3f91f31bdab72a4626c48c779fe8b
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
* Openvision retains the copyright to derivative works of
* this source code. Do *NOT* create a derivative of this
* source code before consulting with your legal department.
* Do *NOT* integrate *ANY* of this source code into another
* product before consulting with your legal department.
*
* For further information, read the top-level Openvision
* copyright which is contained in the top-level MIT Kerberos
* copyright.
*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
*/
/*
* Data Types for policys, and principal information that
* exist in the respective databases.
*
*
* This file was originally created with rpcgen.
* It has been hacked up since then.
*/
#ifndef __ADB_H__
#define __ADB_H__
#include "k5-int.h"
#include <db.h>
#include <com_err.h>
typedef long osa_adb_ret_t;
#define OSA_ADB_POLICY_DB_MAGIC 0x12345A00
#define OSA_ADB_PRINC_DB_MAGIC 0x12345B00
#define OSA_ADB_SHARED 0x7001
#define OSA_ADB_EXCLUSIVE 0x7002
#define OSA_ADB_PERMANENT 0x7003
#define OSA_ADB_PRINC_VERSION_MASK 0x12345C00
#define OSA_ADB_PRINC_VERSION_1 0x12345C01
#define OSA_ADB_POLICY_VERSION_MASK 0x12345D00
#define OSA_ADB_POLICY_VERSION_1 0x12345D01
typedef struct _osa_adb_db_lock_ent_t {
char *filename;
typedef struct _osa_adb_db_ent_t {
int magic;
char *filename;
int opencnt;
/* an osa_pw_hist_ent stores all the key_datas for a single password */
typedef struct _osa_pw_hist_t {
int n_key_data;
typedef struct _osa_princ_ent_t {
int version;
char *policy;
long aux_attributes;
unsigned int old_key_len;
unsigned int old_key_next;
typedef struct _osa_policy_ent_t {
int version;
char *name;
typedef void (*osa_adb_iter_princ_func) (void *, osa_princ_ent_t);
typedef void (*osa_adb_iter_policy_func) (void *, osa_policy_ent_t);
/*
* Return Code (the rest are in adb_err.h)
*/
#define OSA_ADB_OK 0
/*
* xdr functions
*/
/*
* Functions
*/
void * data);
void *data);
#endif /* __ADB_H__ */