1 /* 2 * Copyright 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at: 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 #pragma once 19 20 #include <cstdint> 21 22 #include "stack/include/btm_sec_api_types.h" 23 #include "types/raw_address.h" 24 25 // This header contains functions for HCIF-Security Management to invoke 26 // 27 28 void btm_create_conn_cancel_complete(uint8_t status, const RawAddress bd_addr); 29 void btm_io_capabilities_req(RawAddress p); 30 void btm_io_capabilities_rsp(const tBTM_SP_IO_RSP evt_data); 31 void btm_proc_sp_req_evt(tBTM_SP_EVT event, const RawAddress bda, 32 uint32_t value); 33 void btm_read_local_oob_complete(const tBTM_SP_LOC_OOB evt_data); 34 void btm_rem_oob_req(const RawAddress bd_addr); 35 void btm_sec_auth_complete(uint16_t handle, tHCI_STATUS status); 36 void btm_sec_disconnected(uint16_t handle, tHCI_STATUS reason, std::string); 37 void btm_sec_encrypt_change(uint16_t handle, tHCI_STATUS status, 38 uint8_t encr_enable); 39 void btm_sec_encryption_change_evt(uint16_t handle, tHCI_STATUS status, 40 uint8_t encr_enable); 41 void btm_sec_encryption_key_refresh_complete(uint16_t handle, 42 tHCI_STATUS status); 43 void btm_sec_link_key_notification(const RawAddress& p_bda, 44 const Octet16& link_key, uint8_t key_type); 45 void btm_sec_link_key_request(const RawAddress bda); 46 void btm_sec_pin_code_request(const RawAddress p_bda); 47 void btm_sec_rmt_host_support_feat_evt(const RawAddress bd_addr, 48 uint8_t features_0); 49 void btm_sec_rmt_name_request_complete(const RawAddress* bd_addr, 50 const uint8_t* bd_name, 51 tHCI_STATUS status); 52 void btm_sec_update_clock_offset(uint16_t handle, uint16_t clock_offset); 53 void btm_simple_pair_complete(const RawAddress bd_addr, uint8_t status); 54