[openssl-commits] [openssl] master update

Dr. Stephen Henson steve at openssl.org
Sat Mar 19 22:08:38 UTC 2016


The branch master has been updated
       via  34c2db9b562baffd30a6a2dda7d4247fadbf4acd (commit)
      from  674d5858df6cd3dc5cafa25875861f4742d64608 (commit)


- Log -----------------------------------------------------------------
commit 34c2db9b562baffd30a6a2dda7d4247fadbf4acd
Author: Dr. Stephen Henson <steve at openssl.org>
Date:   Thu Mar 17 14:18:23 2016 +0000

    constify ECDSA_SIG_get0()
    
    PR#4436
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Viktor Dukhovni <viktor at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/ec/ec_asn1.c  | 2 +-
 doc/crypto/ecdsa.pod | 2 +-
 include/openssl/ec.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/crypto/ec/ec_asn1.c b/crypto/ec/ec_asn1.c
index 301a5d3..bc43878 100644
--- a/crypto/ec/ec_asn1.c
+++ b/crypto/ec/ec_asn1.c
@@ -1220,7 +1220,7 @@ DECLARE_ASN1_FUNCTIONS_const(ECDSA_SIG)
 DECLARE_ASN1_ENCODE_FUNCTIONS_const(ECDSA_SIG, ECDSA_SIG)
 IMPLEMENT_ASN1_FUNCTIONS_const(ECDSA_SIG)
 
-void ECDSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, ECDSA_SIG *sig)
+void ECDSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, const ECDSA_SIG *sig)
 {
     if (pr != NULL)
         *pr = sig->r;
diff --git a/doc/crypto/ecdsa.pod b/doc/crypto/ecdsa.pod
index dbd678f..67ab536 100644
--- a/doc/crypto/ecdsa.pod
+++ b/doc/crypto/ecdsa.pod
@@ -13,7 +13,7 @@ algorithm (ECDSA) functions.
 
  ECDSA_SIG *ECDSA_SIG_new(void);
  void ECDSA_SIG_free(ECDSA_SIG *sig);
- void ECDSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, ECDSA_SIG *sig);
+ void ECDSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, const ECDSA_SIG *sig);
  int i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **pp);
  ECDSA_SIG *d2i_ECDSA_SIG(ECDSA_SIG **sig, const unsigned char **pp, long len);
  int ECDSA_size(const EC_KEY *eckey);
diff --git a/include/openssl/ec.h b/include/openssl/ec.h
index e67439b..103f718 100644
--- a/include/openssl/ec.h
+++ b/include/openssl/ec.h
@@ -1139,7 +1139,7 @@ ECDSA_SIG *d2i_ECDSA_SIG(ECDSA_SIG **sig, const unsigned char **pp, long len);
  *  \param  pr   pointer to BIGNUM pointer for r (may be NULL)
  *  \param  ps   pointer to BIGNUM pointer for s (may be NULL)
  */
-void ECDSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, ECDSA_SIG *sig);
+void ECDSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, const ECDSA_SIG *sig);
 
 /** Computes the ECDSA signature of the given hash value using
  *  the supplied private key and returns the created signature.


More information about the openssl-commits mailing list