Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85a214a0 authored by Xin Li's avatar Xin Li Committed by Hui Peng
Browse files

Fix floss build by providing a compatibility shim for BoringSSL.

Test: ab-forrest build of floss_build
Test: mma -j32
Tag: #floss
Ignore-AOSP-First: Security
Bug: 306474821
Fixed: 306474821
Merged-In: I01a00e2be317e1feffd0a6f67fd2cf9b67e09d13
Change-Id: I01a00e2be317e1feffd0a6f67fd2cf9b67e09d13
(cherry picked from commit d3a08866)
parent e671457b
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
//  Copyright 2023 Google, Inc.
//
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.
//  You may obtain a copy of the License at:
//
//  http://www.apache.org/licenses/LICENSE-2.0
//
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS,
//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//  See the License for the specific language governing permissions and
//  limitations under the License.
//

#pragma once

// TODO(b/306474821) - Floss currently expects to link to openssl instead of
// boringssl. Since openssl doesn't have <openssl/mem.h>, point to the right
// header.
#ifdef TARGET_FLOSS
#include <openssl/crypto.h>
#else
#include <openssl/mem.h>
#endif
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@
#include "main/shim/shim.h"
#include "osi/include/allocator.h"
#include "osi/include/properties.h"
#include "platform_ssl_mem.h"
#include "stack/btm/btm_dev.h"
#include "stack/btm/btm_int_types.h"
#include "stack/btm/btm_sec_cb.h"