From 3eb53d90efa64e513846ead8455355cb3da6d7e4 Mon Sep 17 00:00:00 2001 From: bms Date: Mon, 15 Dec 2003 21:49:41 +0000 Subject: Push m_apply() and m_getptr() up into the colleciton of standard mbuf routines, and purge them from opencrypto. Reviewed by: sam Obtained from: NetBSD Sponsored by: spc.org --- sys/opencrypto/cryptosoft.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sys/opencrypto/cryptosoft.c') diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c index 6fa156e..3225620 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; -- cgit v1.1