Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IGenCerts::revokeCert ( P6UINT32  serialNumber,
P6UINT16  onYear,
P6UINT8  onMonth,
P6UINT8  onDay,
P6UINT8  onHour,
P6UINT8  onMinute,
P6UINT8  onSecond 
)
pure virtual

Add the revoked (i.e., invalid) certificate to the CRL.

The revoked certificate is identified by its serial number. This indicates that the invalid certificate should no longer be used for encryption and/or signing of data.

Parameters
serialNumber[ in ] A certificate's serial number assigned by the generating CA
onYear[ in ] must be > 1900, a component of the date the certificate was revoked
onMonth[ in ] { 1 .. 12 }, Jan == 1, Dec == 12
onDay[ in ] { 1 .. 31 }, a value outside of this range results in an error
onHour[ in ] { 0 .. 23 }, 24 hour time is used
onMinute[ in ] { 0 .. 59 },
onSecond[ in ] { 0 .. 59 }, revocation date is in GMT (onYear,onMonth,onDay,onHour,onMinute,onSecond)
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidHandlenewCrl has not been called before this function.
P6R::eInvalidArgOne of the date parameters (e.g., onYear) is out of range.
P6R::eNoMemoryInsufficient memory to to add certificate the CRL.
P6R::eInvalidStateFailed to add certificate to the CRL.
P6R::eFormatErrorFailed to set generated revocation date on the revoked certificate.