summaryrefslogtreecommitdiffstats
path: root/trace-events
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-03-02 17:23:31 +0000
committerDaniel P. Berrange <berrange@redhat.com>2015-09-15 15:07:43 +0100
commitd321e1e5268103af616ec4c623c6326c3f7c7bc7 (patch)
treeb4e12c3deb8fa4b2a03510a7eac95b48f1fcfb9e /trace-events
parent9a2fd4347c40321f5cbb4ab4220e759fcbf87d03 (diff)
downloadhqemu-d321e1e5268103af616ec4c623c6326c3f7c7bc7.zip
hqemu-d321e1e5268103af616ec4c623c6326c3f7c7bc7.tar.gz
crypto: introduce new module for handling TLS sessions
Introduce a QCryptoTLSSession object that will encapsulate all the code for setting up and using a client/sever TLS session. This isolates the code which depends on the gnutls library, avoiding #ifdefs in the rest of the codebase, as well as facilitating any possible future port to other TLS libraries, if desired. It makes use of the previously defined QCryptoTLSCreds object to access credentials to use with the session. It also includes further unit tests to validate the correctness of the TLS session handshake and certificate validation. This is functionally equivalent to the current TLS session handling code embedded in the VNC server, and will obsolete it. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'trace-events')
-rw-r--r--trace-events3
1 files changed, 3 insertions, 0 deletions
diff --git a/trace-events b/trace-events
index 207821d..e5d53db 100644
--- a/trace-events
+++ b/trace-events
@@ -1681,3 +1681,6 @@ qcrypto_tls_creds_x509_check_key_usage(void *creds, const char *file, int status
qcrypto_tls_creds_x509_check_key_purpose(void *creds, const char *file, int status, const char *usage, int critical) "TLS creds x509 check key usage creds=%p file=%s status=%d usage=%s critical=%d"
qcrypto_tls_creds_x509_load_cert(void *creds, int isServer, const char *file) "TLS creds x509 load cert creds=%p isServer=%d file=%s"
qcrypto_tls_creds_x509_load_cert_list(void *creds, const char *file) "TLS creds x509 load cert list creds=%p file=%s"
+
+# crypto/tlssession.c
+qcrypto_tls_session_new(void *session, void *creds, const char *hostname, const char *aclname, int endpoint) "TLS session new session=%p creds=%p hostname=%s aclname=%s endpoint=%d" \ No newline at end of file
OpenPOWER on IntegriCloud