buffer_unpackers.h [plain text]
#ifndef __BUFFER_UNPACKERS_H__
#define __BUFFER_UNPACKERS_H__
#include <Kerberos/krb5.h>
#include "CDSAuthDefs.h"
#include "digestmd5.h"
SInt32 Get2FromBuffer ( tDataBufferPtr inAuthData,
tDataList **inOutDataList,
char **inOutItemOne,
char **inOutItemTwo,
unsigned int *outItemCount );
tDirStatus GetNameAndDataFromBuffer ( tDataBufferPtr inAuthData,
tDataList **inOutDataList,
char **inOutItemOne,
unsigned char **inOutItemTwo,
UInt32 *outItemTwoLength,
unsigned int *outItemCount );
SInt32 UnpackSambaBufferFirstThreeItems ( tDataBufferPtr inAuthData,
tDataListPtr *outDataList,
char **outUserName,
unsigned char *outChallenge,
UInt32 *outChallengeLen,
unsigned char **outResponse,
UInt32 *outResponseLen );
SInt32 UnpackSambaBuffer ( tDataBufferPtr inAuthData,
char **outUserName,
unsigned char *outC8,
unsigned char *outP24 );
SInt32 UnpackNTLMv2Buffer ( tDataBufferPtr inAuthData,
char **outNIName,
unsigned char *outChal,
unsigned char **outDigest,
UInt32 *outDigestLen,
char **outSambaName,
char **outDomain );
SInt32 UnpackMSCHAPv2Buffer ( tDataBufferPtr inAuthData,
char **outNIName,
unsigned char *outChal,
unsigned char **outPeerChal,
unsigned char **outDigest,
UInt32 *outDigestLen,
char **outSambaName);
SInt32 UnpackMPPEKeyBuffer ( tDataBufferPtr inAuthData,
char **outUserName,
unsigned char *outP24,
int *outKeySize );
SInt32 UnpackDigestBuffer ( tDataBufferPtr inAuthData,
char **outUserName,
digest_context_t *digestContext );
SInt32 UnpackCramBuffer ( tDataBufferPtr inAuthData,
char **outUserName,
char **outChal,
unsigned char **outResponse,
UInt32 *outResponseLen );
SInt32 UnpackAPOPBuffer ( tDataBufferPtr inAuthData,
char **outUserName,
char **outChal,
char **outResponse );
SInt32 RepackBufferForPWServer ( tDataBufferPtr inBuff,
const char *inUserID,
UInt32 inUserIDNodeNum,
tDataBufferPtr *outBuff );
SInt32 GetUserNameFromAuthBuffer ( tDataBufferPtr inAuthData,
UInt32 inUserNameIndex,
char **outUserName,
int *outUserNameBufferLength = NULL );
SInt32 UnpackUserWithAABuffer ( tDataBufferPtr inAuthData,
UInt32 *outAACount,
char **outAAList[] );
tDirStatus GetKrbCredentialFromAuthBuffer ( tDataBufferPtr inAuthData,
char **outUserName,
char **outPrincipal,
krb5_creds **outCred );
#endif