1 /* 2 * Copyright 2019 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 #pragma once 18 19 #include "hci/command_interface.h" 20 #include "hci/hci_packets.h" 21 22 namespace bluetooth { 23 namespace hci { 24 25 constexpr hci::EventCode SecurityEvents[] = { 26 hci::EventCode::ENCRYPTION_CHANGE, 27 hci::EventCode::CHANGE_CONNECTION_LINK_KEY_COMPLETE, 28 hci::EventCode::CENTRAL_LINK_KEY_COMPLETE, 29 hci::EventCode::RETURN_LINK_KEYS, 30 hci::EventCode::PIN_CODE_REQUEST, 31 hci::EventCode::LINK_KEY_REQUEST, 32 hci::EventCode::LINK_KEY_NOTIFICATION, 33 hci::EventCode::ENCRYPTION_KEY_REFRESH_COMPLETE, 34 hci::EventCode::IO_CAPABILITY_REQUEST, 35 hci::EventCode::IO_CAPABILITY_RESPONSE, 36 hci::EventCode::REMOTE_OOB_DATA_REQUEST, 37 hci::EventCode::SIMPLE_PAIRING_COMPLETE, 38 hci::EventCode::USER_PASSKEY_NOTIFICATION, 39 hci::EventCode::KEYPRESS_NOTIFICATION, 40 hci::EventCode::USER_CONFIRMATION_REQUEST, 41 hci::EventCode::USER_PASSKEY_REQUEST, 42 hci::EventCode::REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION, 43 }; 44 45 typedef CommandInterface<SecurityCommandBuilder> SecurityInterface; 46 47 } // namespace hci 48 } // namespace bluetooth 49