diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-12-07 00:32:34 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-12-07 00:32:34 +0000 |
commit | afb14cda8c70d18b97bbf3419bd308ba5b65f3b9 (patch) | |
tree | 43a957b007b873f03c827709ab6a02b8be3dc985 /crypto/ecdsa | |
parent | df0cdf4ceb9560a88c1d694ae9cd203b654af09b (diff) |
Initial experimental support for X9.42 DH parameter format to handle
RFC5114 parameters and X9.42 DH public and private keys.
Diffstat (limited to 'crypto/ecdsa')
-rw-r--r-- | crypto/ecdsa/ecdsatest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/ecdsa/ecdsatest.c b/crypto/ecdsa/ecdsatest.c index fdadbd9614..03b82a810e 100644 --- a/crypto/ecdsa/ecdsatest.c +++ b/crypto/ecdsa/ecdsatest.c @@ -299,6 +299,7 @@ int test_builtin(BIO *out) unsigned char digest[20], wrong_digest[20]; unsigned char *signature = NULL; unsigned char *sig_ptr; + const unsigned char *csig_ptr; unsigned char *raw_buf = NULL; unsigned int sig_len, degree, r_len, s_len, bn_len, buf_len; int nid, ret = 0; @@ -440,8 +441,8 @@ int test_builtin(BIO *out) /* Modify a single byte of the signature: to ensure we don't * garble the ASN1 structure, we read the raw signature and * modify a byte in one of the bignums directly. */ - sig_ptr = signature; - if ((ecdsa_sig = d2i_ECDSA_SIG(NULL, &sig_ptr, sig_len)) == NULL) + csig_ptr = signature; + if ((ecdsa_sig = d2i_ECDSA_SIG(NULL, &csig_ptr, sig_len)) == NULL) { BIO_printf(out, " failed\n"); goto builtin_err; |