SecureBlackbox 2020 C++ Edition

Questions / Feedback?

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.

rrUnknown0x0000
rrUnspecified0x0001
rrKeyCompromise0x0002
rrCACompromise0x0004
rrAffiliationChanged0x0008
rrSuperseded0x0010
rrCessationOfOperation0x0020
rrCertificateHold0x0040
rrRemoveFromCRL0x0080
rrPrivilegeWithdrawn0x0100
rrAACompromise0x0200

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.

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