Name
SPVM::Net::SSLeay::X509_NAME - X509_NAME Data Structure in OpenSSL
Description
Net::SSLeay::X509_NAME class in SPVM represents X509_NAME
data structure in OpenSSL
Usage
use Net::SSLeay::X509_NAME;
Class Methods
new
static method new : Net::SSLeay::X509_NAME ();
Calls native X509_NAME_new function, creates a new Net::SSLeay::X509_NAME object, sets the pointer value of the object to the return value of the native function, and returns the new object.
Exceptions:
If X509_NAME_new failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
Instance Methods
oneline
method oneline : string ();
Calls native X509_NAME_oneline functions given the pointer value of the instance, $buf with NULL, and returns its return value.
get_entry
method get_entry : Net::SSLeay::X509_NAME_ENTRY ($loc : int);
Calls native X509_NAME_get_entry functions given the pointer value of the instance, $loc, creates a new Net::SSLeay::X509_NAME_ENTRY object, copies the return value of the native function using native X509_NAME_ENTRY_dup function, sets the pointer value of the new object to the copied value, and returns the new object.
get_index_by_NID
method get_index_by_NID : int ($nid : int, $lastpos : int);
Calls native X509_NAME_get_index_by_NID functions given the pointer value of the instance, $nid, $lastpos, and returns its return value.
entry_count
method entry_count : int ();
Calls native X509_NAME_entry_count functions given the pointer value of the instance, and returns its return value.
add_entry_by_NID
method add_entry_by_NID : int ($nid : int, $type : int, $bytes : string, $len : int = -1, $loc : int = -1, $set : int = 0);
Calls native X509_NAME_add_entry_by_NID functions given the pointer value of the instance, $nid, $type, $bytes, $len, $loc, $set, and returns its return value.
Exceptions:
The bytes $bytes must be defined. Otherwise an exception is thrown.
If X509_NAME_add_entry_by_NID failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
delete_entry
method delete_entry : Net::SSLeay::X509_NAME_ENTRY ($loc : int);
Calls native X509_NAME_delete_entry functions given the pointer value of the instance, $loc, creates a new Net::SSLeay::X509_NAME_ENTRY object, sets the pointer value of the new object to the return value of the native function,, and returns the new object.
DESTROY
method DESTROY : void ();
Calls native X509_NAME_free function given the pointer value of the instance unless no_free
flag of the instance is a true value.
See Also
Copyright & License
Copyright (c) 2024 Yuki Kimoto
MIT License