int virNetServerClientGetTLSKeySize(virNetServerClientPtr client) { int size = 0; virNetServerClientLock(client); if (client->tls) size = virNetTLSSessionGetKeySize(client->tls); virNetServerClientUnlock(client); return size; }
int virNetClientGetTLSKeySize(virNetClientPtr client) { int ret = 0; virNetClientLock(client); if (client->tls) ret = virNetTLSSessionGetKeySize(client->tls); virNetClientUnlock(client); return ret; }