2.2.7.5 Security Options TLV

The Security Options TLV contains flags indicating how the connection will proceed.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Type

Length

Value

Type (1 byte): The type of TLV, which is 0x05 for the Security Options TLV.

Length (2 bytes): The length of the Value field, in bytes. This MUST be a minimum of 1 byte but implementations MUST ignore additional bytes not defined in this version of the protocol.

Value (1 byte): A bit field table with security options, which has the following structure:


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

B

A

A - UseDtlsStreamEncryption (1 bit): 0 = do not use, 1 = use.

B - SinkDisplaysPin (1 bit): 0 = PIN is not displayed by Sink, 1 = Sink displays random PIN and Source provides this PIN after DTLS handshake. Bit A MUST be set if bit B is set.

The remaining bits are reserved and MUST be set to 0 by the sender and ignored by the receiver.