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;
Instance Methods
set_hostflags
method set_hostflags : void ($flags : int);
Calls native X509_VERIFY_PARAM_set_hostflags function given $flags.
set1_host
method set1_host : int ($name : string, $namelen : int = 0);
Calls native X509_VERIFY_PARAM_set1_host function given $name, $namelen, and returns its return value.
If $namelen is 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.
set_flags
method set_flags : void ($flags : long);
Calls native X509_VERIFY_PARAM_set_flags function given $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.
DESTROY
method DESTROY : void ();
Frees native X509_VERIFY_PARAM object by calling native X509_VERIFY_PARAM_free function 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