Whamcloud - gitweb
LU-12894 sec: fix checksum for skpi 04/36604/10
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 29 Oct 2019 09:32:22 +0000 (18:32 +0900)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Dec 2019 05:58:40 +0000 (05:58 +0000)
commitdcdf060342e7d69b64171840cf9475bf65d036ea
tree06b3d523d2c555c044fb9f87af6fea638de270ed
parent7d2ea1e5bbd80f23e6935174c969b34b58048443
LU-12894 sec: fix checksum for skpi

Compute checkum on message before actually comparing
it to hmac value.

Add test to exercise all SSK flavors.
Make sure zconf_mount does include skpath mount option if SSK or
Kerberos is in use.

Fixes: a21c13d4df ("LU-8602 gss: Properly port gss to newer crypto api.")
Test-Parameters: envdefinitions=SHARED_KEY=true testlist=sanity-sec
Test-Parameters: envdefinitions=SHARED_KEY=true,SK_FLAVOR=skn testlist=sanity,recovery-small
Test-Parameters: envdefinitions=SHARED_KEY=true,SK_FLAVOR=ska testlist=sanity,recovery-small
Test-Parameters: envdefinitions=SHARED_KEY=true,SK_FLAVOR=ski testlist=sanity,recovery-small
Test-Parameters: envdefinitions=SHARED_KEY=true,SK_FLAVOR=skpi testlist=sanity,recovery-small
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I7bcc3618c1824a0f0ca73219c7ac0ccc8405b946
Reviewed-on: https://review.whamcloud.com/36604
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/gss/gss_sk_mech.c
lustre/tests/sanity-sec.sh
lustre/tests/test-framework.sh