diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-06-20 05:39:33 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-06-20 05:39:33 +0000 |
commit | 56150382315a6fe8bce85ec3b9b15b0d244089cc (patch) | |
tree | a96a04c433c2d87a3ba395787cad20e2efacf495 /sys/crypto/crypto.c | |
parent | 7119ca6a932578f2807d42b46e7324d6e29b58b1 (diff) |
crypto_done(), all it does for now is invoke the callback.
Diffstat (limited to 'sys/crypto/crypto.c')
-rw-r--r-- | sys/crypto/crypto.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c index a8976d6e82a..d080dbcd9f6 100644 --- a/sys/crypto/crypto.c +++ b/sys/crypto/crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.c,v 1.10 2000/06/18 08:37:10 angelos Exp $ */ +/* $OpenBSD: crypto.c,v 1.11 2000/06/20 05:39:32 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -315,7 +315,7 @@ crypto_invoke(struct cryptop *crp) if ((crp->crp_desc == NULL) || (crypto_drivers == NULL)) { crp->crp_etype = EINVAL; - crp->crp_callback(crp); + crypto_done(crp); return 0; } @@ -331,7 +331,7 @@ crypto_invoke(struct cryptop *crp) crp->crp_sid = nid; crp->crp_etype = EAGAIN; - crp->crp_callback(crp); + crypto_done(crp); return 0; } @@ -348,7 +348,7 @@ crypto_invoke(struct cryptop *crp) crp->crp_sid = nid; crp->crp_etype = EAGAIN; - crp->crp_callback(crp); + crypto_done(crp); return 0; } @@ -488,3 +488,12 @@ crypto_thread(void) s = splhigh(); } } + +/* + * Invoke the callback on behalf of the driver. + */ +void +crypto_done(struct cryptop *crp) +{ + crp->crp_callback(crp); +} |