Name

SPVM::Net::SSLeay::OBJ - OBJ Name Space in OpenSSL

Description

Net::SSLeay::OBJ class in SPVM represents OBJ name space in OpenSSL

Usage

use Net::SSLeay::OBJ;

Class Methods

txt2nid

static method txt2nid : int ($s : string);

Calls native OBJ_txt2nid function, and returns its return value.

Exceptions:

If OBJ_txt2nid failed, an exception is thrown with eval_error_id set to the basic type ID of Net::SSLeay::Error class.

nid2obj

static method nid2obj : Net::SSLeay::ASN1_OBJECT ($n : int);

Calls native OBJ_nid2obj function given $n, creates a new Net::SSLeay::ASN1_OBJECT, sets the pointer value to the return value of the native function, sets no_free flag of the new object to 1, and returns the new object.

Exceptions:

If OBJ_nid2obj failed, an exception is thrown with eval_error_id set to the basic type ID of Net::SSLeay::Error class.

obj2nid

static method obj2nid : int ($o : Net::SSLeay::ASN1_OBJECT);

Calls native OBJ_obj2nid function given the pointer value of $o, and returns its return value.

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License