Hi all, I was wondering if it was possible to add an alias to an object. In particular, I would like to add the possibility, for example, to use "P384" instead of "secp384r1" when retrieving an object ID:
name_1 = "P384";
name_2 = "secp384r1";
ret_1 = OBJ_txt2obj ( name_1, 0 );
ret_2 = OBJ_txt2obj ( name_2, 0 );
So that ret_1 and ret_2 point to the same object ? Or, at least,
the following returns the same NID:
nid_1 = OBJ_sn2nid ( name_1);
nid_2 = OBJ_sn2nid ( name_2);
==> nid_1 == nid_2
Is there a way to do that ?
Cheers,
Max
smime.p7s
Description: S/MIME Cryptographic Signature
