Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
smp.h File Reference

Go to the source code of this file.

Data Structures

struct  smp_command_hdr
 
struct  smp_cmd_pairing
 
struct  smp_cmd_pairing_confirm
 
struct  smp_cmd_pairing_random
 
struct  smp_cmd_pairing_fail
 
struct  smp_cmd_encrypt_info
 
struct  smp_cmd_master_ident
 
struct  smp_cmd_ident_info
 
struct  smp_cmd_ident_addr_info
 
struct  smp_cmd_sign_info
 
struct  smp_cmd_security_req
 
struct  smp_chan
 

Macros

#define SMP_CMD_PAIRING_REQ   0x01
 
#define SMP_CMD_PAIRING_RSP   0x02
 
#define SMP_IO_DISPLAY_ONLY   0x00
 
#define SMP_IO_DISPLAY_YESNO   0x01
 
#define SMP_IO_KEYBOARD_ONLY   0x02
 
#define SMP_IO_NO_INPUT_OUTPUT   0x03
 
#define SMP_IO_KEYBOARD_DISPLAY   0x04
 
#define SMP_OOB_NOT_PRESENT   0x00
 
#define SMP_OOB_PRESENT   0x01
 
#define SMP_DIST_ENC_KEY   0x01
 
#define SMP_DIST_ID_KEY   0x02
 
#define SMP_DIST_SIGN   0x04
 
#define SMP_AUTH_NONE   0x00
 
#define SMP_AUTH_BONDING   0x01
 
#define SMP_AUTH_MITM   0x04
 
#define SMP_CMD_PAIRING_CONFIRM   0x03
 
#define SMP_CMD_PAIRING_RANDOM   0x04
 
#define SMP_CMD_PAIRING_FAIL   0x05
 
#define SMP_CMD_ENCRYPT_INFO   0x06
 
#define SMP_CMD_MASTER_IDENT   0x07
 
#define SMP_CMD_IDENT_INFO   0x08
 
#define SMP_CMD_IDENT_ADDR_INFO   0x09
 
#define SMP_CMD_SIGN_INFO   0x0a
 
#define SMP_CMD_SECURITY_REQ   0x0b
 
#define SMP_PASSKEY_ENTRY_FAILED   0x01
 
#define SMP_OOB_NOT_AVAIL   0x02
 
#define SMP_AUTH_REQUIREMENTS   0x03
 
#define SMP_CONFIRM_FAILED   0x04
 
#define SMP_PAIRING_NOTSUPP   0x05
 
#define SMP_ENC_KEY_SIZE   0x06
 
#define SMP_CMD_NOTSUPP   0x07
 
#define SMP_UNSPECIFIED   0x08
 
#define SMP_REPEATED_ATTEMPTS   0x09
 
#define SMP_MIN_ENC_KEY_SIZE   7
 
#define SMP_MAX_ENC_KEY_SIZE   16
 
#define SMP_FLAG_TK_VALID   1
 
#define SMP_FLAG_CFM_PENDING   2
 
#define SMP_FLAG_MITM_AUTH   3
 

Functions

int smp_conn_security (struct hci_conn *hcon, __u8 sec_level)
 
int smp_sig_channel (struct l2cap_conn *conn, struct sk_buff *skb)
 
int smp_distribute_keys (struct l2cap_conn *conn, __u8 force)
 
int smp_user_confirm_reply (struct hci_conn *conn, u16 mgmt_op, __le32 passkey)
 
void smp_chan_destroy (struct l2cap_conn *conn)
 

Variables

struct smp_command_hdr __packed
 

Macro Definition Documentation

#define SMP_AUTH_BONDING   0x01

Definition at line 55 of file smp.h.

#define SMP_AUTH_MITM   0x04

Definition at line 56 of file smp.h.

#define SMP_AUTH_NONE   0x00

Definition at line 54 of file smp.h.

#define SMP_AUTH_REQUIREMENTS   0x03

Definition at line 107 of file smp.h.

#define SMP_CMD_ENCRYPT_INFO   0x06

Definition at line 73 of file smp.h.

#define SMP_CMD_IDENT_ADDR_INFO   0x09

Definition at line 89 of file smp.h.

#define SMP_CMD_IDENT_INFO   0x08

Definition at line 84 of file smp.h.

#define SMP_CMD_MASTER_IDENT   0x07

Definition at line 78 of file smp.h.

#define SMP_CMD_NOTSUPP   0x07

Definition at line 111 of file smp.h.

#define SMP_CMD_PAIRING_CONFIRM   0x03

Definition at line 58 of file smp.h.

#define SMP_CMD_PAIRING_FAIL   0x05

Definition at line 68 of file smp.h.

#define SMP_CMD_PAIRING_RANDOM   0x04

Definition at line 63 of file smp.h.

#define SMP_CMD_PAIRING_REQ   0x01

Definition at line 30 of file smp.h.

#define SMP_CMD_PAIRING_RSP   0x02

Definition at line 31 of file smp.h.

#define SMP_CMD_SECURITY_REQ   0x0b

Definition at line 100 of file smp.h.

#define SMP_CMD_SIGN_INFO   0x0a

Definition at line 95 of file smp.h.

#define SMP_CONFIRM_FAILED   0x04

Definition at line 108 of file smp.h.

#define SMP_DIST_ENC_KEY   0x01

Definition at line 50 of file smp.h.

#define SMP_DIST_ID_KEY   0x02

Definition at line 51 of file smp.h.

#define SMP_DIST_SIGN   0x04

Definition at line 52 of file smp.h.

#define SMP_ENC_KEY_SIZE   0x06

Definition at line 110 of file smp.h.

#define SMP_FLAG_CFM_PENDING   2

Definition at line 119 of file smp.h.

#define SMP_FLAG_MITM_AUTH   3

Definition at line 120 of file smp.h.

#define SMP_FLAG_TK_VALID   1

Definition at line 118 of file smp.h.

#define SMP_IO_DISPLAY_ONLY   0x00

Definition at line 41 of file smp.h.

#define SMP_IO_DISPLAY_YESNO   0x01

Definition at line 42 of file smp.h.

#define SMP_IO_KEYBOARD_DISPLAY   0x04

Definition at line 45 of file smp.h.

#define SMP_IO_KEYBOARD_ONLY   0x02

Definition at line 43 of file smp.h.

#define SMP_IO_NO_INPUT_OUTPUT   0x03

Definition at line 44 of file smp.h.

#define SMP_MAX_ENC_KEY_SIZE   16

Definition at line 116 of file smp.h.

#define SMP_MIN_ENC_KEY_SIZE   7

Definition at line 115 of file smp.h.

#define SMP_OOB_NOT_AVAIL   0x02

Definition at line 106 of file smp.h.

#define SMP_OOB_NOT_PRESENT   0x00

Definition at line 47 of file smp.h.

#define SMP_OOB_PRESENT   0x01

Definition at line 48 of file smp.h.

#define SMP_PAIRING_NOTSUPP   0x05

Definition at line 109 of file smp.h.

#define SMP_PASSKEY_ENTRY_FAILED   0x01

Definition at line 105 of file smp.h.

#define SMP_REPEATED_ATTEMPTS   0x09

Definition at line 113 of file smp.h.

#define SMP_UNSPECIFIED   0x08

Definition at line 112 of file smp.h.

Function Documentation

void smp_chan_destroy ( struct l2cap_conn conn)

Definition at line 513 of file smp.c.

int smp_conn_security ( struct hci_conn hcon,
__u8  sec_level 
)

Definition at line 765 of file smp.c.

int smp_distribute_keys ( struct l2cap_conn conn,
__u8  force 
)

Definition at line 920 of file smp.c.

int smp_sig_channel ( struct l2cap_conn conn,
struct sk_buff skb 
)

Definition at line 848 of file smp.c.

int smp_user_confirm_reply ( struct hci_conn conn,
u16  mgmt_op,
__le32  passkey 
)

Definition at line 528 of file smp.c.

Variable Documentation