Skip to content
Snippets Groups Projects
Commit 2eec710b authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1722] Use BIO_FLAGS_BASE64_NO_NL flag for base64 encoding/decoding

parent 5143a340
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,7 @@ char* AudioSrtpSession::encodeBase64(unsigned char *input, int length)
// init decoder and buffer
b64 = BIO_new(BIO_f_base64());
BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
bmem = BIO_new(BIO_s_mem());
// create decoder chain
......@@ -262,7 +263,7 @@ char* AudioSrtpSession::decodeBase64(unsigned char *input, int length, int *leng
// init decoder and read-only BIO buffer
b64 = BIO_new(BIO_f_base64());
// BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
bmem = BIO_new_mem_buf(input, length);
// create encoder chain
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment