Win32 fixes... add new directory to build system. Fix warnings.

This commit is contained in:
Dr. Stephen Henson
2008-10-27 12:31:13 +00:00
parent e9eda23ae6
commit ab7e09f59b
4 changed files with 5 additions and 2 deletions

View File

@@ -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) */