projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure we are compatible with LibreSSL.
[tinc]
/
src
/
gcrypt
/
pem.c
diff --git
a/src/gcrypt/pem.c
b/src/gcrypt/pem.c
index
0f7763c
..
56858f2
100644
(file)
--- a/
src/gcrypt/pem.c
+++ b/
src/gcrypt/pem.c
@@
-93,7
+93,7
@@
bool pem_encode(FILE *fp, const char *header, uint8_t *buf, size_t size) {
return false;
}
return false;
}
- char
b64[B64_SIZE(size)]
;
+ char
*b64 = alloca(B64_SIZE(size))
;
const size_t b64len = b64encode(b64, buf, size);
for(size_t i = 0; i < b64len; i += 64) {
const size_t b64len = b64encode(b64, buf, size);
for(size_t i = 0; i < b64len; i += 64) {