Name
SPVM::Net::SSLeay::PEM - OpenSSL PEM data structure
Description
Net::SSLeay::PEM class in SPVM represents OpenSSL PEM data structure.
Usage
use Net::SSLeay::PEM;
Class Methods
read_bio_X509
static method read_bio_X509 : Net::SSLeay::X509 ($bp : Net::SSLeay::BIO);
Calls native PEM_read_bio_X509 function, creates a new Net::SSLeay::X509 object, sets the pointer value of the new object to the return value of the native function, and returns the new object.
Exceptions:
The BIO $bp must be defined. Otherwise an exception is thrown.
If PEM_read_bio_X509 failed and the error is PEM_R_NO_START_LINE
, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error::PEM_R_NO_START_LINE class. If the error is something else, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
read_bio_X509_CRL
static method read_bio_X509_CRL : Net::SSLeay::X509_CRL ($bp : Net::SSLeay::BIO);
Calls native read_bio_X509_CRL function, creates a new Net::SSLeay::X509_CRL object, sets the pointer value of the new object to the return value of the native function, and returns the new object.
Exceptions:
The BIO $bp must be defined. Otherwise an exception is thrown.
If PEM_read_bio_X509_CRL failed and the error is PEM_R_NO_START_LINE
, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error::PEM_R_NO_START_LINE class. If the error is something else, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
read_bio_PrivateKey
static method read_bio_PrivateKey : Net::SSLeay::EVP_PKEY ($bp : Net::SSLeay::BIO);
Calls native PEM_read_bio_PrivateKey function, creates a new Net::SSLeay::EVP_PKEY object, sets the pointer value of the new object to the return value of the native function, and returns the new object.
Exceptions:
The BIO $bp must be defined. Otherwise an exception is thrown.
If PEM_read_bio_PrivateKey failed, an exception is thrown with eval_error_id
set to the basic type ID of Net::SSLeay::Error class.
See Also
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License