sync with OpenBSD -current

This commit is contained in:
purplerain 2024-03-16 22:25:57 +00:00
parent 8e82432ef8
commit 9adc065819
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
23 changed files with 345 additions and 193 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: bn_rand.c,v 1.29 2023/08/03 18:53:55 tb Exp $ */
/* $OpenBSD: bn_rand.c,v 1.30 2024/03/16 20:42:33 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@ -109,6 +109,7 @@
*
*/
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -133,6 +134,10 @@ bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
BNerror(BN_R_BITS_TOO_SMALL);
return (0);
}
if (bits > INT_MAX - 7) {
BNerror(BN_R_BIGNUM_TOO_LONG);
return (0);
}
if (bits == 0) {
BN_zero(rnd);

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: CRYPTO_lock.3,v 1.2 2024/03/04 09:30:43 tb Exp $
.\" $OpenBSD: CRYPTO_lock.3,v 1.3 2024/03/14 22:09:40 tb Exp $
.\" OpenSSL doc/crypto/threads.pod fb552ac6 Sep 30 23:43:01 2009 +0000
.\"
.\" Copyright (c) 2019 Ingo Schwarze <schwarze@openbsd.org>
@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: March 4 2024 $
.Dd $Mdocdate: March 14 2024 $
.Dt CRYPTO_LOCK 3
.Os
.Sh NAME
@ -53,6 +53,7 @@
.Ed
.Sh DESCRIPTION
These functions are obsolete.
.Pp
.Fn CRYPTO_lock
locks or unlocks a mutex lock.
.Pp

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: EVP_CIPHER_do_all.3,v 1.2 2024/01/31 08:02:53 tb Exp $
.\" $OpenBSD: EVP_CIPHER_do_all.3,v 1.3 2024/03/14 23:54:55 tb Exp $
.\"
.\" Copyright (c) 2023,2024 Theo Buehler <tb@openbsd.org>
.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
@ -15,14 +15,16 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: January 31 2024 $
.Dd $Mdocdate: March 14 2024 $
.Dt EVP_CIPHER_DO_ALL 3
.Os
.Sh NAME
.Nm EVP_CIPHER_do_all ,
.Nm EVP_CIPHER_do_all_sorted ,
.Nm EVP_MD_do_all ,
.Nm EVP_MD_do_all_sorted
.Nm EVP_MD_do_all_sorted ,
.Nm OBJ_NAME_do_all ,
.Nm OBJ_NAME_do_all_sorted
.Nd iterate over lookup tables for ciphers and digests
.Sh SYNOPSIS
.In openssl/evp.h

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: X509_STORE_set1_param.3,v 1.21 2024/03/04 09:24:07 tb Exp $
.\" $OpenBSD: X509_STORE_set1_param.3,v 1.22 2024/03/14 22:19:12 tb Exp $
.\" content checked up to:
.\" OpenSSL man3/X509_STORE_add_cert b0edda11 Mar 20 13:00:17 2018 +0000
.\" OpenSSL man3/X509_STORE_get0_param e90fc053 Jul 15 09:39:45 2017 -0400
@ -17,7 +17,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: March 4 2024 $
.Dd $Mdocdate: March 14 2024 $
.Dt X509_STORE_SET1_PARAM 3
.Os
.Sh NAME
@ -263,6 +263,6 @@ and
first appeared in OpenSSL 1.1.0 and have been available since
.Ox 6.3 .
.Pp
X509_STORE_get1_objects
.Fn X509_STORE_get1_objects
first appeared in BoringSSL and has been available since
.Ox 7.5 .