Name

SPVM::Net::SSLeay::X509_EXTENSION - X509_EXTENSION Data Structure in OpenSSL

Description

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

Usage

use Net::SSLeay::X509_EXTENSION;

Class Methods

new

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

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

Exceptions:

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

Instance Methods

get_data

method get_data : Net::SSLeay::ASN1_OCTET_STRING ();

Calls native X509_EXTENSION_get_data functions given the pointer value of the instance, copies the return value of the native function, creates a new Net::SSLeay::ASN1_OCTET_STRING object, sets the pointer value of the new object to the copied value, and returns the new object.

get_object

method get_object : Net::SSLeay::ASN1_OBJECT ();

Calls native X509_EXTENSION_get_object functions given the pointer value of the instance, creates a new Net::SSLeay::ASN1_OBJECT, sets the pointer value of the new object to the return value of the native function sets no_free flag to 1, and returns the new object.

get_critical

method get_critical : int ();

Calls native X509_EXTENSION_get_critical functions given the pointer value of the instance, and returns its return value.

set_object

method set_object : int ($obj : Net::SSLeay::ASN1_OBJECT);

Calls native X509_EXTENSION_set_object functions given the pointer value of the instance, the pointer value of $obj, and returns its return value.

set_critical

method set_critical : int ($crit ; int);

Calls native X509_EXTENSION_set_critical functions given the pointer value of the instance, $crit, and returns its return value.

set_data

method set_data : int ($data : Net::SSLeay::ASN1_OCTET_STRING);

Calls native X509_EXTENSION_set_data functions given the pointer value of the instance, the pointer value of $data, and returns its return value.

DESTROY

method DESTROY : void ();

Calls native X509_EXTENSION_free function given the pointer value of the instance if no_free flag of the instance is not a true value.

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License