diff options
Diffstat (limited to 'tests/keyctl/padd/useradd/runtest.sh')
-rw-r--r-- | tests/keyctl/padd/useradd/runtest.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/keyctl/padd/useradd/runtest.sh b/tests/keyctl/padd/useradd/runtest.sh index 206a163..6bd3c09 100644 --- a/tests/keyctl/padd/useradd/runtest.sh +++ b/tests/keyctl/padd/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" +pcreate_key "73 7475 66 66 " -x user wibble @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" pcreate_key lizard user wibble @s |