diff options
Diffstat (limited to 'include/net/bluetooth/smp.h')
| -rw-r--r-- | include/net/bluetooth/smp.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/bluetooth/smp.h b/include/net/bluetooth/smp.h index 46c457612300..15b97d549441 100644 --- a/include/net/bluetooth/smp.h +++ b/include/net/bluetooth/smp.h | |||
| @@ -115,9 +115,26 @@ struct smp_cmd_security_req { | |||
| 115 | #define SMP_MIN_ENC_KEY_SIZE 7 | 115 | #define SMP_MIN_ENC_KEY_SIZE 7 |
| 116 | #define SMP_MAX_ENC_KEY_SIZE 16 | 116 | #define SMP_MAX_ENC_KEY_SIZE 16 |
| 117 | 117 | ||
| 118 | struct smp_chan { | ||
| 119 | struct l2cap_conn *conn; | ||
| 120 | u8 preq[7]; /* SMP Pairing Request */ | ||
| 121 | u8 prsp[7]; /* SMP Pairing Response */ | ||
| 122 | u8 prnd[16]; /* SMP Pairing Random (local) */ | ||
| 123 | u8 rrnd[16]; /* SMP Pairing Random (remote) */ | ||
| 124 | u8 pcnf[16]; /* SMP Pairing Confirm */ | ||
| 125 | u8 tk[16]; /* SMP Temporary Key */ | ||
| 126 | u8 smp_key_size; | ||
| 127 | struct crypto_blkcipher *tfm; | ||
| 128 | struct work_struct confirm; | ||
| 129 | struct work_struct random; | ||
| 130 | |||
| 131 | }; | ||
| 132 | |||
| 118 | /* SMP Commands */ | 133 | /* SMP Commands */ |
| 119 | int smp_conn_security(struct l2cap_conn *conn, __u8 sec_level); | 134 | int smp_conn_security(struct l2cap_conn *conn, __u8 sec_level); |
| 120 | int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb); | 135 | int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb); |
| 121 | int smp_distribute_keys(struct l2cap_conn *conn, __u8 force); | 136 | int smp_distribute_keys(struct l2cap_conn *conn, __u8 force); |
| 122 | 137 | ||
| 138 | void smp_chan_destroy(struct l2cap_conn *conn); | ||
| 139 | |||
| 123 | #endif /* __SMP_H */ | 140 | #endif /* __SMP_H */ |
