From dfb68bebcdde4ebf2a0334b2b4195d2a6b7f7a24 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 20 Dec 1994 02:55:10 +0000 Subject: [PATCH] Add new typedefs, declarations for krb5_context and krb5_os_context git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4741 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/ChangeLog | 12 ++++++++++++ src/include/krb5/func-proto.h | 4 ++++ src/include/krb5/krb5.h | 5 +++++ src/include/krb5/libos.h | 4 ++++ src/include/krb5/los-proto.h | 5 +++++ 5 files changed, 30 insertions(+) diff --git a/src/include/krb5/ChangeLog b/src/include/krb5/ChangeLog index 5afb16064..9060d62f8 100644 --- a/src/include/krb5/ChangeLog +++ b/src/include/krb5/ChangeLog @@ -1,3 +1,15 @@ +Mon Dec 19 21:53:33 1994 Theodore Y. Ts'o (tytso@dcl) + + * krb5.h (krb5_context): Add new typdef for krb5_context. + + * libos.h (krb5_os_context): Add new typedef for krb5_os_context. + + * func-proto.h (krb5_init_context, krb5_free_context): Add new + declarations. + + * los-proto.h (krb5_init_os_context, krb5_free_os_context): Add new + declarations. + Wed Nov 30 16:16:54 1994 Theodore Y. Ts'o (tytso@dcl) * configure.in: Add support for --enable-athena and --with-krb4 diff --git a/src/include/krb5/func-proto.h b/src/include/krb5/func-proto.h index 581994e4c..df6e30f09 100644 --- a/src/include/krb5/func-proto.h +++ b/src/include/krb5/func-proto.h @@ -27,6 +27,10 @@ #ifndef KRB5_FUNC_PROTO__ #define KRB5_FUNC_PROTO__ +krb5_error_code krb5_init_context + PROTOTYPE((krb5_context **)); +void krb5_free_context + PROTOTYPE((krb5_context *)); /* libkrb.spec */ krb5_error_code krb5_kdc_rep_decrypt_proc diff --git a/src/include/krb5/krb5.h b/src/include/krb5/krb5.h index 6fe990bb4..6d5dcb473 100644 --- a/src/include/krb5/krb5.h +++ b/src/include/krb5/krb5.h @@ -43,6 +43,11 @@ #include #include +typedef struct _krb5_context { + krb5_magic magic; + void *os_context; +} krb5_context; + /* Time set */ typedef struct _krb5_ticket_times { krb5_timestamp authtime; /* XXX ? should ktime in KDC_REP == authtime diff --git a/src/include/krb5/libos.h b/src/include/krb5/libos.h index 44e64b0f4..fcdaed05f 100644 --- a/src/include/krb5/libos.h +++ b/src/include/krb5/libos.h @@ -28,6 +28,10 @@ #ifndef KRB5_LIBOS__ #define KRB5_LIBOS__ +typedef struct _krb5_os_context { + krb5_magic magic; +} krb5_os_context; + /* lock mode flags */ #define KRB5_LOCKMODE_SHARED 0x0001 #define KRB5_LOCKMODE_EXCLUSIVE 0x0002 diff --git a/src/include/krb5/los-proto.h b/src/include/krb5/los-proto.h index d2f2db90d..3cc09af9c 100644 --- a/src/include/krb5/los-proto.h +++ b/src/include/krb5/los-proto.h @@ -29,6 +29,11 @@ #include +krb5_error_code krb5_init_os_context + PROTOTYPE((krb5_context *)); +void krb5_free_os_context + PROTOTYPE((krb5_context *)); + /* libos.spec */ krb5_error_code krb5_read_password PROTOTYPE((char *, -- 2.26.2