[gnutls-devel] GnuTLS | mech-list.h: generate unique entries (6099715e)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Wed Sep 26 08:10:00 CEST 2018
Nikos Mavrogiannopoulos commented on a discussion on src/gen-mech-list.sh:
> # Exclude duplicate and uninteresting entries
> EXCLUDED="(CKM_VENDOR_DEFINED\s|CKM_CAST128_MAC\s|CKM_CAST128_KEY_GEN\s|CKM_CAST128_ECB\s|CKM_CAST128_CBC\s|CKM_CAST128_MAC_GENERAL\s|CKM_CAST128_CBC_PAD\s|CKM_PBE_MD5_CAST128_CBC\s|CKM_PBE_SHA1_CAST128_CBC\s|CKM_EC_KEY_PAIR_GEN\s)"
>
> -cat ${HEADER}|grep -E "define\sCKM_"|grep -vE "${EXCLUDED}"|awk '{print "\t["$3"] = \""$2"\","}'
> +TMPFILE=list.$$.tmp
>
> +cat ${HEADER}|grep -E "define\sCKM_"|grep -vE "${EXCLUDED}"|awk '{print "\t["$3"] = \""$2"\","}' >${TMPFILE}
> +cat ${TMPFILE}|sort|uniq
Indeed, it is simpler like that; done.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/commit/6099715eefb08e8bff3265ebdc48f2a051cb0527#note_104307481
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20180926/c80360d8/attachment-0001.html>
More information about the Gnutls-devel
mailing list