# Family handshake netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the handshake Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-handshake-netlink-specification"></a>
<a id="rst-netlink-handshake"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Netlink protocol to request a transport layer security handshake.

<a id="rst-operations"></a>



## Operations

<a id="rst-ready"></a>
<a id="rst-handshake-operation-ready"></a>



### ready



Notify handlers that a new handshake request is waiting

- **notify**:

  accept

<a id="rst-accept"></a>
<a id="rst-handshake-operation-accept"></a>



### accept



Handler retrieves next queued handshake request

- **attribute-set**:

  [accept](#rst-handshake-attribute-set-accept)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`handler-class`\]

  **reply**

  - **attributes**:

    \[`sockfd`, `message-type`, `timeout`, `auth-mode`, `peer-identity`, `certificate`, `peername`, `keyring`\]

<a id="rst-done"></a>
<a id="rst-handshake-operation-done"></a>



### done



Handler reports handshake completion

- **attribute-set**:

  [done](#rst-handshake-attribute-set-done)

- **do**:

  **request**

  - **attributes**:

    \[`status`, `sockfd`, `remote-auth`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- none


- tlshd


<a id="rst-definitions"></a>



## Definitions

<a id="rst-handler-class"></a>
<a id="rst-handshake-definition-handler-class"></a>



### handler-class

- **type**:

  enum

- **value-start**:

  0

- **entries**:

  - `none`


  - `tlshd`


  - `max`

<a id="rst-msg-type"></a>
<a id="rst-handshake-definition-msg-type"></a>



### msg-type

- **type**:

  enum

- **value-start**:

  0

- **entries**:

  - `unspec`


  - `clienthello`


  - `serverhello`

<a id="rst-auth"></a>
<a id="rst-handshake-definition-auth"></a>



### auth

- **type**:

  enum

- **value-start**:

  0

- **entries**:

  - `unspec`


  - `unauth`


  - `psk`


  - `x509`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-x509"></a>
<a id="rst-handshake-attribute-set-x509"></a>



### x509

<a id="rst-cert-s32"></a>



#### cert (`s32`)

<a id="rst-privkey-s32"></a>



#### privkey (`s32`)

<a id="rst-accept-1"></a>
<a id="rst-handshake-attribute-set-accept"></a>



### accept

<a id="rst-sockfd-s32"></a>



#### sockfd (`s32`)

<a id="rst-handler-class-u32"></a>



#### handler-class (`u32`)

- **enum**:

  [handler-class](#rst-handshake-definition-handler-class)

<a id="rst-message-type-u32"></a>



#### message-type (`u32`)

- **enum**:

  [msg-type](#rst-handshake-definition-msg-type)

<a id="rst-timeout-u32"></a>



#### timeout (`u32`)

<a id="rst-auth-mode-u32"></a>



#### auth-mode (`u32`)

- **enum**:

  [auth](#rst-handshake-definition-auth)

<a id="rst-peer-identity-u32"></a>



#### peer-identity (`u32`)

- **multi-attr**:

  True

<a id="rst-certificate-nest"></a>



#### certificate (`nest`)

- **nested-attributes**:

  [x509](#rst-handshake-attribute-set-x509)

- **multi-attr**:

  True

<a id="rst-peername-string"></a>



#### peername (`string`)

<a id="rst-keyring-u32"></a>



#### keyring (`u32`)

<a id="rst-done-1"></a>
<a id="rst-handshake-attribute-set-done"></a>



### done

<a id="rst-status-u32"></a>



#### status (`u32`)

<a id="rst-sockfd-s32-1"></a>



#### sockfd (`s32`)

<a id="rst-remote-auth-u32"></a>



#### remote-auth (`u32`)

- **multi-attr**:

  True
