sync with OpenBSD -current

This commit is contained in:
purplerain 2024-08-30 18:07:36 +00:00
parent c0feaae94d
commit 7aba15d530
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
44 changed files with 470 additions and 445 deletions

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: ERR_asprintf_error_data.3,v 1.2 2017/02/21 07:15:21 jmc Exp $
.\" $OpenBSD: ERR_asprintf_error_data.3,v 1.3 2024/08/29 20:23:21 tb Exp $
.\"
.\" Copyright (c) 2017 Bob Beck <beck@openbsd.org>
.\"
@ -13,7 +13,7 @@
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.Dd $Mdocdate: February 21 2017 $
.Dd $Mdocdate: August 29 2024 $
.Dt ERR_ASPRINTF_ERROR_DATA 3
.Os
.Sh NAME
@ -41,9 +41,9 @@ fails, the string "malloc failed" is associated instead.
.Pp
.Nm
is intended to be used instead of the OpenSSL functions
.Xr ERR_add_error_data 3
.Fn ERR_add_error_data
and
.Xr ERR_add_error_vdata 3 .
.Fn ERR_add_error_vdata .
.Sh SEE ALSO
.Xr ERR 3 ,
.Xr ERR_put_error 3 ,

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: ERR_put_error.3,v 1.10 2022/03/31 17:27:16 naddy Exp $
.\" $OpenBSD: ERR_put_error.3,v 1.11 2024/08/29 20:23:21 tb Exp $
.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>.
@ -48,13 +48,11 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: March 31 2022 $
.Dd $Mdocdate: August 29 2024 $
.Dt ERR_PUT_ERROR 3
.Os
.Sh NAME
.Nm ERR_put_error ,
.Nm ERR_add_error_data ,
.Nm ERR_add_error_vdata
.Nm ERR_put_error
.Nd record an OpenSSL error
.Sh SYNOPSIS
.In openssl/err.h
@ -66,16 +64,6 @@
.Fa "const char *file"
.Fa "int line"
.Fc
.Ft void
.Fo ERR_add_error_data
.Fa "int num"
.Fa ...
.Fc
.Ft void
.Fo ERR_add_error_vdata
.Fa "int num"
.Fa "va_list arg"
.Fc
.Sh DESCRIPTION
.Fn ERR_put_error
adds an error code to the thread's error queue.
@ -91,20 +79,6 @@ of
.Fa file .
This function is usually called by a macro.
.Pp
.Fn ERR_add_error_data
associates the concatenation of its
.Fa num
string arguments with the error code added last.
.Fn ERR_add_error_vdata
is similar except the argument is a
.Vt va_list .
Use of
.Fn ERR_add_error_data
and
.Fn ERR_add_error_vdata
is deprecated inside of LibreSSL in favour of
.Xr ERR_asprintf_error_data 3 .
.Pp
.Xr ERR_load_strings 3
can be used to register error strings so that the application can
generate human-readable error messages for the error code.
@ -147,12 +121,5 @@ macro.
.Xr ERR_load_strings 3
.Sh HISTORY
.Fn ERR_put_error
first appeared in SSLeay 0.4.4.
.Fn ERR_add_error_data
first appeared in SSLeay 0.9.0.
Both functions have been available since
first appeared in SSLeay 0.4.4 and has been available since
.Ox 2.4 .
.Pp
.Fn ERR_add_error_vdata
first appeared in OpenSSL 1.0.1 and has been available since
.Ox 5.3 .

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: EVP_DigestInit.3,v 1.34 2024/07/21 08:36:43 tb Exp $
.\" $OpenBSD: EVP_DigestInit.3,v 1.35 2024/08/30 07:03:19 tb Exp $
.\" full merge up to: OpenSSL 7f572e95 Dec 2 13:57:04 2015 +0000
.\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100
.\"
@ -70,7 +70,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: July 21 2024 $
.Dd $Mdocdate: August 30 2024 $
.Dt EVP_DIGESTINIT 3
.Os
.Sh NAME
@ -536,7 +536,6 @@ main(int argc, char *argv[])
.Xr EVP_SignInit 3 ,
.Xr EVP_sm3 3 ,
.Xr EVP_VerifyInit 3 ,
.Xr EVP_whirlpool 3 ,
.Xr HMAC 3 ,
.Xr OCSP_basic_sign 3 ,
.Xr OCSP_request_sign 3 ,

View file

@ -1,83 +0,0 @@
.\" $OpenBSD: EVP_whirlpool.3,v 1.1 2019/08/25 17:08:20 schwarze Exp $
.\" full merge up to: OpenSSL bbda8ce9 Oct 31 15:43:01 2017 +0800
.\"
.\" This file was written by Ronald Tse <ronald.tse@ribose.com>.
.\" Copyright (c) 2017 The OpenSSL Project. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\"
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\"
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in
.\" the documentation and/or other materials provided with the
.\" distribution.
.\"
.\" 3. All advertising materials mentioning features or use of this
.\" software must display the following acknowledgment:
.\" "This product includes software developed by the OpenSSL Project
.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
.\"
.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
.\" endorse or promote products derived from this software without
.\" prior written permission. For written permission, please contact
.\" openssl-core@openssl.org.
.\"
.\" 5. Products derived from this software may not be called "OpenSSL"
.\" nor may "OpenSSL" appear in their names without prior written
.\" permission of the OpenSSL Project.
.\"
.\" 6. Redistributions of any form whatsoever must retain the following
.\" acknowledgment:
.\" "This product includes software developed by the OpenSSL Project
.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: August 25 2019 $
.Dt EVP_WHIRLPOOL 3
.Os
.Sh NAME
.Nm EVP_whirlpool
.Nd WHIRLPOOL hash function for EVP
.Sh SYNOPSIS
.In openssl/evp.h
.Ft const EVP_MD *
.Fn EVP_whirlpool void
.Sh DESCRIPTION
WHIRLPOOL is a cryptographic hash function
producing a message digest of 512 bits.
.Sh RETURN VALUES
.Fn EVP_whirlpool
returns a pointer to a static
.Vt EVP_MD
object implementing the WHIRLPOOL hash function.
.Sh SEE ALSO
.Xr evp 3 ,
.Xr EVP_DigestInit 3
.Sh STANDARDS
ISO/IEC 10118-3:2004
.Sh HISTORY
.Fn EVP_whirlpool
first appeared in OpenSSL 1.0.0 and has been available since
.Ox 4.9 .
.Sh AUTHORS
.An -nosplit
The WHIRLPOOL algorithm was designed by
.An Vincent Rijmen
and
.An Paulo S. L. M. Barreto .

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: HMAC.3,v 1.22 2024/07/21 08:36:43 tb Exp $
.\" $OpenBSD: HMAC.3,v 1.23 2024/08/29 20:21:53 tb Exp $
.\" full merge up to: OpenSSL crypto/hmac a528d4f0 Oct 27 13:40:11 2015 -0400
.\" selective merge up to: OpenSSL man3/HMAC b3696a55 Sep 2 09:35:50 2017 -0400
.\"
@ -52,7 +52,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: July 21 2024 $
.Dd $Mdocdate: August 29 2024 $
.Dt HMAC 3
.Os
.Sh NAME
@ -61,7 +61,6 @@
.Nm HMAC_CTX_reset ,
.Nm HMAC_CTX_free ,
.Nm HMAC_Init_ex ,
.Nm HMAC_Init ,
.Nm HMAC_Update ,
.Nm HMAC_Final ,
.Nm HMAC_CTX_copy ,
@ -100,13 +99,6 @@
.Fa "ENGINE *engine"
.Fc
.Ft int
.Fo HMAC_Init
.Fa "HMAC_CTX *ctx"
.Fa "const void *key"
.Fa "int key_len"
.Fa "const EVP_MD *md"
.Fc
.Ft int
.Fo HMAC_Update
.Fa "HMAC_CTX *ctx"
.Fa "const unsigned char *data"
@ -229,12 +221,6 @@ argument is always ignored and passing
.Dv NULL
is recommended.
.Pp
.Fn HMAC_Init
is a deprecated wrapper around
.Fn HMAC_Init_ex
which performs no longer useful extra initialization in
some circumstances.
.Pp
.Fn HMAC_Update
can be called repeatedly with chunks of the message to be authenticated
.Pq Fa len No bytes at Fa data .
@ -302,7 +288,6 @@ or 0 on error.
RFC 2104
.Sh HISTORY
.Fn HMAC ,
.Fn HMAC_Init ,
.Fn HMAC_Update ,
.Fn HMAC_Final ,
and

View file

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.291 2024/08/24 09:15:36 tb Exp $
# $OpenBSD: Makefile,v 1.292 2024/08/29 20:25:13 tb Exp $
.include <bsd.own.mk>
@ -207,7 +207,6 @@ MAN= \
EVP_sha3_224.3 \
EVP_sm3.3 \
EVP_sm4_cbc.3 \
EVP_whirlpool.3 \
EXTENDED_KEY_USAGE_new.3 \
GENERAL_NAME_new.3 \
HMAC.3 \

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: X509_STORE_CTX_set_flags.3,v 1.7 2024/01/12 19:28:02 tb Exp $
.\" $OpenBSD: X509_STORE_CTX_set_flags.3,v 1.8 2024/08/29 20:21:10 tb Exp $
.\" full merge up to: OpenSSL aae41f8c Jun 25 09:47:15 2015 +0100
.\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100
.\"
@ -67,7 +67,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: January 12 2024 $
.Dd $Mdocdate: August 29 2024 $
.Dt X509_STORE_CTX_SET_FLAGS 3
.Os
.Sh NAME
@ -324,13 +324,3 @@ It is therefore recommended to use
and
.Xr X509_VERIFY_PARAM_set_purpose 3
instead.
.Pp
The confusingly named
.Dv X509_TRUST_DEFAULT
is less than
.Dv X509_TRUST_MIN
and different implementations treat it as valid or invalid
when used as an associated trust or as a
.Fa trust
argument for
.Fn X509_STORE_CTX_set_trust .

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: evp.3,v 1.31 2024/08/24 09:15:36 tb Exp $
.\" $OpenBSD: evp.3,v 1.32 2024/08/30 07:03:19 tb Exp $
.\" full merge up to: OpenSSL man7/evp 24a535ea Sep 22 13:14:20 2020 +0100
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>,
@ -51,7 +51,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: August 24 2024 $
.Dd $Mdocdate: August 30 2024 $
.Dt EVP 3
.Os
.Sh NAME
@ -219,7 +219,6 @@ family of functions provides base64 encoding and decoding.
.Xr EVP_sm3 3 ,
.Xr EVP_sm4_cbc 3 ,
.Xr EVP_VerifyInit 3 ,
.Xr EVP_whirlpool 3 ,
.Xr HMAC 3 ,
.Xr OCSP_basic_sign 3 ,
.Xr OCSP_request_sign 3 ,