Name

SPVM::Net::SSLeay::X509_CRL - X509_CRL data structure in OpenSSL

Description

Net::SSLeay::X509_CRL class in SPVM represents X509_CRL data structure in OpenSSL

Usage

use Net::SSLeay::X509_CRL;

Class Methods

new

static method new : Net::SSLeay::X509_CRL ();

Calls native X509_CRL_new function, creates a new Net::SSLeay::X509_CRL object, sets the pointer value of the object to the return value of the native function, and returns the new object.

Exceptions:

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

Instance Methods

get_REVOKED

method get_REVOKED : Net::SSLeay::X509_REVOKED[] ();

Calls native get_REVOKED function given the pointer value of the instance.

And creates a new Net::SSLeay::X509_REVOKED array,

And runs the following loop: copies the element at index $i of the return value(STACK_OF(X509_REVOKED)) of the native function using native X509_REVOKED_dup, creates a new Net::SSLeay::X509_REVOKED object, sets the pointer value of the new object to the native copied value, and puses the new object to the new array.

And returns the new array.

DESTROY

method DESTROY : void ();

Calls native X509_CRL_free function given the pointer value of the instance unless no_free flag of the instance is a true value.

FAQ

How to create a new Net::SSLeay::X509_CRL object?

A way is reading PEM file by calling native Net::SSLeay::PEM#read_bio_X509_CRL method.

See Also

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License