diff options
author | tb <> | 2024-10-31 15:07:49 +0000 |
---|---|---|
committer | tb <> | 2024-10-31 15:07:49 +0000 |
commit | 3c4e7375bde814ea2663e65bf0caa42fe3b4a05d (patch) | |
tree | 8fd647c41e5e7a67795dec54022b0b16dbe848ea /src/usr.bin | |
parent | 0e3dba5b6baf332335bf0fdd135743ba36e8c5d9 (diff) | |
download | openbsd-3c4e7375bde814ea2663e65bf0caa42fe3b4a05d.tar.gz openbsd-3c4e7375bde814ea2663e65bf0caa42fe3b4a05d.tar.bz2 openbsd-3c4e7375bde814ea2663e65bf0caa42fe3b4a05d.zip |
Clean up o2i_ECPublicKey()
a is a stupid name for an EC_key, so is ret. Pull apart the tests at the
start and check the length for negativity (long is always the wrong type).
Switch to ec_point_from_octets() and let it determine the point conversion
form rather than having yet another copy of the same ugly stanza.
Set the form on the key using EC_KEY_set_conv_form() (which also affects
the group on the key, so this is a slight change of behavior). Why on earth
this function returns the EC_KEY passed in, I'll never know.
ok jsing
Diffstat (limited to 'src/usr.bin')
0 files changed, 0 insertions, 0 deletions