Hi all,

following crypto/asn1/x_bignum.c, I wrote asn1-related functions
(new/free/i2d/d2i) for EC_POINT, and defined an ASN1_PRIMITIVE_FUNCS to
map EC_POINTs to octect strings.

However I have a problem.
Let's consider for instance the _new() function, which has prototype:

int oct_ec_point_new(ASN1_VALUE **pval, const ASN1_ITEM *it)

It relies on EC_POINT_new(). Unfortunately EC_POINT_new() requires an
EC_GROUP as parameter.

I solved with a workaround by invoking EC_GROUP_get_default_group(), a
new dirty function which returns exactly the group I need.

Now the question: is there a way to pass parameters, like an EC_GROUP,
to asn1-related functions?

Best,
-- 
Emanuele Cesena <[email protected]>
http://ecesena.dyndns.org

Il corpo non ha ideali


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to