new prototypes

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2736 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-08-07 20:25:54 +00:00
parent 0c24fd12ee
commit dc9dab91ba
3 changed files with 46 additions and 5 deletions

View File

@@ -98,5 +98,6 @@ void event2string(Event *ev, char **str);
int flags2int(HDBFlags *f); int flags2int(HDBFlags *f);
time_t gettime(const char *prompt, const char *def); time_t gettime(const char *prompt, const char *def);
size_t puttime(time_t t, char *s, size_t len);
#endif /* __ADMIN_LOCL_H__ */ #endif /* __ADMIN_LOCL_H__ */

View File

@@ -168,7 +168,10 @@ typedef struct krb5_ccache_data{
}krb5_ccache_data; }krb5_ccache_data;
typedef struct krb5_cc_cursor{ typedef struct krb5_cc_cursor{
int fd; union {
int fd;
void *v;
} u;
}krb5_cc_cursor; }krb5_cc_cursor;
typedef struct krb5_ccache_data *krb5_ccache; typedef struct krb5_ccache_data *krb5_ccache;
@@ -280,10 +283,6 @@ typedef struct krb5_rcache{
int dummy; int dummy;
}krb5_rcache; }krb5_rcache;
typedef struct krb5_fcache{
char *filename;
}krb5_fcache;
typedef struct krb5_keytab_data { typedef struct krb5_keytab_data {
char *filename; char *filename;
}krb5_keytab_data; }krb5_keytab_data;
@@ -449,6 +448,16 @@ void
krb5_free_keyblock(krb5_context context, krb5_free_keyblock(krb5_context context,
krb5_keyblock *keyblock); krb5_keyblock *keyblock);
krb5_error_code
krb5_copy_keyblock (krb5_context context,
const krb5_keyblock *inblock,
krb5_keyblock **to);
krb5_error_code
krb5_copy_keyblock_contents (krb5_context context,
const krb5_keyblock *inblock,
krb5_keyblock *to);
krb5_error_code krb5_error_code
krb5_auth_setcksumtype(krb5_context context, krb5_auth_setcksumtype(krb5_context context,
krb5_auth_context auth_context, krb5_auth_context auth_context,
@@ -689,10 +698,24 @@ krb5_verify_ap_req(krb5_context context,
krb5_flags *ap_req_options, krb5_flags *ap_req_options,
krb5_ticket **ticket); krb5_ticket **ticket);
krb5_error_code
krb5_free_creds_contents (krb5_context context,
krb5_creds *creds);
krb5_error_code krb5_error_code
krb5_free_creds (krb5_context context, krb5_free_creds (krb5_context context,
krb5_creds *creds); krb5_creds *creds);
krb5_error_code
krb5_copy_creds (krb5_context context,
const krb5_creds *incred,
krb5_creds **outcred);
krb5_error_code
krb5_copy_creds_contents (krb5_context context,
const krb5_creds *incred,
krb5_creds *c);
typedef EncAPRepPart krb5_ap_rep_enc_part; typedef EncAPRepPart krb5_ap_rep_enc_part;
krb5_error_code krb5_error_code

View File

@@ -103,18 +103,26 @@
#include <hdb_err.h> #include <hdb_err.h>
#include <error.h> #include <error.h>
/* data.c */
krb5_error_code krb5_data_alloc(krb5_data *, int); krb5_error_code krb5_data_alloc(krb5_data *, int);
krb5_error_code krb5_data_realloc(krb5_data *, int); krb5_error_code krb5_data_realloc(krb5_data *, int);
krb5_error_code krb5_data_copy(krb5_data *, void *, size_t); krb5_error_code krb5_data_copy(krb5_data *, void *, size_t);
/* set_default_realm.c */
krb5_error_code krb5_error_code
krb5_set_default_realm(krb5_context context, krb5_set_default_realm(krb5_context context,
char *realm); char *realm);
/* get_default_realm.c */
krb5_error_code krb5_error_code
krb5_get_default_realm(krb5_context context, krb5_get_default_realm(krb5_context context,
char **realm); char **realm);
/* config_file.c */
krb5_error_code krb5_config_parse_file (const char *fname, krb5_error_code krb5_config_parse_file (const char *fname,
krb5_config_section **res); krb5_config_section **res);
const void *krb5_config_get_next (krb5_config_section *c, const void *krb5_config_get_next (krb5_config_section *c,
@@ -125,6 +133,15 @@ const void *krb5_config_vget_next (krb5_config_section *c,
krb5_config_binding **pointer, krb5_config_binding **pointer,
int type, int type,
va_list args); va_list args);
const void *krb5_config_get (krb5_config_section *c,
int type,
...);
const void *krb5_config_vget (krb5_config_section *c,
int type,
va_list args);
const char *krb5_config_get_string (krb5_config_section *c, const char *krb5_config_get_string (krb5_config_section *c,
...); ...);
const char *krb5_config_vget_string (krb5_config_section *c, const char *krb5_config_vget_string (krb5_config_section *c,