diff options
| author | schwarze <> | 2023-08-12 16:48:23 +0000 |
|---|---|---|
| committer | schwarze <> | 2023-08-12 16:48:23 +0000 |
| commit | ff25cebf99dc89ae5dbe6c9e30440c9a0a156804 (patch) | |
| tree | a62c0355af901a4a8739050059ac961bcb8bf97c /src | |
| parent | 51e7636248c6e4ab9d2b134511dd118c1b37a46c (diff) | |
| download | openbsd-ff25cebf99dc89ae5dbe6c9e30440c9a0a156804.tar.gz openbsd-ff25cebf99dc89ae5dbe6c9e30440c9a0a156804.tar.bz2 openbsd-ff25cebf99dc89ae5dbe6c9e30440c9a0a156804.zip | |
document return values of the control function in EVP_MD_meth_set_ctrl(3)
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/EVP_MD_meth_new.3 | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/EVP_MD_meth_new.3 b/src/lib/libcrypto/man/EVP_MD_meth_new.3 index d6720ef8bc..0876312ac3 100644 --- a/src/lib/libcrypto/man/EVP_MD_meth_new.3 +++ b/src/lib/libcrypto/man/EVP_MD_meth_new.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: EVP_MD_meth_new.3,v 1.2 2023/07/09 06:47:51 tb Exp $ | 1 | .\" $OpenBSD: EVP_MD_meth_new.3,v 1.3 2023/08/12 16:48:23 schwarze Exp $ |
| 2 | .\" selective merge up to: | 2 | .\" selective merge up to: |
| 3 | .\" OpenSSL man3/EVP_MD_meth_new 0388d212 Dec 14 12:47:07 2018 -0800 | 3 | .\" OpenSSL man3/EVP_MD_meth_new 0388d212 Dec 14 12:47:07 2018 -0800 |
| 4 | .\" | 4 | .\" |
| @@ -49,7 +49,7 @@ | |||
| 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 51 | .\" | 51 | .\" |
| 52 | .Dd $Mdocdate: July 9 2023 $ | 52 | .Dd $Mdocdate: August 12 2023 $ |
| 53 | .Dt EVP_MD_METH_NEW 3 | 53 | .Dt EVP_MD_METH_NEW 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -130,7 +130,7 @@ | |||
| 130 | .Ft int | 130 | .Ft int |
| 131 | .Fo EVP_MD_meth_set_ctrl | 131 | .Fo EVP_MD_meth_set_ctrl |
| 132 | .Fa "EVP_MD *md" | 132 | .Fa "EVP_MD *md" |
| 133 | .Fa "int (*ctrl)(EVP_MD_CTX *ctx, int cmd, int p1, void *p2)" | 133 | .Fa "int (*control)(EVP_MD_CTX *ctx, int command, int p1, void *p2)" |
| 134 | .Fc | 134 | .Fc |
| 135 | .Sh DESCRIPTION | 135 | .Sh DESCRIPTION |
| 136 | The | 136 | The |
| @@ -267,11 +267,21 @@ and | |||
| 267 | .Xr EVP_MD_CTX_free 3 . | 267 | .Xr EVP_MD_CTX_free 3 . |
| 268 | .Pp | 268 | .Pp |
| 269 | .Fn EVP_MD_meth_set_ctrl | 269 | .Fn EVP_MD_meth_set_ctrl |
| 270 | sets the control function for | 270 | sets the |
| 271 | .Fa control | ||
| 272 | function for | ||
| 271 | .Fa md . | 273 | .Fa md . |
| 274 | The | ||
| 275 | .Fa control | ||
| 276 | function supplied by the application program has to return 1 to indicate | ||
| 277 | success, 0 to indicate failure, or \-1 if the | ||
| 278 | .Fa command | ||
| 279 | is not supported for this digest method. | ||
| 272 | See | 280 | See |
| 273 | .Xr EVP_MD_CTX_ctrl 3 | 281 | .Xr EVP_MD_CTX_ctrl 3 |
| 274 | for the available controls. | 282 | for the available |
| 283 | .Fa command | ||
| 284 | arguments. | ||
| 275 | .Sh RETURN VALUES | 285 | .Sh RETURN VALUES |
| 276 | .Fn EVP_MD_meth_new | 286 | .Fn EVP_MD_meth_new |
| 277 | and | 287 | and |
