summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-05-15 09:00:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-05-15 09:00:24 +0000
commite7a57173abb92aee8d931601aba1ac2afeec1e52 (patch)
treeabd795c38e410e43550e6b8a2e00cc7d1a32a4bf
parentca7e903831aad6f10517f38662a952d672d58e19 (diff)
DTYPE_CRYPTO
-rw-r--r--sys/crypto/cryptodev.c4
-rw-r--r--sys/sys/file.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c
index a80e9917916..1f23f232453 100644
--- a/sys/crypto/cryptodev.c
+++ b/sys/crypto/cryptodev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptodev.c,v 1.6 2001/05/14 15:37:16 deraadt Exp $ */
+/* $OpenBSD: cryptodev.c,v 1.7 2001/05/15 09:00:23 deraadt Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
@@ -505,7 +505,7 @@ cryptoioctl(dev, cmd, data, flag, p)
return (error);
}
f->f_flag = FREAD | FWRITE;
- f->f_type = DTYPE_PIPE;
+ f->f_type = DTYPE_CRYPTO;
f->f_ops = &cryptofops;
f->f_data = (caddr_t)fcr;
*(u_int32_t *)data = fd;
diff --git a/sys/sys/file.h b/sys/sys/file.h
index 2a9102c0498..8c4856afd8f 100644
--- a/sys/sys/file.h
+++ b/sys/sys/file.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.h,v 1.11 2001/05/14 12:38:46 art Exp $ */
+/* $OpenBSD: file.h,v 1.12 2001/05/15 09:00:19 deraadt Exp $ */
/* $NetBSD: file.h,v 1.11 1995/03/26 20:24:13 jtc Exp $ */
/*
@@ -58,6 +58,7 @@ struct file {
#define DTYPE_SOCKET 2 /* communications endpoint */
#define DTYPE_PIPE 3 /* pipe */
#define DTYPE_KQUEUE 4 /* event queue */
+#define DTYPE_CRYPTO 5 /* crypto */
short f_type; /* descriptor type */
long f_count; /* reference count */
long f_msgcount; /* references from message queue */