Name
SPVM::Net::SSLeay::X509_STORE - X509_STORE data structure in OpenSSL
Description
Net::SSLeay::X509_STORE in SPVM represetns X509_STORE data structure in OpenSSL.
Usage
use Net::SSLeay::X509_STORE;
Class Methods
new
static method new : Net::SSLeay::X509_STORE ();
Calls native X509_STORE_new function, creates a new Net::SSLeay::X509_STORE object, sets the pointer value of the object to the return value of the native function, and returns the new object.
Exceptions:
If X509_STORE_new failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
Instance Methods
set_flags
method set_flags : void ($flags : long);
Calls native X509_STORE_set_flags function given $flags.
Exceptions:
If X509_STORE_set_flags failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
add_cert
method add_cert : int ($x : Net::SSLeay::X509);
Calls native X509_STORE_add_cert function given the pointer value of $x.
Exceptions:
If X509_STORE_add_cert failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
add_crl
method add_crl : void ($x : Net::SSLeay::X509_CRL);
Calls native X509_STORE_add_crl function given the pointer value of $x.
Exceptions:
If X509_STORE_add_crl 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_STORE_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 new Net::SSLeay::X509_STORE object?
A way is using Net::SSLeay::SSL_CTX#get_cert_store method.
See Also
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License