keyutils.h   keyutils.h 
/* keyutils.h: key utility library interface /* keyutils.h: key utility library interface
* *
* Copyright (C) 2005 Red Hat, Inc. All Rights Reserved. * Copyright (C) 2005,2011 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com) * Written by David Howells (dhowells@redhat.com)
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License * modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version * as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#ifndef KEYUTILS_H #ifndef KEYUTILS_H
#define KEYUTILS_H #define KEYUTILS_H
skipping to change at line 94 skipping to change at line 94
#define KEYCTL_UNLINK 9 /* unlink a key from a keyri ng */ #define KEYCTL_UNLINK 9 /* unlink a key from a keyri ng */
#define KEYCTL_SEARCH 10 /* search for a key in a key ring */ #define KEYCTL_SEARCH 10 /* search for a key in a key ring */
#define KEYCTL_READ 11 /* read a key or keyring's c ontents */ #define KEYCTL_READ 11 /* read a key or keyring's c ontents */
#define KEYCTL_INSTANTIATE 12 /* instantiate a partially c onstructed key */ #define KEYCTL_INSTANTIATE 12 /* instantiate a partially c onstructed key */
#define KEYCTL_NEGATE 13 /* negate a partially constr ucted key */ #define KEYCTL_NEGATE 13 /* negate a partially constr ucted key */
#define KEYCTL_SET_REQKEY_KEYRING 14 /* set default request-key k eyring */ #define KEYCTL_SET_REQKEY_KEYRING 14 /* set default request-key k eyring */
#define KEYCTL_SET_TIMEOUT 15 /* set timeout on a key */ #define KEYCTL_SET_TIMEOUT 15 /* set timeout on a key */
#define KEYCTL_ASSUME_AUTHORITY 16 /* assume authority to instantiate key */ #define KEYCTL_ASSUME_AUTHORITY 16 /* assume authority to instantiate key */
#define KEYCTL_GET_SECURITY 17 /* get key security label */ #define KEYCTL_GET_SECURITY 17 /* get key security label */
#define KEYCTL_SESSION_TO_PARENT 18 /* set my session keyring on my parent process */ #define KEYCTL_SESSION_TO_PARENT 18 /* set my session keyring on my parent process */
#define KEYCTL_REJECT 19 /* reject a partially constr
ucted key */
#define KEYCTL_INSTANTIATE_IOV 20 /* instantiate a partially c
onstructed key */
/* /*
* syscall wrappers * syscall wrappers
*/ */
extern key_serial_t add_key(const char *type, extern key_serial_t add_key(const char *type,
const char *description, const char *description,
const void *payload, const void *payload,
size_t plen, size_t plen,
key_serial_t ringid); key_serial_t ringid);
skipping to change at line 139 skipping to change at line 141
extern long keyctl_instantiate(key_serial_t id, extern long keyctl_instantiate(key_serial_t id,
const void *payload, const void *payload,
size_t plen, size_t plen,
key_serial_t ringid); key_serial_t ringid);
extern long keyctl_negate(key_serial_t id, unsigned timeout, key_serial_t r ingid); extern long keyctl_negate(key_serial_t id, unsigned timeout, key_serial_t r ingid);
extern long keyctl_set_reqkey_keyring(int reqkey_defl); extern long keyctl_set_reqkey_keyring(int reqkey_defl);
extern long keyctl_set_timeout(key_serial_t key, unsigned timeout); extern long keyctl_set_timeout(key_serial_t key, unsigned timeout);
extern long keyctl_assume_authority(key_serial_t key); extern long keyctl_assume_authority(key_serial_t key);
extern long keyctl_get_security(key_serial_t key, char *buffer, size_t bufl en); extern long keyctl_get_security(key_serial_t key, char *buffer, size_t bufl en);
extern long keyctl_session_to_parent(void); extern long keyctl_session_to_parent(void);
extern long keyctl_reject(key_serial_t id, unsigned timeout, unsigned error
,
key_serial_t ringid);
struct iovec;
extern long keyctl_instantiate_iov(key_serial_t id,
const struct iovec *payload_iov,
unsigned ioc,
key_serial_t ringid);
/* /*
* utilities * utilities
*/ */
extern int keyctl_describe_alloc(key_serial_t id, char **_buffer); extern int keyctl_describe_alloc(key_serial_t id, char **_buffer);
extern int keyctl_read_alloc(key_serial_t id, void **_buffer); extern int keyctl_read_alloc(key_serial_t id, void **_buffer);
extern int keyctl_get_security_alloc(key_serial_t id, char **_buffer); extern int keyctl_get_security_alloc(key_serial_t id, char **_buffer);
typedef int (*recursive_key_scanner_t)(key_serial_t parent, key_serial_t ke
y,
char *desc, int desc_len, void *data)
;
extern int recursive_key_scan(key_serial_t key, recursive_key_scanner_t fun
c, void *data);
extern int recursive_session_key_scan(recursive_key_scanner_t func, void *d
ata);
#endif /* KEYUTILS_H */ #endif /* KEYUTILS_H */
 End of changes. 4 change blocks. 
1 lines changed or deleted 22 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/