diff options
Diffstat (limited to 'tests/keyctl/add/useradd/runtest.sh')
-rw-r--r-- | tests/keyctl/add/useradd/runtest.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/keyctl/add/useradd/runtest.sh b/tests/keyctl/add/useradd/runtest.sh index 031241c..e421a89 100644 --- a/tests/keyctl/add/useradd/runtest.sh +++ b/tests/keyctl/add/useradd/runtest.sh @@ -19,6 +19,16 @@ marker "PRINT PAYLOAD" print_key $keyid expect_payload payload "stuff" +# check that we can add a hex-encoded user key to the session keyring +marker "ADD HEX USER KEY" +create_key -x user wibble "73 7475 66 66 " @s +expect_keyid keyid + +# read back what we put in it +marker "PRINT PAYLOAD" +print_key $keyid +expect_payload payload "stuff" + # check that we can update a user key marker "UPDATE USER KEY" create_key user wibble lizard @s |