SecureBlackbox 2020 C++ Edition

Questions / Feedback?

StatusRequest Event

Requests a certificate status from the application.

Syntax

ANSI (Cross Platform)
virtual int FireStatusRequest(OCSPServerStatusRequestEventParams *e);
typedef struct {
int64 ConnectionId;
const char *HashAlgorithm;
const char *IssuerNameHash; int lenIssuerNameHash;
const char *IssuerKeyHash; int lenIssuerKeyHash;
const char *CertificateSerial; int lenCertificateSerial;
int CertStatus;
int Reason;
char *RevocationTime;
char *ThisUpdate;
char *NextUpdate; int reserved; } OCSPServerStatusRequestEventParams; Unicode (Windows) virtual INT FireStatusRequest(OCSPServerStatusRequestEventParams *e);
typedef struct {
LONG64 ConnectionId;
LPCWSTR HashAlgorithm;
LPCSTR IssuerNameHash; INT lenIssuerNameHash;
LPCSTR IssuerKeyHash; INT lenIssuerKeyHash;
LPCSTR CertificateSerial; INT lenCertificateSerial;
INT CertStatus;
INT Reason;
LPWSTR RevocationTime;
LPWSTR ThisUpdate;
LPWSTR NextUpdate; INT reserved; } OCSPServerStatusRequestEventParams;
- (void)onStatusRequest:(long long)connectionId :(NSString*)hashAlgorithm :(NSData*)issuerNameHash :(NSData*)issuerKeyHash :(NSData*)certificateSerial :(int*)certStatus :(int*)reason :(NSString**)revocationTime :(NSString**)thisUpdate :(NSString**)nextUpdate;
#define EID_OCSPSERVER_STATUSREQUEST 9

virtual INT SECUREBLACKBOX_CALL FireStatusRequest(LONG64 &lConnectionId, LPSTR &lpszHashAlgorithm, LPSTR &lpIssuerNameHash, INT &lenIssuerNameHash, LPSTR &lpIssuerKeyHash, INT &lenIssuerKeyHash, LPSTR &lpCertificateSerial, INT &lenCertificateSerial, INT &iCertStatus, INT &iReason, LPSTR &lpszRevocationTime, LPSTR &lpszThisUpdate, LPSTR &lpszNextUpdate);

Remarks

Subscribe to this event to provide, alter, or inspect certificate statuses produced by the OCSP server.

ConnectionId returns the unique identifier of the client making the request. IssuerNameHash and IssuerKeyHash specify the message digests of the certificate issuer's name and public key obtained with the use of HashAlgorithm. CertificateSerial specifies the serial number of the checked certificate.

Use the by-ref parameters CertStatus, Reason, RevocationTime, ThisUpdate, and NextUpdate to check or alter the status details of the requested certificate.

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