]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Erroneous check removed
authorDmitry Belyavskiy <beldmit@gmail.com>
Tue, 13 Dec 2016 18:12:22 +0000 (21:12 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Tue, 13 Dec 2016 18:12:22 +0000 (21:12 +0300)
gost_ameth.c

index 34f6f8131ce65b839501d4089781f937947b88d2..66f89a562bc8cd834d277429e71a6db3a5691cb3 100644 (file)
@@ -707,11 +707,11 @@ static int pub_encode_gost_ec(X509_PUBKEY *pub, const EVP_PKEY *pk)
     int ptype = V_ASN1_UNDEF;
 
     algobj = OBJ_nid2obj(EVP_PKEY_base_id(pk));
-    if (EVP_PKEY_save_parameters((EVP_PKEY *)pk, -1)) {
-        ASN1_STRING *params = encode_gost_algor_params(pk);
-        pval = params;
-        ptype = V_ASN1_SEQUENCE;
-    }
+
+               ASN1_STRING *params = encode_gost_algor_params(pk);
+               pval = params;
+               ptype = V_ASN1_SEQUENCE;
+
     order = BN_new();
     if (!order) {
         GOSTerr(GOST_F_PUB_ENCODE_GOST_EC, ERR_R_MALLOC_FAILURE);