diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-03-17 10:25:24 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-03-17 10:25:24 +0000 |
commit | 8e443bb412cd99bc42a06075e051d052fd4a22b3 (patch) | |
tree | 247821026b0dff878f188e40d6daa0ea0597e0f3 /sys/kern | |
parent | fa4f02f39ae2b2603192374afd1fef211e15b3e3 (diff) |
Cryptographic services framework, and software "device driver". The
idea is to support various cryptographic hardware accelerators (which
may be (detachable) cards, secondary/tertiary/etc processors,
software crypto, etc). Supports session migration between crypto
devices. What it doesn't (yet) support:
- multiple instances of the same algorithm used in the same session
- use of multiple crypto drivers in the same session
- asymmetric crypto
No support for a userland device yet.
IPsec code path modified to allow for asynchronous cryptography
(callbacks used in both input and output processing). Some unrelated
code simplification done in the process (especially for AH).
Development of this code kindly supported by Network Security
Technologies (NSTI). The code was writen mostly in Greece, and is
being committed from Montreal.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/init_main.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 17101988893..81d2e8d52ad 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.47 2000/02/28 18:04:08 provos Exp $ */ +/* $OpenBSD: init_main.c,v 1.48 2000/03/17 10:25:21 angelos Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -96,6 +96,10 @@ #include <net/if.h> #include <net/raw_cb.h> +#if defined(CRYPTO) +#include <crypto/crypto.h> +#endif + #if defined(NFSSERVER) || defined(NFSCLIENT) extern void nfs_init __P((void)); #endif @@ -349,6 +353,10 @@ main(framep) for (pdev = pdevinit; pdev->pdev_attach != NULL; pdev++) (*pdev->pdev_attach)(pdev->pdev_count); +#ifdef CRYPTO + swcr_init(); +#endif /* CRYPTO */ + /* * Initialize protocols. Block reception of incoming packets * until everything is ready. |