move ECDSA_SIG definition
authorDr. Stephen Henson <steve@openssl.org>
Tue, 27 Oct 2015 18:18:18 +0000 (18:18 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 9 Dec 2015 22:09:18 +0000 (22:09 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/ec/ec_lcl.h
include/openssl/ec.h
include/openssl/ecdsa.h

index 57fd6ce284f7efa0e465d955fcd0dbcc32e627b3..38b8c80f6b5174a0b897a163fab8074dffe331bf 100644 (file)
@@ -580,3 +580,8 @@ int ossl_ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
                           EC_KEY *ecdh,
                           void *(*KDF) (const void *in, size_t inlen,
                                         void *out, size_t *outlen));
+
+struct ECDSA_SIG_st {
+    BIGNUM *r;
+    BIGNUM *s;
+};
index a6e35362da29bd42d267e25966798154d110ecf3..6683e1726644bd9d8aaf105cf3b000e595863b5a 100644 (file)
@@ -999,6 +999,8 @@ int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
                      EC_KEY *ecdh, void *(*KDF) (const void *in, size_t inlen,
                                                  void *out, size_t *outlen));
 
+typedef struct ECDSA_SIG_st ECDSA_SIG;
+
 # define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x)
 
 # ifndef __cplusplus
index bb84236cd71cf0cb1a5f0a12ac0ff85f81c8c79d..fb6813585f43f27c176c53bd39c30c6e666207fa 100644 (file)
 extern "C" {
 #endif
 
-typedef struct ECDSA_SIG_st {
-    BIGNUM *r;
-    BIGNUM *s;
-} ECDSA_SIG;
-
 /** Allocates and initialize a ECDSA_SIG structure
  *  \return pointer to a ECDSA_SIG structure or NULL if an error occurred
  */