diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-06 04:37:08 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-06 04:37:08 +0000 |
commit | e1e0b623166e7dbf459e7031902db4f3259d924f (patch) | |
tree | ec74d81a815fe71453dba58b38bc0592c2b9b7ec /sys/crypto/cryptosoft.c | |
parent | e9883401a25c41784402f52f3060ae46b93372f4 (diff) |
Don't bother migrating software sessions, as this might lead to
session leakage.
Diffstat (limited to 'sys/crypto/cryptosoft.c')
-rw-r--r-- | sys/crypto/cryptosoft.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c index 9fd71e2bcae..150b38708e0 100644 --- a/sys/crypto/cryptosoft.c +++ b/sys/crypto/cryptosoft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptosoft.c,v 1.20 2001/05/15 02:40:35 deraadt Exp $ */ +/* $OpenBSD: cryptosoft.c,v 1.21 2001/06/06 04:37:07 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -674,7 +674,6 @@ swcr_process(struct cryptop *crp) struct cryptodesc *crd; struct swcr_data *sw; u_int32_t lid; - u_int64_t nid; int type; /* Sanity check */ @@ -754,18 +753,6 @@ swcr_process(struct cryptop *crp) } done: - if (crp->crp_etype == ENOENT) - { - crypto_freesession(crp->crp_sid); /* Just in case */ - - /* Migrate session */ - for (crd = crp->crp_desc; crd->crd_next; crd = crd->crd_next) - crd->CRD_INI.cri_next = &(crd->crd_next->CRD_INI); - - if (crypto_newsession(&nid, &(crp->crp_desc->CRD_INI), 0) == 0) - crp->crp_sid = nid; - } - crypto_done(crp); return 0; } |