Name
SPVM::Net::SSLeay::ASN1_TIME - ASN1_TIME Data Structure in OpenSSL
Description
Net::SSLeay::ASN1_TIME class in SPVM represents ASN1_TIME data structure in OpenSSL
Usage
use Net::SSLeay::ASN1_TIME;
Class Methods
new
static method new : Net::SSLeay::ASN1_TIME ();
Calls native ASN1_TIME_new function, creates a new Net::SSLeay::ASN1_TIME object, sets the pointer value of the object to the return value of the native function, and returns the new object.
Exceptions:
If ASN1_TIME_new failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
Instance Methods
set
static method set : void ($t : long);
Calls native ASN1_TIME_set function given the pointer value of the instance, $t.
Exceptions:
If ASN1_TIME_new failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
check
method check : int ();
Calls native ASN1_TIME_check function given the pointer value of the instance, and returns its return value.
method print : int ($b : Net::SSLeay::BIO);
Calls native ASN1_TIME_print function given $b, the pointer value of the instance.
Exceptions:
If ASN1_TIME_print failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
to_tm
method to_tm : int ($tm : Sys::Time::Tm);
Calls native ASN1_TIME_to_tm function given the pointer value of the instance, $tm.
Exceptions:
If ASN1_TIME_to_tm failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
to_generalizedtime
method to_generalizedtime : Net::SSLeay::ASN1_GENERALIZEDTIME ();
Calls native ASN1_TIME_to_generalizedtime function given the pointer value of the instance, NULL, creates a new Net::SSLeay::ASN1_GENERALIZEDTIME, sets the pointer value of the new object to the return value of the native function, and returns the new object.
Exceptions:
If ASN1_TIME_to_generalizedtime 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 ASN1_TIME_free function given the pointer value of the instance if no_free
flag of the instance is not a true value.
See Also
Copyright & License
Copyright (c) 2024 Yuki Kimoto
MIT License