Challenge Property

The challenge value.

Syntax

ANSI (Cross Platform)
int GetChallenge(char* &lpChallenge, int &lenChallenge);
int SetChallenge(const char* lpChallenge, int lenChallenge); Unicode (Windows) INT GetChallenge(LPSTR &lpChallenge, INT &lenChallenge);
INT SetChallenge(LPCSTR lpChallenge, INT lenChallenge);
@property (nonatomic,readwrite,assign,getter=challenge,setter=setChallenge:) NSString* challenge;
- (NSString*)challenge;
- (void)setChallenge:(NSString*)newChallenge;

@property (nonatomic,readwrite,assign,getter=challengeB,setter=setChallengeB:) NSData* challengeB; - (NSData*)challengeB; - (void)setChallengeB:(NSData*)newChallenge;
#define PID_OCRA_CHALLENGE 1

IPWORKSAUTH_EXTERNAL void* IPWORKSAUTH_CALL IPWorksAuth_OCRA_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSAUTH_EXTERNAL int IPWORKSAUTH_CALL IPWorksAuth_OCRA_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property is populated after calling CreateChallenge. The format is specified by the ChallengeFormat property and the length is defined by the ChallengeLength property.

This property must be specified before calling CalculateResponse or VerifyResponse.

Data Type

Binary String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Auth 2020 C++ Edition - Version 20.0 [Build 8155]