diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-06-20 05:48:42 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-06-20 05:48:42 +0000 |
commit | 7e0adca8fe4f21e5f1fbdbbf3f09e099b90e7b52 (patch) | |
tree | e6e4b06f773455f5d52e012d44a3ca2ca197a5eb /share | |
parent | 91db176fd04d1c2a26bf9e649606686426d50027 (diff) |
Add text about crypto_done()
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/crypto.9 | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/share/man/man9/crypto.9 b/share/man/man9/crypto.9 index 4c7f0490546..940893896b7 100644 --- a/share/man/man9/crypto.9 +++ b/share/man/man9/crypto.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: crypto.9,v 1.5 2000/06/18 03:10:50 angelos Exp $ +.\" $OpenBSD: crypto.9,v 1.6 2000/06/20 05:48:41 angelos Exp $ .\" .\" The author of this man page is Angelos D. Keromytis (angelos@cis.upenn.edu) .\" @@ -29,6 +29,8 @@ .Fn crypto_register "u_int32_t" "int" "int (*)(u_int32_t *, struct cryptoini *)" "int (*)(u_int64_t)" "int (*)(struct cryptop *)" .Ft int .Fn crypto_unregister "u_int32_t" "int" +.Ft void +.Fn crypto_done "struct cryptop *" .Ft int .Fn crypto_newsession "u_int64_t *" "struct cryptoini *" .Ft int @@ -200,6 +202,9 @@ buffer for the result (or for re-formatting the input). .It Fa crp_callback This routine is invoked upon completion of the request, whether successful or not. +It is invoked through the +.Fn crypto_done +routine. If the request was not successful, an error code is set in the .Fa crp_etype field. @@ -357,8 +362,9 @@ structure. The .Fn crypto_get_driverid , .Fn crypto_register , +.Fn crypto_unregister , and -.Fn crypto_unregister +.Fn crypto_done routines are used by drivers that provide support for cryptographic primitives to register and unregister with the kernel crypto services framework. @@ -417,8 +423,11 @@ In case of error, the error indication must be placed in the .Fa crp_etype field of the .Fa cryptop -structure, and the callback routine invoked as well, to perform the -necessary cleanup or to re-issue the request. +structure. +When the request is completed, or an error is detected, the +.Fn process +routine should invoked +.Fn crypto_done . Session migration may be performed, as mentioned previously. .Pp .Sh RETURN VALUES |