diff options
author | David Howells <dhowells@redhat.com> | 2011-03-11 01:00:29 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2011-03-11 01:00:29 +0000 |
commit | e911809f13477b5b2df2a79ff535859a0a054f8b (patch) | |
tree | 7f0ea3fa6e03711e58a7a9be2f43f9fcf6a437cd /keyutils.c | |
parent | d09ebcd5440332ccdc88192a02082d9f333244cf (diff) | |
download | keyutils-e911809f13477b5b2df2a79ff535859a0a054f8b.tar.gz |
Lib: Support keyctl(KEYCTL_INSTANTIATE_IOV)
Support the keyctl op to instantiate a key from payload data in an iovec rather
than a flat buffer, providing it as keyctl_instantiate_iov().
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'keyutils.c')
-rw-r--r-- | keyutils.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -181,6 +181,14 @@ long keyctl_reject(key_serial_t id, unsigned timeout, unsigned error, return keyctl(KEYCTL_REJECT, id, timeout, error, ringid); } +long keyctl_instantiate_iov(key_serial_t id, + const struct iovec *payload_iov, + unsigned ioc, + key_serial_t ringid) +{ + return keyctl(KEYCTL_INSTANTIATE_IOV, id, payload_iov, ioc, ringid); +} + /*****************************************************************************/ /* * fetch key description into an allocated buffer |