eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 53e68b64b2fe6b0800509e7e82b1df89fe200d20
parent 124b04fff6a0c959c8f423e6675bcfc2eb4d9426
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 15 Dec 2021 09:41:45 -0800

crypto: allow NULL 'ad' to aes_siv_encrypt

Diffstat:
Msrc/crypto.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/crypto.c b/src/crypto.c @@ -330,7 +330,9 @@ bool aes_siv_encrypt(const void *key, size_t key_len, const void *in, struct iovec iov[num_ad + 1]; uint8_t v[16]; - memcpy(iov, ad, sizeof(struct iovec) * num_ad); + if (ad) + memcpy(iov, ad, sizeof(struct iovec) * num_ad); + iov[num_ad].iov_base = (void *)in; iov[num_ad].iov_len = in_len; num_ad++;