summaryrefslogtreecommitdiff
path: root/sys/opencrypto
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2003-12-15 21:49:41 +0000
committerBruce M Simpson <bms@FreeBSD.org>2003-12-15 21:49:41 +0000
commit37621fd5d93015b59e08fc1278cbabfbf393fa7b (patch)
tree4a56d35c92a140a3a9a8c550bd3f95c338a48449 /sys/opencrypto
parentdd8fa07d07d05f800e13a0d6c084dfbc7696ae0d (diff)
Notes
Diffstat (limited to 'sys/opencrypto')
-rw-r--r--sys/opencrypto/cryptodev.h3
-rw-r--r--sys/opencrypto/cryptosoft.c9
2 files changed, 1 insertions, 11 deletions
diff --git a/sys/opencrypto/cryptodev.h b/sys/opencrypto/cryptodev.h
index d281dd50330e..ec166e81ce90 100644
--- a/sys/opencrypto/cryptodev.h
+++ b/sys/opencrypto/cryptodev.h
@@ -379,9 +379,6 @@ extern int crypto_devallowsoft; /* only use hardware crypto */
* XXX these don't really belong here; but for now they're
* kept apart from the rest of the system.
*/
-struct mbuf;
-struct mbuf *m_getptr(struct mbuf *, int, int *);
-
struct uio;
extern void cuio_copydata(struct uio* uio, int off, int len, caddr_t cp);
extern void cuio_copyback(struct uio* uio, int off, int len, caddr_t cp);
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c
index 6fa156e66c66..32256206ac4b 100644
--- a/sys/opencrypto/cryptosoft.c
+++ b/sys/opencrypto/cryptosoft.c
@@ -88,13 +88,6 @@ static int swcr_newsession(void *, u_int32_t *, struct cryptoini *);
static int swcr_freesession(void *, u_int64_t);
/*
- * NB: These came over from openbsd and are kept private
- * to the crypto code for now.
- */
-extern int m_apply(struct mbuf *m, int off, int len,
- int (*f)(caddr_t, caddr_t, unsigned int), caddr_t fstate);
-
-/*
* Apply a symmetric encryption/decryption algorithm.
*/
static int
@@ -460,7 +453,7 @@ swcr_authcompute(struct cryptop *crp, struct cryptodesc *crd,
break;
case CRYPTO_BUF_MBUF:
err = m_apply((struct mbuf *) buf, crd->crd_skip, crd->crd_len,
- (int (*)(caddr_t, caddr_t, unsigned int)) axf->Update,
+ (int (*)(void *, caddr_t, unsigned int)) axf->Update,
(caddr_t) &ctx);
if (err)
return err;