diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-08 23:12:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-08 23:12:39 +0000 |
commit | 39b665ba259922f1a18b0ec4b59a9ace3d6b1d6c (patch) | |
tree | 49b401ec4c891463523a46a3c65733b2b4414e3a /sys/crypto | |
parent | 50924db1582868786fe205f6149059d09a50f861 (diff) |
indent
Diffstat (limited to 'sys/crypto')
-rw-r--r-- | sys/crypto/crypto.c | 4 | ||||
-rw-r--r-- | sys/crypto/cryptodev.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c index c2f33c26886..ffb8fddf3e2 100644 --- a/sys/crypto/crypto.c +++ b/sys/crypto/crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.c,v 1.26 2001/08/05 09:36:38 deraadt Exp $ */ +/* $OpenBSD: crypto.c,v 1.27 2001/11/08 23:12:38 deraadt Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -77,7 +77,7 @@ crypto_newsession(u_int64_t *sid, struct cryptoini *cri, int hard) /* See if all the algorithms are supported. */ for (cr = cri; cr; cr = cr->cri_next) if (crypto_drivers[hid].cc_alg[cr->cri_alg] == 0) - break; + break; /* Ok, all algorithms are supported. */ if (cr == NULL) diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c index 2291577a0f9..f7f87b42ed9 100644 --- a/sys/crypto/cryptodev.c +++ b/sys/crypto/cryptodev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.c,v 1.25 2001/10/26 12:03:27 art Exp $ */ +/* $OpenBSD: cryptodev.c,v 1.26 2001/11/08 23:12:38 deraadt Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -212,8 +212,8 @@ cryptof_ioctl(fp, cmd, data, p) if (txform) { crie.cri_alg = txform->type; crie.cri_klen = sop->keylen * 8; - if (sop->keylen > txform->maxkey - || sop->keylen < txform->minkey) { + if (sop->keylen > txform->maxkey || + sop->keylen < txform->minkey) { error = EINVAL; goto bail; } |