X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=obj_create.c;h=1f80238245eb382af72c3963b7cdcf0540c10fcb;hb=a367f52fa52a5b792f961c2f651d205ec25b1e27;hp=c1c039c285521d075ebd7c3e140282deb05e3cad;hpb=64360ad489312184bce9511b483ef56023286b2b;p=openssl-gost%2Fengine.git diff --git a/obj_create.c b/obj_create.c index c1c039c..1f80238 100644 --- a/obj_create.c +++ b/obj_create.c @@ -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); }