summaryrefslogtreecommitdiffstats
path: root/crypto/jpake
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-10-27 12:31:13 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-10-27 12:31:13 +0000
commitab7e09f59b1ab1a5a529dd7e80017f02be432b2c (patch)
treeff41ddbc6baa045472ad6b77182d8fb53f47c469 /crypto/jpake
parente9eda23ae6eced7cb0d71440cee0431273ce8520 (diff)
Win32 fixes... add new directory to build system. Fix warnings.
Diffstat (limited to 'crypto/jpake')
-rw-r--r--crypto/jpake/jpake.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/jpake/jpake.c b/crypto/jpake/jpake.c
index d3c17c1178..577b7ef375 100644
--- a/crypto/jpake/jpake.c
+++ b/crypto/jpake/jpake.c
@@ -151,11 +151,12 @@ static void hashstring(SHA_CTX *sha, const char *string)
static void hashbn(SHA_CTX *sha, const BIGNUM *bn)
{
size_t l = BN_num_bytes(bn);
- unsigned char *bin = alloca(l);
+ unsigned char *bin = OPENSSL_malloc(l);
hashlength(sha, l);
BN_bn2bin(bn, bin);
SHA1_Update(sha, bin, l);
+ OPENSSL_free(bin);
}
/* h=hash(g, g^r, g^x, name) */