Skip to content

Commit 474d4c7

Browse files
jonsimantova-maurice
authored andcommitted
Fix Kokoro build break caused by boringssl header missing include path. Also account for modified location of EVP functions in openssl vs boringssl for open-source.
PiperOrigin-RevId: 245461822
1 parent 1e23da7 commit 474d4c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/util_desktop.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@
1717
#include "app/src/util_desktop.h"
1818

1919
#include "app/src/log.h"
20+
21+
// If building against OpenSSL, use the evp header for base64 encoding logic,
22+
// otherwise assume to be building against BoringSSL, which uses a different
23+
// header file.
24+
#ifdef OPENSSL_IS_BORINGSSL
2025
#include "openssl/base64.h"
26+
#else
27+
#include "openssl/evp.h"
28+
#endif
2129

2230
namespace firebase {
2331

0 commit comments

Comments
 (0)