From c3436bc20fb7070d8357adffb06381f11d7bdd09 Mon Sep 17 00:00:00 2001 From: jmc <> Date: Tue, 22 Nov 2016 07:06:03 +0000 Subject: rename _default_digest.3 to _default_digest_nid.3, since this page describes only one function, _default_digest_nid(); ok schwarze, who informs me openssl already came to this conclusion in june of this year; --- .../libcrypto/man/EVP_PKEY_get_default_digest.3 | 42 ---------------------- .../man/EVP_PKEY_get_default_digest_nid.3 | 42 ++++++++++++++++++++++ src/lib/libcrypto/man/Makefile | 4 +-- 3 files changed, 44 insertions(+), 44 deletions(-) delete mode 100644 src/lib/libcrypto/man/EVP_PKEY_get_default_digest.3 create mode 100644 src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 diff --git a/src/lib/libcrypto/man/EVP_PKEY_get_default_digest.3 b/src/lib/libcrypto/man/EVP_PKEY_get_default_digest.3 deleted file mode 100644 index 13b03f3851..0000000000 --- a/src/lib/libcrypto/man/EVP_PKEY_get_default_digest.3 +++ /dev/null @@ -1,42 +0,0 @@ -.\" $OpenBSD: EVP_PKEY_get_default_digest.3,v 1.3 2016/11/06 16:58:08 schwarze Exp $ -.\" -.Dd $Mdocdate: November 6 2016 $ -.Dt EVP_PKEY_GET_DEFAULT_DIGEST 3 -.Os -.Sh NAME -.Nm EVP_PKEY_get_default_digest_nid -.Nd get default signature digest -.Sh SYNOPSIS -.In openssl/evp.h -.Ft int -.Fo EVP_PKEY_get_default_digest_nid -.Fa "EVP_PKEY *pkey" -.Fa "int *pnid" -.Fc -.Sh DESCRIPTION -The -.Fn EVP_PKEY_get_default_digest_nid -function sets -.Fa pnid -to the default message digest NID for the public key signature -operations associated with key -.Fa pkey . -.Pp -For all current standard OpenSSL public key algorithms, SHA1 is returned. -.Sh RETURN VALUES -The -.Fn EVP_PKEY_get_default_digest_nid -function returns 1 if the message digest is advisory (that is other -digests can be used) and 2 if it is mandatory (other digests cannot be -used). -It returns 0 or a negative value for failure. -In particular, a return value of -2 indicates the operation is not -supported by the public key algorithm. -.Sh SEE ALSO -.Xr EVP_PKEY_CTX_ctrl 3 , -.Xr EVP_PKEY_CTX_new 3 , -.Xr EVP_PKEY_sign 3 , -.Xr EVP_PKEY_verify 3 , -.Xr EVP_PKEY_verify_recover 3 -.Sh HISTORY -This function was first added to OpenSSL 1.0.0. diff --git a/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 b/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 new file mode 100644 index 0000000000..b7dc2a5194 --- /dev/null +++ b/src/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3 @@ -0,0 +1,42 @@ +.\" $OpenBSD: EVP_PKEY_get_default_digest_nid.3,v 1.1 2016/11/22 07:06:03 jmc Exp $ +.\" +.Dd $Mdocdate: November 22 2016 $ +.Dt EVP_PKEY_GET_DEFAULT_DIGEST_NID 3 +.Os +.Sh NAME +.Nm EVP_PKEY_get_default_digest_nid +.Nd get default signature digest +.Sh SYNOPSIS +.In openssl/evp.h +.Ft int +.Fo EVP_PKEY_get_default_digest_nid +.Fa "EVP_PKEY *pkey" +.Fa "int *pnid" +.Fc +.Sh DESCRIPTION +The +.Fn EVP_PKEY_get_default_digest_nid +function sets +.Fa pnid +to the default message digest NID for the public key signature +operations associated with key +.Fa pkey . +.Pp +For all current standard OpenSSL public key algorithms, SHA1 is returned. +.Sh RETURN VALUES +The +.Fn EVP_PKEY_get_default_digest_nid +function returns 1 if the message digest is advisory (that is other +digests can be used) and 2 if it is mandatory (other digests cannot be +used). +It returns 0 or a negative value for failure. +In particular, a return value of -2 indicates the operation is not +supported by the public key algorithm. +.Sh SEE ALSO +.Xr EVP_PKEY_CTX_ctrl 3 , +.Xr EVP_PKEY_CTX_new 3 , +.Xr EVP_PKEY_sign 3 , +.Xr EVP_PKEY_verify 3 , +.Xr EVP_PKEY_verify_recover 3 +.Sh HISTORY +This function was first added to OpenSSL 1.0.0. diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 27d2ced5f7..9fde9427fa 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.53 2016/11/21 11:38:54 schwarze Exp $ +# $OpenBSD: Makefile,v 1.54 2016/11/22 07:06:03 jmc Exp $ .include @@ -107,7 +107,7 @@ MAN= \ EVP_PKEY_decrypt.3 \ EVP_PKEY_derive.3 \ EVP_PKEY_encrypt.3 \ - EVP_PKEY_get_default_digest.3 \ + EVP_PKEY_get_default_digest_nid.3 \ EVP_PKEY_keygen.3 \ EVP_PKEY_new.3 \ EVP_PKEY_print_private.3 \ -- cgit v1.2.3-55-g6feb