Name

SPVM::Net::SSLeay::DER - Name Space for Data Conversion Functions between DER Format and Internal Data Structure in OpenSSL

Description

Net::SSLeay::DER class in SPVM represents a name space for data conversion functions between DER format and internal data structure, such as d2i_TYPE, i2d_TYPE functions in OpenSSL.

Usage

use Net::SSLeay::DER;

Template Methods

The following methods are template methods for only descriptions. They do not exist. TYPE represents a real type of OpenSSL.

d2i_TYPE

static method d2i_TYPE : Net::SSLeay::TYPE ($a_ref : Net::SSLeay::TYPE[], $ppin_ref : string[], $length : long);

Calls native d2i_TYPE function given $a_ref, $ppin_ref, $length, and creates a new Net::SSLeay::TYPE object, sets the pointer value of the new object to the return value of the native function, and returns the new object.

Exceptions:

$a_ref must be undef(Currently reuse feature is not available). Otherwise an exception is thrown.

$ppin_ref must be defined. Otherwise an exception is thrown. Otherwise an exception is thrown.

The length of $ppin_ref must be 1. Otherwise an exception is thrown. Otherwise an exception is thrown.

$ppin_ref at index 0 must be defined. Otherwise an exception is thrown. Otherwise an exception is thrown.

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

i2d_TYPE

static method i2d_TYPE : int ($a : Net::SSLeay::TYPE, $ppout_ref : string[]);

Calls native i2d_TYPE function given $a_ref, $ppin_ref, $length, and returns its return value.

Exceptions:

$a must be undef. Otherwise an exception is thrown.

$ppout_ref must be defined. Otherwise an exception is thrown. Otherwise an exception is thrown.

The length of $ppout_ref must be 1. Otherwise an exception is thrown. Otherwise an exception is thrown.

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

d2i_TYPE_bio

static method d2i_TYPE_bio : Net::SSLeay::TYPE_bio ($bp : Net::SSLeay::BIO);

Calls native d2i_TYPE_bio function given the pointer object of $bp, NULL, and creates a new Net::SSLeay::TYPE_bio object, sets the pointer value of the new object to the return value of the native function, and returns the new object.

Exceptions:

The BIO object $bp must be defined.

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

Class Methods

d2i_PKCS12

static method d2i_PKCS12 : Net::SSLeay::PKCS12 ($a_ref : Net::SSLeay::PKCS12[], $ppin_ref : string[], $length : long);

See "d2i_TYPE" template method.

i2d_PKCS12

static method i2d_PKCS12 : int ($a : Net::SSLeay::PKCS12, $ppout_ref : string[]);

See "i2d_TYPE" template method.

d2i_PKCS12_bio

static method d2i_PKCS12_bio : Net::SSLeay::PKCS12 ($bio : Net::SSLeay::BIO);

See "d2i_TYPE_bio" template method.

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License