Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97d93634 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

L2CAP security policy definition

Bug: 141555841
Test: compile
Change-Id: Ic3069c6d919c81a36b4062f04b97126236adfa84
parent 0428d33d
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -18,7 +18,15 @@
namespace bluetooth {
namespace l2cap {

class SecurityPolicy {};
class SecurityPolicy {
 public:
  enum class Level {
    LEVEL_0,  // Encryption not needed. Only applies to SDP.
    LEVEL_2,  // Encryption desired. Only needs unauthenticated link key.
    LEVEL_3,  // Encryption required and authenticated link key required.
  };
  Level security_level_ = Level::LEVEL_0;
};

}  // namespace l2cap
}  // namespace bluetooth