]> git.proxmox.com Git - mirror_qemu.git/blob - qapi/crypto.json
crypto: add QCryptoSecret object class for password/key handling
[mirror_qemu.git] / qapi / crypto.json
1 # -*- Mode: Python -*-
2 #
3 # QAPI crypto definitions
4
5 ##
6 # QCryptoTLSCredsEndpoint:
7 #
8 # The type of network endpoint that will be using the credentials.
9 # Most types of credential require different setup / structures
10 # depending on whether they will be used in a server versus a
11 # client.
12 #
13 # @client: the network endpoint is acting as the client
14 #
15 # @server: the network endpoint is acting as the server
16 #
17 # Since: 2.5
18 ##
19 { 'enum': 'QCryptoTLSCredsEndpoint',
20 'prefix': 'QCRYPTO_TLS_CREDS_ENDPOINT',
21 'data': ['client', 'server']}
22
23
24 ##
25 # QCryptoSecretFormat:
26 #
27 # The data format that the secret is provided in
28 #
29 # @raw: raw bytes. When encoded in JSON only valid UTF-8 sequences can be used
30 # @base64: arbitrary base64 encoded binary data
31 # Since: 2.6
32 ##
33 { 'enum': 'QCryptoSecretFormat',
34 'prefix': 'QCRYPTO_SECRET_FORMAT',
35 'data': ['raw', 'base64']}