Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.DSI.Ocsp

Classes, interfaces and records

interfaceiCertID

(no public members)

interfaceiRequest

(no public members)

interfaceiTBSRequest

(no public members)

interfaceiSignature

(no public members)

interfaceiOCSPRequest

(no public members)

interfaceiRevokedInfo

(no public members)

interfaceiCertStatusChoice

(no public members)

interfaceiSingleResponse

(no public members)

interfaceiResponderID

(no public members)

interfaceiResponseData

(no public members)

interfaceiBasicOCSPResponse

(no public members)

interfaceiResponseBytes

(no public members)

interfaceiOCSPResponse

(no public members)

interfaceiCertID

inherits from iASN1CustomStruct

iCertID / tCertID CertID ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier, issuerNameHash OCTET STRING,
issuerKeyHash OCTET STRING,
serialNumber CertificateSerialNumber Uniquely identifies the certificate whose status is requested.

function get_hashAlgorithm: ObjectIdentifier; function get_issuerNameHash: OctetString; function get_issuerKeyHash: OctetString; function get_serialNumber: iASN1Integer; procedure set_hashAlgorithm(const aValue: ObjectIdentifier); procedure set_issuerNameHash(const aValue: OctetString); procedure set_issuerKeyHash(const aValue: OctetString); function Equals(const aCertID: iCertID): Boolean;
Equals returns True if the two CertID values denote the same certificate, comparing the issuer hashes and the serial number but ignoring any difference in the (optional) hash algorithm parameter encoding.
property hashAlgorithm: ObjectIdentifier read get_hashAlgorithm write set_hashAlgorithm; property issuerNameHash: OctetString read get_issuerNameHash write set_issuerNameHash; property issuerKeyHash: OctetString read get_issuerKeyHash write set_issuerKeyHash; property serialNumber: iASN1Integer read get_serialNumber;

classtCertID

inherits from tASN1CustomStruct

implements iCertID

function Equals(const aCertID: iCertID): Boolean; reintroduce;
Delegates to Assigned, passing 1 argument(s), and returns its result.
property hashAlgorithm: ObjectIdentifier read get_hashAlgorithm write set_hashAlgorithm; property issuerNameHash: OctetString read get_issuerNameHash write set_issuerNameHash; property issuerKeyHash: OctetString read get_issuerKeyHash write set_issuerKeyHash; property serialNumber: iASN1Integer read get_serialNumber;

classtOCSPAlgorithmIdentifier

inherits from tASN1CustomStruct

tOCSPAlgorithmIdentifier AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER, parameters NULL OPTIONAL A minimal AlgorithmIdentifier suitable for the CertID hash algorithm (a digest algorithm whose parameters are absent or NULL).

(no public members)

interfaceiRequest

inherits from iASN1CustomStruct

iRequest / tRequest Request ::= SEQUENCE {
reqCert CertID, singleRequestExtensions [0] EXPLICIT Extensions OPTIONAL

function get_reqCert: iCertID; function get_singleRequestExtensions: iExtensions; property reqCert: iCertID read get_reqCert; property singleRequestExtensions: iExtensions read get_singleRequestExtensions;

classtRequest

inherits from tASN1CustomStruct

implements iRequest

property reqCert: iCertID read get_reqCert; property singleRequestExtensions: iExtensions read get_singleRequestExtensions;

classtSequenceOfRequest

inherits from tASN1CustomOFStruct

(no public members)

interfaceiTBSRequest

inherits from iASN1CustomStruct

iTBSRequest / tTBSRequest TBSRequest ::= SEQUENCE {
version [0] EXPLICIT Version DEFAULT v1,
requestorName [1] EXPLICIT GeneralName OPTIONAL,
requestList SEQUENCE OF Request, requestExtensions [2] EXPLICIT Extensions OPTIONAL

function get_requestorName: iGeneralName; function get_requestExtensions: iExtensions; function get_requestCount: Integer; function get_requests(aIndex: Integer): iRequest; function AddRequest: iRequest;
AddRequest appends and returns a new, empty Request entry.
property requestorName: iGeneralName read get_requestorName; property requestExtensions: iExtensions read get_requestExtensions; property requestCount: Integer read get_requestCount; property requests[aIndex: Integer]: iRequest read get_requests;

classtTBSRequest

inherits from tASN1CustomStruct

implements iTBSRequest

function AddRequest: iRequest; property requestorName: iGeneralName read get_requestorName; property requestExtensions: iExtensions read get_requestExtensions; property requestCount: Integer read get_requestCount; property requests[aIndex: Integer]: iRequest read get_requests;

interfaceiSignature

inherits from iASN1CustomStruct

iSignature / tSignature Signature ::= SEQUENCE {
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING,
certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL Models the optional request signature. The client implemented here never signs requests; the type is provided for syntactic completeness.

function get_signatureAlgorithm: iSignatureAlgorithmIdentifier; function get_signature: iASN1Base; property signatureAlgorithm: iSignatureAlgorithmIdentifier read get_signatureAlgorithm; property signature: iASN1Base read get_signature;

classtSignature

inherits from tASN1CustomStruct

implements iSignature

property signatureAlgorithm: iSignatureAlgorithmIdentifier read get_signatureAlgorithm; property signature: iASN1Base read get_signature;

interfaceiOCSPRequest

inherits from iASN1CustomStruct

iOCSPRequest / tOCSPRequest OCSPRequest ::= SEQUENCE {
tbsRequest TBSRequest,
optionalSignature [0] EXPLICIT Signature OPTIONAL The top level request structure that is DER encoded and posted to the responder.

function get_tbsRequest: iTBSRequest; function get_optionalSignature: iSignature; property tbsRequest: iTBSRequest read get_tbsRequest; property optionalSignature: iSignature read get_optionalSignature;

classtOCSPRequest

inherits from tASN1CustomStruct

implements iOCSPRequest

property tbsRequest: iTBSRequest read get_tbsRequest; property optionalSignature: iSignature read get_optionalSignature;

classtSequenceOfCertificate

inherits from tASN1CustomOFStruct

(no public members)

interfaceiRevokedInfo

inherits from iASN1CustomStruct

iRevokedInfo / tRevokedInfo RevokedInfo ::= SEQUENCE {
revocationTime GeneralizedTime,
revocationReason [0] EXPLICIT CRLReason OPTIONAL

function get_revocationTime: TDateTime; function get_hasRevocationReason: Boolean; function get_revocationReason: Integer; property revocationTime: TDateTime read get_revocationTime; property hasRevocationReason: Boolean read get_hasRevocationReason; property revocationReason: Integer read get_revocationReason;

classtRevokedInfo

inherits from tASN1CustomStruct

implements iRevokedInfo

property revocationTime: TDateTime read get_revocationTime; property hasRevocationReason: Boolean read get_hasRevocationReason; property revocationReason: Integer read get_revocationReason;

interfaceiCertStatusChoice

inherits from iASN1CustomChoice

iCertStatusChoice / tCertStatusChoice CertStatus ::= CHOICE {
good [0] IMPLICIT NULL, revoked [1] IMPLICIT RevokedInfo, unknown [2] IMPLICIT UnknownInfo

function get_Choice: tOCSPCertStatusEnum; function get_AsRevoked: iRevokedInfo; property Choice: tOCSPCertStatusEnum read get_Choice; property AsRevoked: iRevokedInfo read get_AsRevoked;

classtCertStatusChoice

inherits from tASN1CustomChoice

implements iCertStatusChoice

property Choice: tOCSPCertStatusEnum read get_Choice; property AsRevoked: iRevokedInfo read get_AsRevoked;

interfaceiSingleResponse

inherits from iASN1CustomStruct

iSingleResponse / tSingleResponse SingleResponse ::= SEQUENCE {
certID CertID,
certStatus CertStatus,
thisUpdate GeneralizedTime,
nextUpdate [0] EXPLICIT GeneralizedTime OPTIONAL, singleExtensions [1] EXPLICIT Extensions OPTIONAL

function get_certID: iCertID; function get_certStatus: iCertStatusChoice; function get_thisUpdate: TDateTime; function get_hasNextUpdate: Boolean; function get_nextUpdate: TDateTime; property certID: iCertID read get_certID; property certStatus: iCertStatusChoice read get_certStatus; property thisUpdate: TDateTime read get_thisUpdate; property hasNextUpdate: Boolean read get_hasNextUpdate; property nextUpdate: TDateTime read get_nextUpdate;

classtSingleResponse

inherits from tASN1CustomStruct

implements iSingleResponse

property certID: iCertID read get_certID; property certStatus: iCertStatusChoice read get_certStatus; property thisUpdate: TDateTime read get_thisUpdate; property hasNextUpdate: Boolean read get_hasNextUpdate; property nextUpdate: TDateTime read get_nextUpdate;

classtSequenceOfSingleResponse

inherits from tASN1CustomOFStruct

(no public members)

interfaceiResponderID

inherits from iASN1CustomChoice

iResponderID / tResponderID ResponderID ::= CHOICE {
byName [1] Name,
byKey [2] KeyHash

function get_Choice: tOCSPResponderIDEnum; function get_AsByName: iName; function get_AsByKey: OctetString; property Choice: tOCSPResponderIDEnum read get_Choice; property AsByName: iName read get_AsByName; property AsByKey: OctetString read get_AsByKey;

classtResponderID

inherits from tASN1CustomChoice

implements iResponderID

property Choice: tOCSPResponderIDEnum read get_Choice; property AsByName: iName read get_AsByName; property AsByKey: OctetString read get_AsByKey;

interfaceiResponseData

inherits from iASN1CustomStruct

iResponseData / tResponseData ResponseData ::= SEQUENCE {
version [0] EXPLICIT Version DEFAULT v1,
responderID ResponderID,
producedAt GeneralizedTime,
responses SEQUENCE OF SingleResponse, responseExtensions [1] EXPLICIT Extensions OPTIONAL The to-be-signed part of a BasicOCSPResponse.

function get_responderID: iResponderID; function get_producedAt: TDateTime; function get_responseCount: Integer; function get_responses(aIndex: Integer): iSingleResponse; function get_responseExtensions: iExtensions; property responderID: iResponderID read get_responderID; property producedAt: TDateTime read get_producedAt; property responseCount: Integer read get_responseCount; property responses[aIndex: Integer]: iSingleResponse read get_responses; property responseExtensions: iExtensions read get_responseExtensions;

classtResponseData

inherits from tASN1CustomStruct

implements iResponseData

property responderID: iResponderID read get_responderID; property producedAt: TDateTime read get_producedAt; property responseCount: Integer read get_responseCount; property responses[aIndex: Integer]: iSingleResponse read get_responses; property responseExtensions: iExtensions read get_responseExtensions;

interfaceiBasicOCSPResponse

inherits from iSigned

iBasicOCSPResponse / tBasicOCSPResponse BasicOCSPResponse ::= SEQUENCE {
tbsResponseData ResponseData,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING,
certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL Descends from tSigned so the response signature can be verified with the inherited CheckSignature method, exactly as a certificate or CRL is.

function get_tbsResponseData: iResponseData; function get_certificateCount: Integer; function get_certificates(aIndex: Integer): iCertificate; property tbsResponseData: iResponseData read get_tbsResponseData; property certificateCount: Integer read get_certificateCount; property certificates[aIndex: Integer]: iCertificate read get_certificates;

classtBasicOCSPResponse

inherits from tSigned

implements iBasicOCSPResponse

property tbsResponseData: iResponseData read get_tbsResponseData; property certificateCount: Integer read get_certificateCount; property certificates[aIndex: Integer]: iCertificate read get_certificates;

interfaceiResponseBytes

inherits from iASN1CustomStruct

iResponseBytes / tResponseBytes ResponseBytes ::= SEQUENCE {
responseType OBJECT IDENTIFIER,
response OCTET STRING

function get_responseType: ObjectIdentifier; function get_response: OctetString; property responseType: ObjectIdentifier read get_responseType; property response: OctetString read get_response;

classtResponseBytes

inherits from tASN1CustomStruct

implements iResponseBytes

property responseType: ObjectIdentifier read get_responseType; property response: OctetString read get_response;

interfaceiOCSPResponse

inherits from iASN1CustomStruct

iOCSPResponse / tOCSPResponse OCSPResponse ::= SEQUENCE {
responseStatus OCSPResponseStatus,
responseBytes [0] EXPLICIT ResponseBytes OPTIONAL The top level response structure as received from the responder.

function get_responseStatus: tOCSPResponseStatus; function get_hasResponseBytes: Boolean; function get_responseBytes: iResponseBytes; function GetBasicResponse: iBasicOCSPResponse;
GetBasicResponse decodes the embedded id-pkix-ocsp-basic response. Returns nil if responseBytes is absent or is of a different response type.
property responseStatus: tOCSPResponseStatus read get_responseStatus; property hasResponseBytes: Boolean read get_hasResponseBytes; property responseBytes: iResponseBytes read get_responseBytes;

classtOCSPResponse

inherits from tASN1CustomStruct

implements iOCSPResponse

function GetBasicResponse: iBasicOCSPResponse; property responseStatus: tOCSPResponseStatus read get_responseStatus; property hasResponseBytes: Boolean read get_hasResponseBytes; property responseBytes: iResponseBytes read get_responseBytes;

Types (enumerations, sets, aliases)

enumTRevocationPolicy

TRevocationPolicy governs how certificate revocation is checked and, in particular, what happens when the status cannot be established (the responder or CRL distribution point is unreachable, no fresh CRL is held, an OCSP error occurs, ...). A DEFINITE "revoked" verdict is always honoured regardless of policy; the policy only decides the INCONCLUSIVE case. Declared here (in the OCSP base unit) rather than in a component unit so that BOTH the Mobile component layer (StreamSec.Mobile.X509Comp) AND the DSI filter/key-manager layer (StreamSec.DSI.PkixKeyFilter) can reach it from their interface sections; the DSI classes are used client- and server-side.

  TRevocationPolicy = (
    rpIgnore,    // Do not perform revocation checking at all.
    rpSoftFail,  // Check; treat an inconclusive result as good. This is the
                 //   default and matches typical browser behaviour: a down
                 //   responder must not break every connection.
    rpHardFail); // Check; an inconclusive result is fatal.

enumtOCSPResponseStatus

tOCSPResponseStatus The OCSPResponseStatus ENUMERATED (RFC 6960 4.2.1).

  tOCSPResponseStatus = (orsSuccessful,       // 0 - Response has valid confirmations.
                         orsMalformedRequest, // 1 - Illegal confirmation request.
                         orsInternalError,    // 2 - Internal error in issuer.
                         orsTryLater,         // 3 - Try again later.
                         orsReserved4,        // 4 - Not used.
                         orsSigRequired,      // 5 - Must sign the request.
                         orsUnauthorized);    // 6 - Request unauthorized.

enumtOCSPCertStatusEnum

tOCSPCertStatusEnum Discriminator for the CertStatus CHOICE. The leading ocsUndefined entry keeps the value/ChoiceIndex relation that the PKIX CHOICE classes rely on (the wire choice index is Ord(value) - 1).

  tOCSPCertStatusEnum = (ocsUndefined,
                         ocsGood,
                         ocsRevoked,
                         ocsUnknown);

enumtOCSPResponderIDEnum

tOCSPResponderIDEnum Discriminator for the ResponderID CHOICE (byName / byKey).

  tOCSPResponderIDEnum = (ridUndefined,
                          ridByName,
                          ridByKey);

Routines