From 473d90487bd18f55b035887093e17b4a0ccc3b52 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 27 Nov 2017 09:09:01 +0100 Subject: sys/linux: improve hash generation for KEYCTL_DH_COMPUTE KEYCTL_DH_COMPUTE used the old fixed list of algorithm names. Use the new code for algorithm generation. + it needs only SHASH algs, but we passed in all alg names. Pass only SHASH algs. --- sys/linux/init.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/linux/init.go') diff --git a/sys/linux/init.go b/sys/linux/init.go index 56775d268..f6a39913e 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -42,9 +42,10 @@ func initTarget(target *prog.Target) { target.SanitizeCall = arch.sanitizeCall target.SpecialStructs = map[string]func(g *prog.Gen, typ *prog.StructType, old *prog.GroupArg) ( prog.Arg, []*prog.Call){ - "timespec": arch.generateTimespec, - "timeval": arch.generateTimespec, - "sockaddr_alg": arch.generateSockaddrAlg, + "timespec": arch.generateTimespec, + "timeval": arch.generateTimespec, + "sockaddr_alg": arch.generateSockaddrAlg, + "alg_hash_name": arch.generateAlgHashName, } target.StringDictionary = stringDictionary -- cgit mrf-deployment