Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
sources/PGPUAMmsgFormat.h
//------------------------------------------------------------------------------------ |
// PGPUAM Login Command |
//------------------------------------------------------------------------------------ |
void* FormatLoginCmd (const void *outbuf, StringPtr serverVersion, StringPtr uamName, StringPtr userName, StringPtr challengeString ); |
typedef struct |
{ |
StringPtr userName; // AFP User Name |
StringPtr challengeString; // Challenge String |
}PUAM_LOGIN_CMD; |
void* FormatChallengeStr( const void *outbuf, |
UInt8 *challengeBuffer, |
UInt32 challengeBufferSize ); |
void* ParseLoginCmd(const void *inbuf, UInt32 *length, PUAM_LOGIN_CMD *vmsgP); |
//------------------------------------------------------------------------------------ |
// PGPUAM Login Response |
//------------------------------------------------------------------------------------ |
typedef struct |
{ |
StringPtr CounterChallengePString; // Counter Challenge String |
StringPtr FingerPrintPString; // Fingerprint of challenged key |
}PUAM_LOGIN_RESP; |
void* FormatLoginResp( const void *outbuf, |
StringPtr counterChallengePString, |
StringPtr fingerPrintPString ); |
void* ParseLoginResp(const void *inbuf, UInt32 *length, PUAM_LOGIN_RESP *vmsgP); |
//------------------------------------------------------------------------------------ |
// PGPUAM Login Continue Command |
//------------------------------------------------------------------------------------ |
typedef struct |
{ |
StringPtr SigPString; // Signature reply String |
}PUAM_LOGIN_CONT_CMD; |
void* FormatLoginContinueCmd( const void *outbuf, StringPtr counterChallengePString ); |
void* ParseLoginContinueCmd(const void *inbuf, UInt32 *length, PUAM_LOGIN_CONT_CMD *vmsgP); |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-07-22