mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
crypto/tlscreds: Introduce qcrypto_tls_creds_check_endpoint() helper
Introduce the qcrypto_tls_creds_check_endpoint() helper to access QCryptoTLSCreds internal 'endpoint' field. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
13d5f87cc3
commit
e9ac68083f
2 changed files with 26 additions and 0 deletions
|
@ -65,5 +65,19 @@ struct QCryptoTLSCredsClass {
|
|||
CryptoTLSCredsReload reload;
|
||||
};
|
||||
|
||||
/**
|
||||
* qcrypto_tls_creds_check_endpoint:
|
||||
* @creds: pointer to a TLS credentials object
|
||||
* @endpoint: type of network endpoint that will be using the credentials
|
||||
* @errp: pointer to a NULL-initialized error object
|
||||
*
|
||||
* Check whether the credentials is setup according to
|
||||
* the type of @endpoint argument.
|
||||
*
|
||||
* Returns true if the credentials is setup for the endpoint, false otherwise
|
||||
*/
|
||||
bool qcrypto_tls_creds_check_endpoint(QCryptoTLSCreds *creds,
|
||||
QCryptoTLSCredsEndpoint endpoint,
|
||||
Error **errp);
|
||||
|
||||
#endif /* QCRYPTO_TLSCREDS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue