diff options
| author | 2005-05-10 13:42:11 +0000 | |
|---|---|---|
| committer | 2005-05-10 13:42:11 +0000 | |
| commit | 733cfc38d81af22c6c2218502c333c118f4d47cc (patch) | |
| tree | 89d4bd46bbd090825c90e139ad2164645ff5dd0c /sys/crypto/cryptosoft.c | |
| parent | In DIOCKILLSTATES: take into account the direction of the state when (diff) | |
| download | wireguard-openbsd-733cfc38d81af22c6c2218502c333c118f4d47cc.tar.xz wireguard-openbsd-733cfc38d81af22c6c2218502c333c118f4d47cc.zip | |
support NULL encryption for ESP; ok hshoexer, ho
Diffstat (limited to 'sys/crypto/cryptosoft.c')
| -rw-r--r-- | sys/crypto/cryptosoft.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c index 1b582f99879..e1fdd00cae4 100644 --- a/sys/crypto/cryptosoft.c +++ b/sys/crypto/cryptosoft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptosoft.c,v 1.43 2005/05/02 22:19:10 markus Exp $ */ +/* $OpenBSD: cryptosoft.c,v 1.44 2005/05/10 13:42:11 markus Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -94,6 +94,9 @@ swcr_encdec(struct cryptodesc *crd, struct swcr_data *sw, caddr_t buf, if (crd->crd_len % blks) return EINVAL; + if (exf == &enc_xform_null) + return (0); + if (outtype == CRYPTO_BUF_MBUF) m = (struct mbuf *) buf; else |
