]> granicus.if.org Git - strace/commit
netlink: decode NETLINK_CRYPTO crypto_user_alg netlink attributes
authorJingPiao Chen <chenjingpiao@gmail.com>
Sat, 22 Jul 2017 23:25:00 +0000 (07:25 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 24 Jul 2017 11:18:43 +0000 (11:18 +0000)
commite4b90f7bbf5b3d68fbc24898b1f75b2e20f3955e
treef2ee714f6a126690cc04208159aebd8818037b14
parent540d2f50fedca9e08ffa73c9bbd33d7c89ed3ad9
netlink: decode NETLINK_CRYPTO crypto_user_alg netlink attributes

* configure.ac (AC_CHECK_TYPES): Check for crypto_report_aead,
crypto_report_blkcipher, crypto_report_cipher, crypto_report_hash,
and crypto_report_rng structures in <linux/cryptouser.h>.
* netlink_crypto.c (decode_crypto_report_generic,
decode_crypto_report_hash, decode_crypto_report_blkcipher,
decode_crypto_report_aead, decode_crypto_report_rng,
decode_crypto_report_cipher): New functions.
(crypto_user_alg_nla_decoders): New array.
(decode_crypto_user_alg): Use it.
* xlat/crypto_nl_attrs.in: New file.
* NEWS: Mention this.
NEWS
configure.ac
netlink_crypto.c
xlat/crypto_nl_attrs.in [new file with mode: 0644]