📄 sec_client.h
字号:
/* * sec_client.h -- Implementation of interface to Bluetooth Security Manager * * Copyright (C) 2000, 2001 Axis Communications AB * * Author: Ulf Hansson <ulf.hansson@axis.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Exceptionally, Axis Communications AB grants discretionary and * conditional permissions for additional use of the text contained * in the company's release of the AXIS OpenBT Stack under the * provisions set forth hereunder. * * Provided that, if you use the AXIS OpenBT Stack with other files, * that do not implement functionality as specified in the Bluetooth * System specification, to produce an executable, this does not by * itself cause the resulting executable to be covered by the GNU * General Public License. Your use of that executable is in no way * restricted on account of using the AXIS OpenBT Stack code with it. * * This exception does not however invalidate any other reasons why * the executable file might be covered by the provisions of the GNU * General Public License. * * $Id: sec_client.h,v 1.9 2001/04/26 13:56:17 ulfh Exp $ * */#ifndef SEC_CLIENT_H#define SEC_CLIENT_H/****************** INCLUDE FILES SECTION ***********************************/#ifdef __KERNEL__#include <linux/bluetooth/btcommon.h>#include <linux/types.h>#else#include "btcommon.h"#endif/****************** CONSTANT AND MACRO SECTION ******************************/enum security_requests{ HCI, L2CAP, RFCOMM};enum security_results{ SECURITY_OK, AUTHENTICATION_PENDING, UNKNOWN_REQUEST_TYPE, UNKNOWN_REQUEST_VALUE, PSM_SECURITY_BLOCK, AUTHENTICATION_FAILURE, ENCRYPTION_FAILURE, GENERAL_FAILURE};/****************** TYPE DEFINITION SECTION *********************************//****************** EXPORTED FUNCTION DECLARATION SECTION *******************/extern struct proc_dir_entry sec_man_proc_entry;void sec_client_shutdown(void);void sec_man_init(enum security_requests user);#ifdef __KERNEL__s32 sec_man_create_proc_file(void);s32 sec_man_remove_proc_file(void);#endifvoid sec_man_check(enum security_requests user, BD_ADDR bd_addr, u32 service_data, u32 user_data);void sec_man_event(enum security_requests user, BD_ADDR bd_addr, u8 event, u8 *param, u8 param_len);void sec_man_get_cached_link_key(u8 *param);#endif/****************** END OF FILE sec_client.h *********************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -