ECDSA_METHOD_new() argument should be constified?

Dmitry Belyavsky beldmit at gmail.com
Mon Jun 22 09:33:59 UTC 2015


Hello all,

I try to provide my own ECDSA method using engine. I want to use common
functions for verifying the signature and a custom one for signing.

My code is

...
  const ECDSA_METHOD * meth1 = ECDSA_OpenSSL();
  forwarder_ec_method = ECDSA_METHOD_new(meth1);
...

Compiling it, I get an error:

error: passing argument 1 of ‘ECDSA_METHOD_new’ discards ‘const’ qualifier
from pointer target type [-Werror]

Shouldn't the argument of the ECDSA_METHOD_new() function be const struct
ECDSA_METHOD * instead of struct ECDSA_METHOD *?

Thank you!

-- 
SY, Dmitry Belyavsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-bugs-mod/attachments/20150622/ea748abe/attachment.html>


More information about the openssl-bugs-mod mailing list