diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-10-27 12:30:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-10-27 12:30:33 +0000 |
commit | 9af68029438d573dd80060edf13bd33ecdeb55a6 (patch) | |
tree | 57240b899ed8526274f1d22c18567ba48e7979dd /crypto/jpake/jpake.c | |
parent | c10f53a8978e00f249bb32e4b6e55131db46f6e6 (diff) |
Win32 fixes, add new directory to WIN32 build system.
Diffstat (limited to 'crypto/jpake/jpake.c')
-rw-r--r-- | crypto/jpake/jpake.c | 3 |
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) */ |