projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for building tinc with MSVC
[tinc]
/
src
/
openssl
/
prf.c
diff --git
a/src/openssl/prf.c
b/src/openssl/prf.c
index
5d597d9
..
ddad522
100644
(file)
--- a/
src/openssl/prf.c
+++ b/
src/openssl/prf.c
@@
-48,11
+48,11
@@
static bool prf_xor(int nid, const uint8_t *secret, size_t secretlen, uint8_t *s
It consists of the previous HMAC result plus the seed.
*/
It consists of the previous HMAC result plus the seed.
*/
- char
data[len + seedlen]
;
+ char
*data = alloca(len + seedlen)
;
memset(data, 0, len);
memcpy(data + len, seed, seedlen);
memset(data, 0, len);
memcpy(data + len, seed, seedlen);
- uint8_t
hash[len]
;
+ uint8_t
*hash = alloca(len)
;
while(outlen > 0) {
/* Inner HMAC */
while(outlen > 0) {
/* Inner HMAC */