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);

Sets the host flags to $flags by calling X509_VERIFY_PARAM_set_hostflags function.

set1_host

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

Sets the host name $name of the length $namelen by calling X509_VERIFY_PARAM_set1_host function.

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.

DESTROY

method DESTROY : void ();

Frees X509_VERIFY_PARAM object by calling 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