Re: ecdsa_method missing?
Yes, you should open a ticket on the issue tracker. However, I'm not sure if Dr. Stephen Henson will agree to add this change to the current stable versions (0.9.8x and 1.0.0x) as he usually delays header changes till the 1.1.0 release. -- Mounir IDRASSI IDRIX http://www.idrix.fr On 2/23/2011 4:44 PM, Kent Yoder wrote: 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 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 main() { RSA_METHOD rsa = { "test" }; } but this ECDSA code doesn't: #include 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 Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Re: ecdsa_method missing?
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 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 >> main() { RSA_METHOD rsa = { "test" }; } >> >> but this ECDSA code doesn't: >> >> #include >> 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 Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Re: ecdsa_method missing?
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 main() { RSA_METHOD rsa = { "test" }; } but this ECDSA code doesn't: #include 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 Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
ecdsa_method missing?
Hi, The following RSA code compiles: #include main() { RSA_METHOD rsa = { "test" }; } but this ECDSA code doesn't: #include 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 Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org