0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

Silence used return value warning of BIO_flush

This commit is contained in:
Arne Schwabe 2020-01-09 17:30:23 +01:00 committed by David Sommerseth
parent c8fb3f112d
commit 70923f41df
No known key found for this signature in database
GPG Key ID: 86CF944C9671FDF2

View File

@ -47,7 +47,7 @@ std::string ssllib_b64enc(const char* text, size_t textlen)
BIO_set_flags(bio, BIO_FLAGS_BASE64_NO_NL); //Ignore newlines - write everything in one line
BIO_write(bio, text, (int)textlen);
BIO_flush(bio);
EXPECT_TRUE(BIO_flush(bio) == 1);
const char* encdata;
long len = BIO_get_mem_data(bio, &encdata);