qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>, qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 5/5] ui: convert VNC server to use QCryptoTLSSession
Date: Tue, 11 Aug 2015 18:44:34 +0200	[thread overview]
Message-ID: <55CA2672.80006@redhat.com> (raw)
In-Reply-To: <1439303203-15999-6-git-send-email-berrange@redhat.com>



On 11/08/2015 16:26, Daniel P. Berrange wrote:
>   -object tls-creds,id=tls0,credtype=anon,endpoint=server \
>   -vnc hostname:0,tls-creds=tls0
> 
> Old syntax for x509 credentials, no client certs:
> 
>   -vnc hostname:0,tls,x509=/path/to/certs
> 
> New syntax:
> 
>   -object tls-creds,id=tls0,credtype=x509,dir=/path/to/certs,endpoint=server,verify-peer=no \
>   -vnc hostname:0,tls-creds=tls0
> 
> Old syntax for x509 credentials, requiring client certs:
> 
>   -vnc hostname:0,tls,x509verify=/path/to/certs

Would it be possible to change credtype=foo to subclasses of the
abstract tls-creds class?  That is

   -object tls-creds-anon,id=tls0,endpoint=server
   -object tls-creds-x509,id=tls0,dir=/path/to/certs,endpoint=server,verify-peer=yes|no

This would be more similar to how -object is usually used.  You
get to choose whether to keep the union or have separate structs
QCryptoTLSCredsX509 and QCryptoTLSCredsAnonymous.

Paolo

  reply	other threads:[~2015-08-11 16:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-11 14:26 [Qemu-devel] [PATCH v2 0/5] Extract TLS handling code from VNC server Daniel P. Berrange
2015-08-11 14:26 ` [Qemu-devel] [PATCH v2 1/5] crypto: introduce new module for handling TLS credentials Daniel P. Berrange
2015-08-11 14:26 ` [Qemu-devel] [PATCH v2 2/5] crypto: add sanity checking of " Daniel P. Berrange
2015-08-11 14:26 ` [Qemu-devel] [PATCH v2 3/5] crypto: introduce new module for handling TLS sessions Daniel P. Berrange
2015-08-11 14:26 ` [Qemu-devel] [PATCH v2 4/5] ui: fix return type for VNC I/O functions to be ssize_t Daniel P. Berrange
2015-08-11 14:26 ` [Qemu-devel] [PATCH v2 5/5] ui: convert VNC server to use QCryptoTLSSession Daniel P. Berrange
2015-08-11 16:44   ` Paolo Bonzini [this message]
2015-08-11 17:22     ` Daniel P. Berrange

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55CA2672.80006@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=berrange@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).