p11test: Use function compatible with OpenSSL 1.0.2

This commit is contained in:
Jakub Jelen 2018-12-19 11:50:49 +01:00 committed by Frank Morgner
parent 391131bb5e
commit aa7118192a
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ int callback_public_keys(test_certs_t *objects,
o->key.ec = EC_KEY_new_by_curve_name(nid);
EC_KEY_set_public_key(o->key.ec, ecpoint);
EC_KEY_set_group(o->key.ec, ecgroup);
o->bits = EC_GROUP_order_bits(ecgroup);
o->bits = EC_GROUP_get_degree(ecgroup);
}
} else {
debug_print(" [WARN %s ] non-RSA, non-EC key. Key type: %02lX",