Name
SPVM::Net::SSLeay::Util - Utilitiy Methods for OpenSSL
Description
Net::SSLeay::Util class in SPVM has utility methods for OpenSSL.
Usage
use Net::SSLeay::Util;
Class Methods
convert_to_wire_format
static method convert_to_wire_format : byte[] ($protocols : string[]);
Converts to the protocols $protocols to a wire format, and returns it.
Exceptions:
The protocols $protocols must be defined. Otherwise an exception is thrown.
The element of the protocols $protocols at index $i must be defined. Otherwise an exception is thrown.
The element of the protocols $protocols at index $i must be a non-empty string. Otherwise an exception is thrown.
The string lenght of the element of the protocols $protocols at index $i must be less than or equal to 255. Otherwise an exception is thrown.
($i is the index of the element of $protocols)
Copyright & License
Copyright (c) 2024 Yuki Kimoto
MIT License