diff options
author | tb <> | 2024-10-31 15:07:49 +0000 |
---|---|---|
committer | tb <> | 2024-10-31 15:07:49 +0000 |
commit | 1d528d0e86e60fc19b6b5d1f0e186214175a9ab7 (patch) | |
tree | 8fd647c41e5e7a67795dec54022b0b16dbe848ea /src/lib/libcrypto/cryptlib.c | |
parent | 7cdfc5c217927bf433bd76be20c5e3dc416676f4 (diff) | |
download | openbsd-1d528d0e86e60fc19b6b5d1f0e186214175a9ab7.tar.gz openbsd-1d528d0e86e60fc19b6b5d1f0e186214175a9ab7.tar.bz2 openbsd-1d528d0e86e60fc19b6b5d1f0e186214175a9ab7.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/lib/libcrypto/cryptlib.c')
0 files changed, 0 insertions, 0 deletions