Name

SPVM::Net::SSLeay::ERR - OpenSSL Errors

Description

Net::SSLeay::ERR class in SPVM has methods to manipulate OpenSSL Errors.

Usage

use Net::SSLeay::ERR;

Class Methods

error_string_n

static method error_string_n : void ($e : long, $buf : mutable string, $len : int = -1);

Calls native error_string_n function.

Exceptions:

The buffer $buf must be defined. Otherwise an exception is thrown.

The length $len must be less than or equal to the length of the buffer $buf. Otherwise an exception is thrown.

error_string

static method error_string : string ($e : long);

Same as ""error_string_n" method, but $buf of the length 256 is created automatically.

The returned string is cut just before \0.

get_error

method get_error : long ();

Returns the earliest error code from the thread's error queue and removes the entry by calling native ERR_get_error function.

peek_error

method peek_error : long ();

Returns the earliest error code from the thread's error queue and removes the entry by calling native ERR_peek_error function.

peek_last_error

method peek_last_error : long ();

Returns the earliest error code from the thread's error queue and removes the entry by calling native ERR_peek_last_error function.

See Also

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License