Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/crypto/dh
diff options
context:
space:
mode:
authorAdam Langley <agl@chromium.org>2014-08-01 02:23:51 +0400
committerAdam Langley <agl@google.com>2014-08-12 02:10:02 +0400
commitded93581f1674f81faa0dba4b15a842756066ab2 (patch)
tree3ef888c2d7c3fda23863a147ba3552173318e33a /crypto/dh
parentd83f38c13a1f943db651cf5e85f9b2f04e80c4a6 (diff)
Windows build fixes.
Windows doesn't have ssize_t, sadly. There's SSIZE_T, but defining an OPENSSL_SSIZE_T seems worse than just using an int. Change-Id: I09bb5aa03f96da78b619e551f92ed52ce24d9f3f Reviewed-on: https://boringssl-review.googlesource.com/1352 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh.c2
-rw-r--r--crypto/dh/dh_impl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/dh/dh.c b/crypto/dh/dh.c
index 3e6ae6d4..cee306b1 100644
--- a/crypto/dh/dh.c
+++ b/crypto/dh/dh.c
@@ -147,7 +147,7 @@ int DH_generate_key(DH *dh) {
return DH_default_method.generate_key(dh);
}
-ssize_t DH_compute_key(unsigned char *out, const BIGNUM *peers_key, DH *dh) {
+int DH_compute_key(unsigned char *out, const BIGNUM *peers_key, DH *dh) {
if (dh->meth->compute_key) {
return dh->meth->compute_key(dh, out, peers_key);
}
diff --git a/crypto/dh/dh_impl.c b/crypto/dh/dh_impl.c
index edc3db7f..2ad44549 100644
--- a/crypto/dh/dh_impl.c
+++ b/crypto/dh/dh_impl.c
@@ -252,7 +252,7 @@ err:
return ok;
}
-static ssize_t compute_key(DH *dh, unsigned char *out, const BIGNUM *pub_key) {
+static int compute_key(DH *dh, unsigned char *out, const BIGNUM *pub_key) {
BN_CTX *ctx = NULL;
BN_MONT_CTX *mont = NULL;
BIGNUM *shared_key;