aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-10-27 18:18:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2015-12-09 22:09:18 +0000
commit714b2abb298552698d19818d42d6cc19ffdb7cf2 (patch)
tree005e7f4459d77ce561633643602437e7a5a40d9c
parent0a6f1d97330f777f9bcf5fa4f91390b59b737975 (diff)
downloadopenssl-714b2abb298552698d19818d42d6cc19ffdb7cf2.tar.gz
move ECDSA_SIG definition
Reviewed-by: Richard Levitte <levitte@openssl.org>
-rw-r--r--crypto/ec/ec_lcl.h5
-rw-r--r--include/openssl/ec.h2
-rw-r--r--include/openssl/ecdsa.h5
3 files changed, 7 insertions, 5 deletions
diff --git a/crypto/ec/ec_lcl.h b/crypto/ec/ec_lcl.h
index 57fd6ce284..38b8c80f6b 100644
--- a/crypto/ec/ec_lcl.h
+++ b/crypto/ec/ec_lcl.h
@@ -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;
+};
diff --git a/include/openssl/ec.h b/include/openssl/ec.h
index a6e35362da..6683e17266 100644
--- a/include/openssl/ec.h
+++ b/include/openssl/ec.h
@@ -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
diff --git a/include/openssl/ecdsa.h b/include/openssl/ecdsa.h
index bb84236cd7..fb6813585f 100644
--- a/include/openssl/ecdsa.h
+++ b/include/openssl/ecdsa.h
@@ -75,11 +75,6 @@
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
*/