Add Method
Adds a new revoked certificate entry.
Syntax
ANSI (Cross Platform) int Add(const char* lpSerialNumber, int lenSerialNumber, const char* lpszRevocationDate, int iRevocationReason); Unicode (Windows) INT Add(LPCSTR lpSerialNumber, INT lenSerialNumber, LPCWSTR lpszRevocationDate, INT iRevocationReason);
- (int)add:(NSData*)serialNumber :(NSString*)revocationDate :(int)revocationReason;
#define MID_CRLMANAGER_ADD 2 SECUREBLACKBOX_EXTERNAL int SECUREBLACKBOX_CALL SecureBlackbox_CRLManager_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
Use this method to add information about a revoked certificate to the CRL. SerialNumber identifies the certificate, while RevocationDate and RevocationReason set the termination date and the reason for revocation.
rrUnknown | 0x0000 | |
rrUnspecified | 0x0001 | |
rrKeyCompromise | 0x0002 | |
rrCACompromise | 0x0004 | |
rrAffiliationChanged | 0x0008 | |
rrSuperseded | 0x0010 | |
rrCessationOfOperation | 0x0020 | |
rrCertificateHold | 0x0040 | |
rrRemoveFromCRL | 0x0080 | |
rrPrivilegeWithdrawn | 0x0100 | |
rrAACompromise | 0x0200 |
Note that a single CRL may only contain certificates issued by a single CA, and this CRL must be signed by that CA.
Error Handling (C++)
This method returns an Integer value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.