diff options
author | Daniel P. Berrange | 2015-03-13 18:39:26 +0100 |
---|---|---|
committer | Daniel P. Berrange | 2015-09-15 15:47:37 +0200 |
commit | a090187de116a3d0b8146ca481249c8fc83ad3ee (patch) | |
tree | 45a83d45ec34d9caf3bc9098d9711a4215f442e3 /trace-events | |
parent | qom: allow QOM to be linked into tools binaries (diff) | |
download | qemu-a090187de116a3d0b8146ca481249c8fc83ad3ee.tar.gz qemu-a090187de116a3d0b8146ca481249c8fc83ad3ee.tar.xz qemu-a090187de116a3d0b8146ca481249c8fc83ad3ee.zip |
crypto: introduce new base module for TLS credentials
Introduce a QCryptoTLSCreds class to act as the base class for
storing TLS credentials. This will be later subclassed to provide
handling of anonymous and x509 credential types. The subclasses
will be user creatable objects, so instances can be created &
deleted via 'object-add' and 'object-del' QMP commands respectively,
or via the -object command line arg.
If the credentials cannot be initialized an error will be reported
as a QMP reply, or on stderr respectively.
The idea is to make it possible to represent and manage TLS
credentials independently of the network service that is using
them. This will enable multiple services to use the same set of
credentials and minimize code duplication. A later patch will
convert the current VNC server TLS code over to use this object.
The representation of credentials will be functionally equivalent
to that currently implemented in the VNC server with one exception.
The new code has the ability to (optionally) load a pre-generated
set of diffie-hellman parameters, if the file dh-params.pem exists,
whereas the current VNC server will always generate them on startup.
This is beneficial for admins who wish to avoid the (small) time
sink of generating DH parameters at startup and/or avoid depleting
entropy.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'trace-events')
-rw-r--r-- | trace-events | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/trace-events b/trace-events index 1927c764a9..e8103d1374 100644 --- a/trace-events +++ b/trace-events @@ -1666,3 +1666,7 @@ alsa_no_frames(int state) "No frames available and ALSA state is %d" # audio/ossaudio.c oss_version(int version) "OSS version = %#x" oss_invalid_available_size(int size, int bufsize) "Invalid available size, size=%d bufsize=%d" + +# crypto/tlscreds.c +qcrypto_tls_creds_load_dh(void *creds, const char *filename) "TLS creds load DH creds=%p filename=%s" +qcrypto_tls_creds_get_path(void *creds, const char *filename, const char *path) "TLS creds path creds=%p filename=%s path=%s" |