Module Name: src
Committed By: pgoyette
Date: Tue Dec 31 01:55:05 UTC 2013
Modified Files:
src/share/man/man9: opencrypto.9
Log Message:
Clear up documentation for crypto_unregister() vs crypto_unregister_all()
since there is no definition of CRYPTO_ALGORITHM_ALL!
XXX The description of the arguments for crypto_register() needs further
updates, too, but that will be left for another day.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/share/man/man9/opencrypto.9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man9/opencrypto.9
diff -u src/share/man/man9/opencrypto.9:1.13 src/share/man/man9/opencrypto.9:1.14
--- src/share/man/man9/opencrypto.9:1.13 Sat Jul 20 21:39:59 2013
+++ src/share/man/man9/opencrypto.9 Tue Dec 31 01:55:05 2013
@@ -1,5 +1,5 @@
.\" $OpenBSD: crypto.9,v 1.25 2003/07/11 13:47:41 jmc Exp $
-.\" $NetBSD: opencrypto.9,v 1.13 2013/07/20 21:39:59 wiz Exp $
+.\" $NetBSD: opencrypto.9,v 1.14 2013/12/31 01:55:05 pgoyette Exp $
.\"
.\" The author of this man page is Angelos D. Keromytis ([email protected])
.\"
@@ -16,7 +16,7 @@
.\" MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
.\" PURPOSE.
.\"
-.Dd September 17, 2011
+.Dd December 30, 2013
.Dt OPENCRYPTO 9
.Os
.Sh NAME
@@ -25,6 +25,7 @@
.Nm crypto_register ,
.Nm crypto_kregister ,
.Nm crypto_unregister ,
+.Nm crypto_unregister_all ,
.Nm crypto_done ,
.Nm crypto_kdone ,
.Nm crypto_newsession ,
@@ -44,6 +45,8 @@
.Fn crypto_kregister "u_int32_t" "int" "u_int32_t" "int (*)(void *, struct cryptkop *, int)" "void *"
.Ft int
.Fn crypto_unregister "u_int32_t" "int"
+.Ft int
+.Fn crypto_unregister_all "u_int32_t"
.Ft void
.Fn crypto_done "struct cryptop *"
.Ft void
@@ -475,6 +478,7 @@ The
.Fn crypto_register ,
.Fn crypto_kregister ,
.Fn crypto_unregister ,
+.Fn crypto_unregister_all ,
and
.Fn crypto_done
routines are used by drivers that provide support for cryptographic
@@ -500,18 +504,13 @@ etc.)
.Fn crypto_unregister
is called by drivers that wish to withdraw support for an algorithm.
The two arguments are the driver and algorithm identifiers, respectively.
-Typically, drivers for
-.Xr pcmcia 4
-crypto cards that are being ejected will invoke this routine for all
algorithms supported by the card.
-If called with
-.Dv CRYPTO_ALGORITHM_ALL ,
-all algorithms registered for a driver will be unregistered in one go
-and the driver will be disabled (no new sessions will be allocated on
-that driver, and any existing sessions will be migrated to other
-drivers).
-The same will be done if all algorithms associated with a driver are
-unregistered one by one.
+If all algorithms associated with a driver are unregistered, the
+driver will be disabled (no new sessions will be allocated on that
+driver, and any existing sessions will be migrated to other drivers).
+.Fn crypto_unregister_all
+will unregister all registered algorithms, disable the driver,
+and migrate existing sessions to other drivers.
.Pp
The calling convention for the three driver-supplied routines is:
.Bd -literal