]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Adoption to 1.1.0
authorDmitry Belyavskiy <beldmit@gmail.com>
Sun, 1 Nov 2015 23:14:55 +0000 (02:14 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sun, 1 Nov 2015 23:14:55 +0000 (02:14 +0300)
gost_ameth.c

index c8d7e4f36be9163991be677c808179424a484e53..feec5544a3dfe986f279ea68d9b210aa215ffe44 100644 (file)
@@ -913,6 +913,9 @@ int register_ameth_gost(int nid, EVP_PKEY_ASN1_METHOD **ameth,
                                  pkey_size_gost, pkey_bits_gost);
 
         EVP_PKEY_asn1_set_ctrl(*ameth, pkey_ctrl_gost);
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+        EVP_PKEY_asn1_set_security_bits(*ameth,ce_pkey_bits_gost);
+#endif
         break;
     case NID_id_Gost28147_89_MAC:
         EVP_PKEY_asn1_set_free(*ameth, mackey_free_gost);