diff options
author | Zihao Chang | 2021-03-16 08:58:43 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2021-03-23 08:48:21 +0100 |
commit | a29acc9c318781b59063091b895773fc6cbe96e7 (patch) | |
tree | 50f460cb5fbda4e23798d81b4dac638189ba557a /include/crypto | |
parent | Merge remote-tracking branch 'remotes/philmd/tags/mips-fixes-20210322' into s... (diff) | |
download | qemu-a29acc9c318781b59063091b895773fc6cbe96e7.tar.gz qemu-a29acc9c318781b59063091b895773fc6cbe96e7.tar.xz qemu-a29acc9c318781b59063091b895773fc6cbe96e7.zip |
crypto: add reload for QCryptoTLSCredsClass
This patch adds reload interface for QCryptoTLSCredsClass and implements
the interface for QCryptoTLSCredsX509.
Signed-off-by: Zihao Chang <changzihao1@huawei.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210316075845.1476-2-changzihao1@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/tlscreds.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/crypto/tlscreds.h b/include/crypto/tlscreds.h index 079e376047..d0808e391e 100644 --- a/include/crypto/tlscreds.h +++ b/include/crypto/tlscreds.h @@ -30,14 +30,15 @@ #define TYPE_QCRYPTO_TLS_CREDS "tls-creds" typedef struct QCryptoTLSCreds QCryptoTLSCreds; -DECLARE_INSTANCE_CHECKER(QCryptoTLSCreds, QCRYPTO_TLS_CREDS, - TYPE_QCRYPTO_TLS_CREDS) - typedef struct QCryptoTLSCredsClass QCryptoTLSCredsClass; +DECLARE_OBJ_CHECKERS(QCryptoTLSCreds, QCryptoTLSCredsClass, QCRYPTO_TLS_CREDS, + TYPE_QCRYPTO_TLS_CREDS) + #define QCRYPTO_TLS_CREDS_DH_PARAMS "dh-params.pem" +typedef bool (*CryptoTLSCredsReload)(QCryptoTLSCreds *, Error **); /** * QCryptoTLSCreds: * @@ -61,6 +62,7 @@ struct QCryptoTLSCreds { struct QCryptoTLSCredsClass { ObjectClass parent_class; + CryptoTLSCredsReload reload; }; |