Thanks Mounir, I'd like to use ECDSA_METHOD to implement a dynamic engine for ecdsa. I want to avoid copying the header files from the upstream source so that my engine package can compile stand-alone. This should be in line with the way dynamic engines have worked for other algorithms since 0.9.8, if I understand correctly.
Should I open an item in the issue tracker for this? Thanks, Kent On Tue, Feb 22, 2011 at 8:04 PM, Mounir IDRASSI <mounir.idra...@idrix.net> wrote: > Hi, > > In the case of RSA_METHOD, it is working because the underlying type > rsa_meth_st is defined in rsa.h, whereas for ECDSA_METHOD, the underlying > type ecdsa_method is not exported by the public headers: it is defined in > the internal OpenSSL header ecs_locl.h found in the source distribution. > That explains why you are getting the compile error. > I don't know why it was done like this, but if you really need this > structure then you'll have to copy its definition from the header I > mentioned above. > > Cheers, > -- > Mounir IDRASSI > IDRIX > http://www.idrix.fr > > On 2/22/2011 6:14 PM, Kent Yoder wrote: >> >> Hi, >> >> The following RSA code compiles: >> >> #include<openssl/rsa.h> >> main() { RSA_METHOD rsa = { "test" }; } >> >> but this ECDSA code doesn't: >> >> #include<openssl/ecdsa.h> >> main() { ECDSA_METHOD ecdsa = { "test" }; } >> >> Am I missing a declaration, or is this perhaps a bug? >> >> Thanks, >> Kent >> ______________________________________________________________________ >> OpenSSL Project http://www.openssl.org >> User Support Mailing List openssl-users@openssl.org >> Automated List Manager majord...@openssl.org > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org