[openssl-dev] [openssl.org #4436] [Openssl 1.1.0] ECDSA_SIG_get0() for const ECDSA_SIG *

Grandi, Andrea andrea.grandi at intel.com
Fri Mar 18 08:57:04 UTC 2016

Hi Felix,

I have seen the same warning during the compilation and I agree with you that it would be nice to have an API that takes const variable.


-----Original Message-----
From: openssl-dev [mailto:openssl-dev-bounces at openssl.org] On Behalf Of Schüller Felix via RT
Sent: Thursday, March 17, 2016 9:19 AM
Cc: openssl-dev at openssl.org
Subject: [openssl-dev] [openssl.org #4436] [Openssl 1.1.0] ECDSA_SIG_get0() for const ECDSA_SIG *


since the struct ECDSA_SIG ( -> ECDSA_SIG_st) is now opaque, one has to use ECDSA_SIG_get0() to access the values 'r' and 's'.
This works fine for non-const variables. But if one has a 'const ECDSA_SIG  *' (e.g. in verify_sig() of an ec_key-engine), this produces an error during compilation. So an additional version of ECDSA_SIG_get0() (taking a 'const ECDSA_SIG  *' and setting pointer to (const BIGNUM)) would be nice.

Kind regards

  Felix Schüller

Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4436
Please log in as guest with password guest if prompted

openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263

This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.

More information about the openssl-dev mailing list