Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions drivers/crypto/openssl/rte_openssl_pmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ process_openssl_auth_encryption_gcm(struct rte_mbuf *mbuf_src, int offset,
int len = 0;
#if OPENSSL_VERSION_NUMBER < 0x10100000L
int unused = 0;
uint8_t empty[] = {};
uint8_t empty[0] = {};
#endif

if (EVP_EncryptInit_ex(ctx, NULL, NULL, NULL, iv) <= 0)
Expand Down Expand Up @@ -1320,9 +1320,10 @@ process_openssl_auth_decryption_gcm(struct rte_mbuf *mbuf_src, int offset,
int len = 0;
#if OPENSSL_VERSION_NUMBER < 0x10100000L
int unused = 0;
uint8_t empty[] = {};
uint8_t empty[0] = {};
#endif


if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_TAG, 16, tag) <= 0)
goto process_auth_decryption_gcm_err;

Expand Down
2 changes: 1 addition & 1 deletion lib/vhost/vhost_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ typedef const struct vhost_message_handler {
bool accepts_fd;
bool lock_all_qps;
} vhost_message_handler_t;
static vhost_message_handler_t vhost_message_handlers[];
static vhost_message_handler_t vhost_message_handlers[41];

#define VHOST_MESSAGE_HANDLERS \
VHOST_MESSAGE_HANDLER(VHOST_USER_NONE, NULL, false, false) \
Expand Down