From 2f38e6cdaef98fe75d47bc97858ba9aed46a5eb3 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 18 Jan 1990 17:37:10 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@131 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/kdb.h | 39 ++++++++++++++++++++++++++++++ src/include/krb5/libos.h | 25 ++++++++++++++++++++ src/include/krb5/los-proto.h | 46 ++++++++++++++++++++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 src/include/krb5/kdb.h create mode 100644 src/include/krb5/libos.h create mode 100644 src/include/krb5/los-proto.h diff --git a/src/include/krb5/kdb.h b/src/include/krb5/kdb.h new file mode 100644 index 000000000..f1c488784 --- /dev/null +++ b/src/include/krb5/kdb.h @@ -0,0 +1,39 @@ +/* + * $Source$ + * $Author$ + * $Id$ + * + * Copyright 1990 by the Massachusetts Institute of Technology. + * + * For copying and distribution information, please see the file + * . + * + * KDC Database interface definitions. + */ + +#include + +#ifndef __KRB5_KDB5__ +#define __KRB5_KDB5__ + +typedef struct { + krb5_principal principal; + krb5_keyblock *key; + krb5_kvno kvno; + krb5_deltat max_life; + krb5_deltat max_renewable_life; + krb5_kvno mkvno; /* master encryption key vno */ + krb5_timestamp expiration; + krb5_principal mod_name; + krb5_timestamp mod_date; + krb5_flags attributes; +} krb5_kdb_principal; + +#define KRB5_KDB_DISALLOW_POSTDATED 0x00000001 +#define KRB5_KDB_DISALLOW_FORWARDABLE 0x00000002 +#define KRB5_KDB_DISALLOW_TGT_BASED 0x00000004 +#define KRB5_KDB_DISALLOW_RENEWABLE 0x00000008 +#define KRB5_KDB_DISALLOW_PROXIABLE 0x00000010 +#define KRB5_KDB_DISALLOW_DUP_SKEY 0x00000020 + +#endif /* __KRB5_KDB5__ */ diff --git a/src/include/krb5/libos.h b/src/include/krb5/libos.h new file mode 100644 index 000000000..1ac929d66 --- /dev/null +++ b/src/include/krb5/libos.h @@ -0,0 +1,25 @@ +/* + * $Source$ + * $Author$ + * $Id$ + * + * Copyright 1989,1990 by the Massachusetts Institute of Technology. + * + * For copying and distribution information, please see the file + * . + * + * Definitions for this implementation of the libos layer. + */ + +#include + +#ifndef __KRB5_LIBOS__ +#define __KRB5_LIBOS__ + +/* lock mode flags */ +#define KRB5_LOCKMODE_SHARED 0x0001 +#define KRB5_LOCKMODE_EXCLUSIVE 0x0002 +#define KRB5_LOCKMODE_DONTBLOCK 0x0004 +#define KRB5_LOCKMODE_UNLOCK 0x0008 + +#endif /* __KRB5_LIBOS__ */ diff --git a/src/include/krb5/los-proto.h b/src/include/krb5/los-proto.h new file mode 100644 index 000000000..8f738b26c --- /dev/null +++ b/src/include/krb5/los-proto.h @@ -0,0 +1,46 @@ +/* + * $Source$ + * $Author$ + * $Id$ + * + * Copyright 1990 by the Massachusetts Institute of Technology. + * + * For copying and distribution information, please see the file + * . + * + * Function prototypes for Kerberos V5 library (libos) + */ + +#include + +#ifndef __KRB5_LIBOS_PROTO__ +#define __KRB5_LIBOS_PROTO__ + +/* requires */ + +/* libos.spec */ +krb5_error_code krb5_read_password + PROTOTYPE((char *prompt, + char *prompt2, + char *return_pwd, + int size_return )); +krb5_error_code krb5_lock_file + PROTOTYPE((FILE *filep, + int mode )); +krb5_error_code krb5_unlock_file + PROTOTYPE((FILE *filep )); +krb5_error_code krb5_timeofday + PROTOTYPE((krb5_int32 *timeret )); +krb5_error_code krb5_ms_timeofday + PROTOTYPE((krb5_int32 *seconds, + krb5_int16 *milliseconds )); +int krb5_net_read + PROTOTYPE((int fd, + char *buf, + int len )); +int krb5_net_write + PROTOTYPE((int fd, + char *buf, + int len )); + +#endif /* __KRB5_LIBOS_PROTO__ */ -- 2.26.2