2 #include <openssl/objects.h>
5 int gost_add_obj(const char *oid, const char *sn, const char *ln)
8 char *oidtemp=NULL,*sntemp=NULL,*lntemp=NULL;
11 nid = OBJ_txt2nid(oid);
13 nid = OBJ_txt2nid(sn);
15 if (nid != NID_undef) {
19 oidtemp=OPENSSL_malloc(strlen(oid) + 2);
24 sntemp=OPENSSL_malloc(strlen(sn) + 2);
29 lntemp=OPENSSL_malloc(strlen(ln) + 2);
32 return OBJ_create(oid,sn,ln);