CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2024/10/31 09:07:49

Modified files:
        lib/libcrypto/ec: ec_asn1.c 

Log message:
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

Reply via email to