include krb5-v4compat.h if needed, define an internal structure struct
kafs_token that carries around for rxkad data that is independant of kerberos version git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11835 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -93,7 +93,13 @@
|
|||||||
#endif
|
#endif
|
||||||
#ifdef KRB4
|
#ifdef KRB4
|
||||||
#include <krb.h>
|
#include <krb.h>
|
||||||
#endif
|
#else
|
||||||
|
#ifdef KRB5
|
||||||
|
#include "crypto-headers.h"
|
||||||
|
#include <krb5-v4compat.h>
|
||||||
|
typedef struct credentials CREDENTIALS;
|
||||||
|
#endif /* KRB5 */
|
||||||
|
#endif /* KRB4 */
|
||||||
#include <kafs.h>
|
#include <kafs.h>
|
||||||
|
|
||||||
#include <resolve.h>
|
#include <resolve.h>
|
||||||
@@ -101,14 +107,15 @@
|
|||||||
#include "afssysdefs.h"
|
#include "afssysdefs.h"
|
||||||
|
|
||||||
struct kafs_data;
|
struct kafs_data;
|
||||||
|
struct kafs_token;
|
||||||
typedef int (*afslog_uid_func_t)(struct kafs_data *,
|
typedef int (*afslog_uid_func_t)(struct kafs_data *,
|
||||||
const char *cell,
|
const char *,
|
||||||
const char *realm_hint,
|
const char *,
|
||||||
uid_t,
|
uid_t,
|
||||||
const char *homedir);
|
const char *);
|
||||||
|
|
||||||
typedef int (*get_cred_func_t)(struct kafs_data*, const char*, const char*,
|
typedef int (*get_cred_func_t)(struct kafs_data*, const char*, const char*,
|
||||||
const char*, CREDENTIALS*);
|
const char*, uid_t, struct kafs_token *);
|
||||||
|
|
||||||
typedef char* (*get_realm_func_t)(struct kafs_data*, const char*);
|
typedef char* (*get_realm_func_t)(struct kafs_data*, const char*);
|
||||||
|
|
||||||
@@ -119,13 +126,25 @@ typedef struct kafs_data {
|
|||||||
void *data;
|
void *data;
|
||||||
} kafs_data;
|
} kafs_data;
|
||||||
|
|
||||||
|
struct kafs_token {
|
||||||
|
struct ClearToken ct;
|
||||||
|
void *ticket;
|
||||||
|
size_t ticket_len;
|
||||||
|
};
|
||||||
|
|
||||||
int _kafs_afslog_all_local_cells(kafs_data*, uid_t, const char*);
|
int _kafs_afslog_all_local_cells(kafs_data*, uid_t, const char*);
|
||||||
|
|
||||||
int _kafs_get_cred(kafs_data*, const char*, const char*, const char *,
|
int _kafs_get_cred(kafs_data*, const char*, const char*, const char *,
|
||||||
CREDENTIALS*);
|
uid_t, struct kafs_token *);
|
||||||
|
|
||||||
int
|
int
|
||||||
_kafs_realm_of_cell(kafs_data *data, const char *cell, char **realm);
|
_kafs_realm_of_cell(kafs_data *, const char *, char **);
|
||||||
|
|
||||||
|
int
|
||||||
|
_kafs_v4_to_kt(CREDENTIALS *, uid_t, struct kafs_token *);
|
||||||
|
|
||||||
|
void
|
||||||
|
_kafs_fixup_viceid(struct ClearToken *, uid_t);
|
||||||
|
|
||||||
#ifdef _AIX
|
#ifdef _AIX
|
||||||
int aix_pioctl(char*, int, struct ViceIoctl*, int);
|
int aix_pioctl(char*, int, struct ViceIoctl*, int);
|
||||||
|
Reference in New Issue
Block a user