From e6a03d2ab4c1bc7d28e253a5d9ce44c7c82dbccf Mon Sep 17 00:00:00 2001 From: Chris Provenzano Date: Wed, 26 Apr 1995 03:01:10 +0000 Subject: [PATCH] * krb5.h (krb5_fulladdr) : Change port to be of type krb5_address. * krb5.h (krb5_auth_con_genaddrs()) : Added flags for new routine. * krb5.h (krb5_get_for_creds()) : Removed prototype. * krb5.h (krb5_get_cred_via_tkt()) : Added prototype. * krb5.h (krb5_mk_ncred(), krb5_mk_1cred(), krb5_rd_cred()): Updated prototype to include auth_context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5487 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 10 ++++++++ src/include/krb5.h | 57 +++++++++++++++++++++++++------------------ 2 files changed, 43 insertions(+), 24 deletions(-) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 5290cb377..bb920ba3a 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,13 @@ + +Tue Apr 25 21:58:23 1995 Chris Provenzano (proven@mit.edu) + + * krb5.h (krb5_fulladdr) : Change port to be of type krb5_address. + * krb5.h (krb5_auth_con_genaddrs()) : Added flags for new routine. + * krb5.h (krb5_get_for_creds()) : Removed prototype. + * krb5.h (krb5_get_cred_via_tkt()) : Added prototype. + * krb5.h (krb5_mk_ncred(), krb5_mk_1cred(), krb5_rd_cred()): + Updated prototype to include auth_context. + Fri Apr 21 08:58:50 1995 Theodore Y. Ts'o * krb5.h: krb5_princ_aref() doesn't work, and isn't used anywhere. diff --git a/src/include/krb5.h b/src/include/krb5.h index a76f55008..3a2d456aa 100644 --- a/src/include/krb5.h +++ b/src/include/krb5.h @@ -245,11 +245,11 @@ typedef struct _krb5_address { } krb5_address; /* per Kerberos v5 protocol spec */ -#define ADDRTYPE_INET 0x0002 -#define ADDRTYPE_CHAOS 0x0005 -#define ADDRTYPE_XNS 0x0006 -#define ADDRTYPE_ISO 0x0007 -#define ADDRTYPE_DDP 0x0010 +#define ADDRTYPE_INET 0x0002 +#define ADDRTYPE_CHAOS 0x0005 +#define ADDRTYPE_XNS 0x0006 +#define ADDRTYPE_ISO 0x0007 +#define ADDRTYPE_DDP 0x0010 /* not yet in the spec... */ #define ADDRTYPE_ADDRPORT 0x0100 #define ADDRTYPE_IPPORT 0x0101 @@ -259,9 +259,8 @@ typedef struct _krb5_address { /* implementation-specific stuff: */ typedef struct _krb5_fulladdr { - krb5_address FAR *address; - unsigned long port; /* port, for some address types. - large enough for most protos? */ + krb5_address FAR * address; + krb5_address FAR * port; } krb5_fulladdr; /* @@ -958,6 +957,12 @@ typedef struct krb5_replay_data { krb5_int32 seq; } krb5_replay_data; +/* flags for krb5_auth_con_genaddrs() */ +#define KRB5_AUTH_CONTEXT_GENERATE_LOCAL_ADDR 0x00000001 +#define KRB5_AUTH_CONTEXT_GENERATE_REMOTE_ADDR 0x00000002 +#define KRB5_AUTH_CONTEXT_GENERATE_LOCAL_FULL_ADDR 0x00000004 +#define KRB5_AUTH_CONTEXT_GENERATE_REMOTE_FULL_ADDR 0x00000008 + /* * end "safepriv.h" */ @@ -1254,15 +1259,14 @@ krb5_error_code INTERFACE krb5_get_credentials krb5_ccache, krb5_creds FAR *, krb5_creds FAR * FAR *)); -krb5_error_code krb5_get_for_creds - PROTOTYPE((krb5_context, - const krb5_cksumtype, - char *, - krb5_principal, - krb5_keyblock *, - int, - krb5_data * )); -krb5_error_code krb5_mk_req +krb5_error_code INTERFACE krb5_get_cred_via_tkt + PROTOTYPE((krb5_context, + krb5_creds *, + const krb5_flags, + krb5_address * const *, + krb5_creds *, + krb5_creds **)); +krb5_error_code INTERFACE krb5_mk_req PROTOTYPE((krb5_context, krb5_auth_context **, const krb5_flags, @@ -1765,14 +1769,19 @@ krb5_error_code krb5_walk_realm_tree krb5_principal **, int)); -krb5_error_code krb5_mk_cred +krb5_error_code INTERFACE krb5_mk_ncred PROTOTYPE((krb5_context, - krb5_kdc_rep *, - krb5_enctype, - krb5_keyblock *, - krb5_address *, - krb5_address *, - krb5_data *)); + krb5_auth_context *, + krb5_creds **, + krb5_data **, + krb5_replay_data *)); + +krb5_error_code INTERFACE krb5_mk_1cred + PROTOTYPE((krb5_context, + krb5_auth_context *, + krb5_creds *, + krb5_data **, + krb5_replay_data *)); krb5_error_code krb5_auth_con_init PROTOTYPE((krb5_context, -- 2.26.2