#include <string.h>
#include "AFSAuth.h"
#include <afs/stds.h>
#include <afs/kautils.h>
#include <afs/com_err.h>
Go to the source code of this file.
Typedefs | |
typedef ktc_token | AFStoken_t |
Functions | |
afs_int32 | ka_Authenticate (char *name, char *instance, char *cell, struct ubik_client *conn, int service, struct ktc_encryptionKey *key, Date start, Date end, struct ktc_token *token, afs_int32 *pwexpires) |
afs_int32 | ka_AuthServerConn (char *cell, int service, struct ktc_token *token, struct ubik_client **conn) |
afs_int32 | ka_GetAuthToken (char *name, char *instance, char *cell, struct ktc_encryptionKey *key, afs_int32 lifetime, afs_int32 *pwexpires) |
afs_int32 | ka_GetAFSTicket (char *name, char *instance, char *realm, Date lifetime, afs_int32 flags) |
char * | ka_LocalCell () |
void | ka_StringToKey (char *str, char *cell, struct ktc_encryptionKey *key) |
int | ktc_GetToken (struct ktc_principal *server, struct ktc_token *token, int tokenLen, struct ktc_principal *client) |
char * | GetAFSErrorString (afs_int32 rc) |
void * | GetAFSToken (const char *usr, const char *pwd, int pwlen, int life, char **emsg) |
int | VerifyAFSToken (void *token) |
void | DeleteAFSToken (void *token) |
char * | AFSLocalCell () |
typedef struct ktc_token AFStoken_t |
Definition at line 49 of file AFSAuth.cxx.
char* AFSLocalCell | ( | ) |
void DeleteAFSToken | ( | void * | token | ) |
char* GetAFSErrorString | ( | afs_int32 | rc | ) |
Definition at line 52 of file AFSAuth.cxx.
References emsg(), and error_message.
Referenced by GetAFSToken().
void* GetAFSToken | ( | const char * | usr, | |
const char * | pwd, | |||
int | pwlen, | |||
int | life, | |||
char ** | emsg | |||
) |
Definition at line 84 of file AFSAuth.cxx.
References DFLTTOKENLIFETIME, GetAFSErrorString(), ka_Authenticate(), ka_AuthServerConn(), ka_GetAFSTicket(), ka_GetAuthToken(), ka_StringToKey(), and len.
Referenced by ROOT::RpdPass(), and TAFS::TAFS().
afs_int32 ka_Authenticate | ( | char * | name, | |
char * | instance, | |||
char * | cell, | |||
struct ubik_client * | conn, | |||
int | service, | |||
struct ktc_encryptionKey * | key, | |||
Date | start, | |||
Date | end, | |||
struct ktc_token * | token, | |||
afs_int32 * | pwexpires | |||
) |
Referenced by GetAFSToken().
afs_int32 ka_AuthServerConn | ( | char * | cell, | |
int | service, | |||
struct ktc_token * | token, | |||
struct ubik_client ** | conn | |||
) |
Referenced by GetAFSToken().
afs_int32 ka_GetAFSTicket | ( | char * | name, | |
char * | instance, | |||
char * | realm, | |||
Date | lifetime, | |||
afs_int32 | flags | |||
) |
Referenced by GetAFSToken().
afs_int32 ka_GetAuthToken | ( | char * | name, | |
char * | instance, | |||
char * | cell, | |||
struct ktc_encryptionKey * | key, | |||
afs_int32 | lifetime, | |||
afs_int32 * | pwexpires | |||
) |
Referenced by GetAFSToken().
char* ka_LocalCell | ( | ) |
Referenced by AFSLocalCell(), XrdSecProtocolpwd::Init(), and XrdSecProtocolpwd::QueryCrypt().
void ka_StringToKey | ( | char * | str, | |
char * | cell, | |||
struct ktc_encryptionKey * | key | |||
) |
Referenced by GetAFSToken(), and XrdSecProtocolpwd::QueryCreds().
int ktc_GetToken | ( | struct ktc_principal * | server, | |
struct ktc_token * | token, | |||
int | tokenLen, | |||
struct ktc_principal * | client | |||
) |
int VerifyAFSToken | ( | void * | token | ) |