obj = OBJ_nid2obj(new_nid); Create a new object directly: obj = OBJ_txt2obj("1.2.3.4", 1); BUGS OBJ_obj2txt() is awkward and messy to use: it doesn't follow the convention of other OpenSSL functions where the buffer can be set toNULLto determine the amount of data that should...
@@ -254,12 +254,23 @@ static int test_obj_create(void) return 1; } static int test_obj_nid_undef(void) { if (!TEST_ptr(OBJ_nid2obj(NID_undef)) || !TEST_ptr(OBJ_nid2sn(NID_undef)) || !TEST_ptr(OBJ_nid2ln(NID_undef))) return 0; return 1; } int setup_tests(void) ...
[openssl-dev] [openssl.org #2964] OBJ_nid2obj() result value should be const Rich Salz via RT Sat, 25 Jun 2016 13:42:06 -0700 Updated the docs in master and 1.0.2 to explain that these really are const-like objects. -- Ticket here: http://rt.openssl.org/Ticket/Display.html?id...
当前标签:OBJ_nid2ln 昵称:♂风车车 园龄:17年10个月 荣誉:推荐博客 粉丝:346 关注:3
SM2, SM4 encryption and decryption, SM3 digest algorithm, SM2 signature verification, OC encapsulation of ECDH key negotiation, based on OpenSSL. - add NID_sm2、NID_secp256k1、NID_X9_62_prime256v1. · kai60/GMObjC@7b9a3c2