diff options
| author | 2000-06-17 17:16:04 +0000 | |
|---|---|---|
| committer | 2000-06-17 17:16:04 +0000 | |
| commit | e992cbe461beb200ab4a608f15221ab77469ac6f (patch) | |
| tree | 396d8bca32faf371a2a7330a5b07e23144b8f5d4 /sys/miscfs/tcfs/tcfs_mount.h | |
| parent | some silly error repairs (diff) | |
| download | wireguard-openbsd-e992cbe461beb200ab4a608f15221ab77469ac6f.tar.xz wireguard-openbsd-e992cbe461beb200ab4a608f15221ab77469ac6f.zip | |
initial import of tcfs.
Diffstat (limited to 'sys/miscfs/tcfs/tcfs_mount.h')
| -rw-r--r-- | sys/miscfs/tcfs/tcfs_mount.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sys/miscfs/tcfs/tcfs_mount.h b/sys/miscfs/tcfs/tcfs_mount.h new file mode 100644 index 00000000000..59e863f3482 --- /dev/null +++ b/sys/miscfs/tcfs/tcfs_mount.h @@ -0,0 +1,39 @@ +#ifndef _TCFS_KEYTAB_H_ +#include "tcfs_keytab.h" +#endif +#define _TCFS_MOUNT_H_ + +#ifndef _TCFS_VERSION_H_ +#include "tcfs_version.h" +#endif + +#define MaxCipherNameLen 8 +struct tcfs_status { + int status; + int n_ukey; + int n_gkey; + int tcfs_version; + char cipher_desc[MaxCipherNameLen]; + int cipher_keysize; + int cipher_version; + }; +struct tcfs_args { + char *target; /* Target of loopback */ + char *tcfs_key; /* chiave */ + int cipher_num; + int cmd; /* direttiva */ + uid_t user; /* utente */ + pid_t proc; /* processo */ + gid_t group; /* gruppo */ + int treshold; /* soglia grpkey */ + struct tcfs_status st; +}; + +struct tcfs_mount { + struct mount *tcfsm_vfs; + struct vnode *tcfsm_rootvp; /* Reference to root tcfs_node */ + void* ks; + tcfs_keytab *tcfs_uid_kt; + tcfs_keytab *tcfs_gid_kt; + int tcfs_cipher_num; +}; |
