diff options
author | Richard Levitte <levitte@openssl.org> | 2004-01-23 16:49:39 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-01-23 16:49:39 +0000 |
commit | 2bff903483e5d330e06cd1c6e9a120c5dcfb7912 (patch) | |
tree | bea00dc09b8185458483a0d6de392db11653dc2b /crypto/ecdh/ech_ossl.c | |
parent | c4fd5d764d4cc2bd12c487967a3b06f2ab7020ad (diff) | |
download | openssl-new-2bff903483e5d330e06cd1c6e9a120c5dcfb7912.tar.gz |
This branch hasn't been updated with changes from HEAD for a looooong time...
Here goes.
Diffstat (limited to 'crypto/ecdh/ech_ossl.c')
-rw-r--r-- | crypto/ecdh/ech_ossl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/ecdh/ech_ossl.c b/crypto/ecdh/ech_ossl.c index b3cff5ad90..c7633bac7f 100644 --- a/crypto/ecdh/ech_ossl.c +++ b/crypto/ecdh/ech_ossl.c @@ -109,7 +109,8 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, E BN_CTX *ctx; EC_POINT *tmp=NULL; BIGNUM *x=NULL, *y=NULL; - int ret= -1, buflen, len; + int ret= -1; + size_t buflen, len; unsigned char *buf=NULL; if (outlen > INT_MAX) @@ -172,7 +173,7 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, E } memset(buf, 0, buflen - len); - if (len != BN_bn2bin(x, buf + buflen - len)) + if (len != (size_t)BN_bn2bin(x, buf + buflen - len)) { ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_BN_LIB); goto err; |