Name

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

Description

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

Usage

use Net::SSLeay::ASN1_STRING;

Class Methods

new

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

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

Exceptions:

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

Instance Methods

length

method length : int ();

Calls native ASN1_STRING_length function given the pointer value of the instance, and returns its return value.

get0_data

method get0_data : string ();

Calls native ASN1_STRING_get0_data function given the pointer value of the instance, converts its return value to a string which length is the return value of native ASN1_STRING_length function, and returns the string.

set

method set : void ($data : string, $len : int = -1);

Calls native ASN1_STRING_set function given the pointer value of the instance, $data, $len,.

DESTROY

method DESTROY : void ();

Calls native ASN1_STRING_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