diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-02-10 18:41:14 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-02-16 17:17:49 +0100 |
commit | ddffee3904828f11d596a13bd3c8960d747c66d8 (patch) | |
tree | fbd815059b4a89febe1129d44363531419b0b545 /qapi/block.json | |
parent | 145614a112a8e67d6c84b26faaf2b2002e17d9be (diff) | |
download | qemu-ddffee3904828f11d596a13bd3c8960d747c66d8.zip qemu-ddffee3904828f11d596a13bd3c8960d747c66d8.tar.gz qemu-ddffee3904828f11d596a13bd3c8960d747c66d8.tar.bz2 |
nbd: enable use of TLS with nbd-server-start command
This modifies the nbd-server-start QMP command so that it
is possible to request use of TLS. This is done by adding
a new optional parameter "tls-creds" which provides the ID
of a previously created QCryptoTLSCreds object instance.
TLS is only supported when using an IPv4/IPv6 socket listener.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1455129674-17255-17-git-send-email-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi/block.json')
-rw-r--r-- | qapi/block.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qapi/block.json b/qapi/block.json index ed61f82..58e6b30 100644 --- a/qapi/block.json +++ b/qapi/block.json @@ -146,13 +146,15 @@ # QEMU instance could refer to them as "nbd:HOST:PORT:exportname=NAME". # # @addr: Address on which to listen. +# @tls-creds: (optional) ID of the TLS credentials object. Since 2.6 # # Returns: error if the server is already running. # # Since: 1.3.0 ## { 'command': 'nbd-server-start', - 'data': { 'addr': 'SocketAddress' } } + 'data': { 'addr': 'SocketAddress', + '*tls-creds': 'str'} } ## # @nbd-server-add: |