Name

SPVM::Net::SSLeay::OCSP - OCSP Name Space in OpenSSL

Description

Net::SSLeay::OCSP class in SPVM represents OCSP Name Space in OpenSSL

Usage

use Net::SSLeay::OCSP;

Class Methods

response_status_str

static method response_status_str : string ($code : long);

Calls native OCSP_response_status_str function given $code, and returns its return value.

response_status

static method response_status : int ($resp : Net::SSLeay::OCSP_RESPONSE);

Calls native OCSP_response_status function given $resp, and returns its return value.

Exceptions:

The OCSP response $resp must be defined. Otherwise an exception is thrown.

Exceptions:

If SSL_CTX_new failed, an exception is thrown with eval_error_id set to the basic type ID of Net::SSLeay::Error class.

basic_verify

static method basic_verify : int ($bs : Net::SSLeay::OCSP_BASICRESP, $certs : Net::SSLeay::X509[], $st : Net::SSLeay::X509_STORE, $flags : long);

Calls native OCSP_basic_verify function, and returns its return value.

Exceptions:

If OCSP_basic_verify failed, an exception is thrown with eval_error_id set to the basic type ID of Net::SSLeay::Error class.

basic_add1_cert

static basic_add1_cert : int ($resp : Net::SSLeay::OCSP_BASICRESP, $cert : Net::SSLeay::X509);

Calls native OCSP_basic_add1_cert function given $resp, $cert, puses $cert to the end of certs_list field of $resp, and returns its return value.

Exceptions:

The OCSP_BASICRESP object $resp must be defined. Otherwise an exception is thrown.

The X509 object $cert must be defined. Otherwise an exception is thrown.

If OCSP_basic_add1_cert failed, an exception is thrown with eval_error_id set to the basic type ID of Net::SSLeay::Error class.

check_nonce

static method check_nonce : int ($req : Net::SSLeay::OCSP_REQUEST, $resp : Net::SSLeay::OCSP_BASICRESP);

Calls native OCSP_check_nonce function given $req, $resp, and returns its return value.

Exceptions:

The OCSP_REQUEST object $req must be defined. Otherwise an exception is thrown.

The OCSP_BASICRESP $resp must be defined. Otherwise an exception is thrown.

check_validity

static method check_validity : int ($thisupd : Net::SSLeay::ASN1_GENERALIZEDTIME, $nextupd : Net::SSLeay::ASN1_GENERALIZEDTIME, $sec : long, $maxsec : long);

Calls native OCSP_check_nonce function given $req, $resp, and returns its return value.

Exceptions:

The ASN1_GENERALIZEDTIME object $thisupd must be defined. Otherwise an exception is thrown.

The ASN1_GENERALIZEDTIME $nextupd must be defined. Otherwise an exception is thrown.

If OCSP_check_validity failed, an exception is thrown with eval_error_id set to the basic type ID of Net::SSLeay::Error class.

resp_count

static method resp_count : int ($bs : Net::SSLeay::OCSP_BASICRESP);

Calls native OCSP_resp_count function given $bs, and returns its return value.

Exceptions:

The OCSP_BASICRESP object $bs must be defined. Otherwise an exception is thrown.

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License