0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd::openssl: Fix compatibility in assert statement.

This commit is contained in:
Jason Volk 2019-04-20 13:26:38 -07:00
parent 4db52804cb
commit 8dd201bfdb

View file

@ -904,7 +904,7 @@ ircd::openssl::genec(const string_view &skfile,
assert(EC_GROUP_get_asn1_flag(group) & OPENSSL_EC_NAMED_CURVE);
call(::EC_KEY_set_group, key.get(), group);
call(::EC_KEY_generate_key, key.get());
assert(EC_KEY_get1_public_key(key.get()));
assert(EC_KEY_get0_public_key(key.get()));
set(*pk, *key);
bio::write_file(skfile, write_priv);
bio::write_file(pkfile, write_pub);