CPS_CERT_*

C Specification

#include <nitroWiFi/cps.h>
#define CPS_CERT_OUTOFDATE 0x8000
#define CPS_CERT_BADSERVER 0x4000

#define CPS_CERT_ERRMASK 0x00ff

enum {
	CPS_CERT_NOERROR = 0,
	CPS_CERT_NOROOTCA,
	CPS_CERT_BADSIGNATURE,
	CPS_CERT_UNKNOWN_SIGALGORITHM,
	CPS_CERT_UNKNOWN_PUBKEYALGORITHM
};

Description

Defines error information passed to the callback function called during authentication.

CPS_CERT_OUTOFDATE Independent bit that indicates that the certificate has expired.
CPS_CERT_BADSERVER Independent bit that indicates that the certificate's server name (Common Name) and the specified server name are different.
CPS_CERT_ERRMASK Mask for extracting the error codes shown below.
CPS_CERT_NOERROR Indicates that authentication occurred.
CPS_CERT_NOROOTCA Indicates that there is no root certificate.
CPS_CERT_BADSIGNATURE Indicates that the signatures do not match.
CPS_CERT_UNKNOWN_SIGALGORITHM Indicates an unknown signature algorithm.
CPS_CERT_UNKNOWN_PUBKEYALGORITHM Indicates an unknown public key algorithm.

See Also

Revision History

09/13/2005 Initial version.