Add wolfSSL support

- Added Makefile wolfSSL build option with `SSL=WOLFSSL`
- Fixed missing BIO symbol errors
- Rename `fe` to `mg_fe` as it collides with `fe` defined in `wolfssl/wolfcrypt/fe_operations.h`
- byte variable name shadows the wolfSSL byte type

Tested with `make test`

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
This commit is contained in:
Juliusz Sosinowicz committed 2024-05-16 10:37:31 +02:00
1 parent 323ba9d90c
commit dc09851ac8
6 files changed
+64 -48

No files matched your search

+3 -3
View File
@@ -80,10 +80,10 @@ static size_t encode_varint(uint8_t *buf, size_t value) {
size_t len = 0;
do {
uint8_t byte = (uint8_t) (value % 128);
uint8_t b = (uint8_t) (value % 128);
value /= 128;
if (value > 0) byte |= 0x80;
buf[len++] = byte;
if (value > 0) b |= 0x80;
buf[len++] = b;
} while (value > 0);
return len;