AFSAuth.cxx File Reference

#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 Documentation

typedef struct ktc_token AFStoken_t

Definition at line 49 of file AFSAuth.cxx.


Function Documentation

char* AFSLocalCell (  ) 

Definition at line 236 of file AFSAuth.cxx.

References ka_LocalCell().

Referenced by TAFS::TAFS().

void DeleteAFSToken ( void *  token  ) 

Definition at line 227 of file AFSAuth.cxx.

Referenced by ROOT::RpdPass(), and TAFS::~TAFS().

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  ) 

Definition at line 208 of file AFSAuth.cxx.

Referenced by TAFS::Verify().


Generated on Tue Jul 5 16:07:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1