Name

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

Description

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

Usage

use Net::SSLeay::X509_NAME_ENTRY;

Class Methods

new

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

Calls native X509_NAME_ENTRY_new function, creates a new Net::SSLeay::X509_NAME_ENTRY 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_ENTRY_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::X509_NAME_ENTRY ();

Calls native X509_NAME_ENTRY_get_data functions given the pointer value of the instance, copies the return value of the native function, creates a new Net::SSLeay::X509_NAME_ENTRY 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_NAME_ENTRY_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.

DESTROY

method DESTROY : void ();

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

FAQ

How to convert a Net::SSLeay::ASN1_OBJECT object to NID?

Use Net::SSLeay::OBJ#obj2nid method.

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License