]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - obj_create.c
Added 'fake' OIDs for oid-less objects. Unfortunately, it seems to be impossible...
[openssl-gost/engine.git] / obj_create.c
index c1c039c285521d075ebd7c3e140282deb05e3cad..1f80238245eb382af72c3963b7cdcf0540c10fcb 100644 (file)
@@ -5,8 +5,6 @@
 int gost_add_obj(const char *oid, const char *sn, const char *ln)
 {
        int nid;
-       char *oidtemp=NULL,*sntemp=NULL,*lntemp=NULL;
-       
        if (oid) {
                nid = OBJ_txt2nid(oid);
        } else {
@@ -15,20 +13,6 @@ int gost_add_obj(const char *oid, const char *sn, const char *ln)
        if (nid != NID_undef) {
                return nid;
        }
-       if (oid) {
-               oidtemp=OPENSSL_malloc(strlen(oid) + 2);
-               strcpy(oidtemp, oid);
-       }
-
-       if (sn) {
-               sntemp=OPENSSL_malloc(strlen(sn) + 2);
-               strcpy(sntemp, sn);
-       }
-
-       if (ln) {
-               lntemp=OPENSSL_malloc(strlen(ln) + 2);
-               strcpy(lntemp, ln);
-       }
        return OBJ_create(oid,sn,ln);
 }