提交 33705aee 编写于 作者: M Mikhail Feoktistov 提交者: Roman Bogorodskiy

util: fix build without GNUTLS

上级 f3d5e255
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "virlog.h" #include "virlog.h"
#include "virerror.h" #include "virerror.h"
#include "viralloc.h" #include "viralloc.h"
#include "virrandom.h"
#include "md5.h" #include "md5.h"
#include "sha256.h" #include "sha256.h"
...@@ -220,14 +221,14 @@ virCryptoEncryptDataAESgnutls(gnutls_cipher_algorithm_t gnutls_enc_alg, ...@@ -220,14 +221,14 @@ virCryptoEncryptDataAESgnutls(gnutls_cipher_algorithm_t gnutls_enc_alg,
*/ */
int int
virCryptoEncryptData(virCryptoCipher algorithm, virCryptoEncryptData(virCryptoCipher algorithm,
uint8_t *enckey, uint8_t *enckey ATTRIBUTE_UNUSED,
size_t enckeylen, size_t enckeylen,
uint8_t *iv, uint8_t *iv ATTRIBUTE_UNUSED,
size_t ivlen, size_t ivlen,
uint8_t *data, uint8_t *data ATTRIBUTE_UNUSED,
size_t datalen, size_t datalen ATTRIBUTE_UNUSED,
uint8_t **ciphertext, uint8_t **ciphertext ATTRIBUTE_UNUSED,
size_t *ciphertextlen) size_t *ciphertextlen ATTRIBUTE_UNUSED)
{ {
switch (algorithm) { switch (algorithm) {
case VIR_CRYPTO_CIPHER_AES256CBC: case VIR_CRYPTO_CIPHER_AES256CBC:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册