summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-07-22 06:34:59 +0000
committertb <>2023-07-22 06:34:59 +0000
commitc1def3c9d87b4dd704919e256473850ecb6d0729 (patch)
treedac06c5dbac17279d466c3484070ba1ea1e62806
parent078e9563f35e0312fd210f7dbb062cc6db880cf9 (diff)
downloadopenbsd-c1def3c9d87b4dd704919e256473850ecb6d0729.tar.gz
openbsd-c1def3c9d87b4dd704919e256473850ecb6d0729.tar.bz2
openbsd-c1def3c9d87b4dd704919e256473850ecb6d0729.zip
Rename OBJ_add_sigid.3 to OBJ_find_sigid_algs.3
-rw-r--r--src/lib/libcrypto/man/Makefile4
-rw-r--r--src/lib/libcrypto/man/OBJ_add_sigid.390
2 files changed, 2 insertions, 92 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 1039aa0bf0..99e1af1698 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.255 2023/07/21 04:50:47 tb Exp $ 1# $OpenBSD: Makefile,v 1.256 2023/07/22 06:34:59 tb Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -214,8 +214,8 @@ MAN= \
214 MD5.3 \ 214 MD5.3 \
215 NAME_CONSTRAINTS_new.3 \ 215 NAME_CONSTRAINTS_new.3 \
216 OBJ_NAME_add.3 \ 216 OBJ_NAME_add.3 \
217 OBJ_add_sigid.3 \
218 OBJ_create.3 \ 217 OBJ_create.3 \
218 OBJ_find_sigid_algs.3 \
219 OBJ_nid2obj.3 \ 219 OBJ_nid2obj.3 \
220 OCSP_CRLID_new.3 \ 220 OCSP_CRLID_new.3 \
221 OCSP_REQUEST_new.3 \ 221 OCSP_REQUEST_new.3 \
diff --git a/src/lib/libcrypto/man/OBJ_add_sigid.3 b/src/lib/libcrypto/man/OBJ_add_sigid.3
deleted file mode 100644
index 685fbfa07f..0000000000
--- a/src/lib/libcrypto/man/OBJ_add_sigid.3
+++ /dev/null
@@ -1,90 +0,0 @@
1.\" $OpenBSD: OBJ_add_sigid.3,v 1.2 2023/07/21 05:02:53 tb Exp $
2.\"
3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: July 21 2023 $
18.Dt OBJ_ADD_SIGID 3
19.Os
20.Sh NAME
21.Nm OBJ_find_sigid_algs ,
22.Nm OBJ_find_sigid_by_algs
23.Nd signature algorithm mappings
24.Sh SYNOPSIS
25.In openssl/objects.h
26.Ft int
27.Fo OBJ_find_sigid_algs
28.Fa "int signature"
29.Fa "int *pdigest"
30.Fa "int *pencryption"
31.Fc
32.Ft int
33.Fo OBJ_find_sigid_by_algs
34.Fa "int *psignature"
35.Fa "int digest"
36.Fa "int encryption"
37.Fc
38.Sh DESCRIPTION
39.Fn OBJ_find_sigid_algs
40looks up the
41.Fa signature
42algorithm.
43If it is found, the associated digest algorithm is stored in
44.Pf * Fa pdigest
45unless
46.Fa pdigest
47is a
48.Dv NULL
49pointer, and the associated encryption algorithm is stored in
50.Pf * Fa pencryption
51unless
52.Fa pencryption
53is a
54.Dv NULL
55pointer.
56.Pp
57.Fn OBJ_find_sigid_by_algs
58looks up the pair
59.Pq Fa digest , encryption .
60If it is found, the associated signature algorithm is stored in
61.Pf * Fa psignature
62unless
63.Fa psignature
64is a
65.Dv NULL
66pointer.
67.Sh RETURN VALUES
68.Fn OBJ_find_sigid_algs
69returns 1 if a definition of the
70.Fa signature
71algorithm is found or 0 if a definition of the
72.Fa signature
73algorithm is not built into the library.
74.Pp
75.Fn OBJ_find_sigid_by_algs
76returns 1 if a signature algorithm using the specified
77.Fa digest
78and
79.Fa encryption
80algorithms is defined or 0 if the definition of such an algorithm
81is not built into the library.
82.Sh SEE ALSO
83.Xr EVP_cleanup 3 ,
84.Xr OBJ_create 3 ,
85.Xr OBJ_NAME_add 3 ,
86.Xr OBJ_nid2obj 3
87.Sh HISTORY
88These functions first appeared in OpenSSL 1.0.0
89and have been available since
90.Ox 4.9 .