Name

SPVM::Net::SSLeay::X509_VERIFY_PARAM - X509_VERIFY_PARAM Data Structure in OpenSSL.

Description

Net::SSLeay::X509_VERIFY_PARAM class in SPVM represents X509_VERIFY_PARAM data structure in OpenSSL.

Usage

use Net::SSLeay::X509_VERIFY_PARAM;

Class Methods

new

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

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

Exceptions:

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

Instance Methods

get_flags

method get_flags : long ();

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

set_flags

method set_flags : void ($flags : long);

Calls native X509_VERIFY_PARAM_set_flags function given the pointer value of the instance, $flags, and returns its return value.

Exceptions:

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

clear_flags

method clear_flags : void ($flags : long);

Calls native X509_VERIFY_PARAM_clear_flags function given the pointer value of the instance, $flags, and returns its return value.

Exceptions:

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

get_hostflags

method get_hostflags : int ();

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

set_hostflags

method set_hostflags : void ($flags : int);

Calls native X509_VERIFY_PARAM_set_hostflags function given the pointer value of the instance, $flags.

set1_host

method set1_host : int ($name : string, $namelen : int = -1);

Calls native X509_VERIFY_PARAM_set1_host function given the pointer value of the instance, $name, $namelen, and returns its return value.

If $namelen is less than 0, it is set to the length of $name.

Exceptions:

The host name $name must be defined. Otherwise an exception is thrown.

The length $namelen must be greater than or equal to the length of the host name $name. Otherwise an exception is thrown.

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

set1_ip_asc

method set1_ip_asc : int ($ipasc : string);

Calls native X509_VERIFY_PARAM_set1_ip_asc function given the pointer value of the instance, $ipasc, and returns its return value.

Exceptions:

The IP address $ipasc must be defined. Otherwise an exception is thrown.

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

set1_email

method set1_email : int ($email : string, $emaillen : int = -1);

Calls native X509_VERIFY_PARAM_set1_email function given the pointer value of the instance, $email, $emaillen, and returns its return value.

If $namelen is less than 0, it is set to the length of $name.

Exceptions:

The email $email must be defined. Otherwise an exception is thrown.

The length $emaillen must be greater than or equal to the length of the host name $name. Otherwise an exception is thrown.

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

DESTROY

method DESTROY : void ();

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

FAQ

How to get a Net::SSLeay::X509_VERIFY_PARAM object?

A way is using Net::SSLeay::SSL_CTX#get0_param method.

See Also

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License