summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2021-07-08 13:07:00 +0000
committerschwarze <>2021-07-08 13:07:00 +0000
commit3aee4c9a971412056e2cb9b110f72945b105b483 (patch)
tree4567c82fef1efa6ab141316b6e788cf1d953b8e9
parent92ac5edde916fb03f49c27b01108f6c56a86c0bd (diff)
downloadopenbsd-3aee4c9a971412056e2cb9b110f72945b105b483.tar.gz
openbsd-3aee4c9a971412056e2cb9b110f72945b105b483.tar.bz2
openbsd-3aee4c9a971412056e2cb9b110f72945b105b483.zip
document X509_add1_reject_object(3) and X509_reject_clear(3)
-rw-r--r--src/lib/libcrypto/man/X509_add1_trust_object.331
1 files changed, 24 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/X509_add1_trust_object.3 b/src/lib/libcrypto/man/X509_add1_trust_object.3
index ed21a6da37..3c1ae52e69 100644
--- a/src/lib/libcrypto/man/X509_add1_trust_object.3
+++ b/src/lib/libcrypto/man/X509_add1_trust_object.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_add1_trust_object.3,v 1.1 2021/07/08 12:30:27 schwarze Exp $ 1.\" $OpenBSD: X509_add1_trust_object.3,v 1.2 2021/07/08 13:07:00 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -19,7 +19,9 @@
19.Os 19.Os
20.Sh NAME 20.Sh NAME
21.Nm X509_add1_trust_object , 21.Nm X509_add1_trust_object ,
22.Nm X509_trust_clear 22.Nm X509_trust_clear ,
23.Nm X509_add1_reject_object ,
24.Nm X509_reject_clear
23.Nd mark an X.509 certificate as intended for a specific purpose 25.Nd mark an X.509 certificate as intended for a specific purpose
24.Sh SYNOPSIS 26.Sh SYNOPSIS
25.In openssl/x509.h 27.In openssl/x509.h
@@ -32,6 +34,15 @@
32.Fo X509_trust_clear 34.Fo X509_trust_clear
33.Fa "X509 *x" 35.Fa "X509 *x"
34.Fc 36.Fc
37.Ft int
38.Fo X509_add1_reject_object
39.Fa "X509 *x"
40.Fa "const ASN1_OBJECT *purpose"
41.Fc
42.Ft void
43.Fo X509_reject_clear
44.Fa "X509 *x"
45.Fc
35.Sh DESCRIPTION 46.Sh DESCRIPTION
36.Fn X509_add1_trust_object 47.Fn X509_add1_trust_object
37appends a deep copy of the 48appends a deep copy of the
@@ -51,10 +62,15 @@ constants listed in that manual page are not intended for use with
51.Fn X509_add1_trust_object . 62.Fn X509_add1_trust_object .
52.Pp 63.Pp
53.Fn X509_trust_clear 64.Fn X509_trust_clear
54frees and removes all purpose objects 65frees and removes all purpose objects from the set of intended
55contained in the non-standard auxiliary data of 66purposes in the non-standard auxiliary data of
56.Fa x . 67.Fa x .
57.Pp 68.Pp
69.Fn X509_add1_reject_object
70and
71.Fn X509_reject_clear
72are similar except that they operate on a set of unintended purposes.
73.Pp
58As an alternative to using the functions documented in the present 74As an alternative to using the functions documented in the present
59manual page, X.509 certificate extensions can be used. 75manual page, X.509 certificate extensions can be used.
60At the price of higher complexity, those allow storing the purpose 76At the price of higher complexity, those allow storing the purpose
@@ -65,9 +81,10 @@ See
65for details. 81for details.
66.Sh RETURN VALUES 82.Sh RETURN VALUES
67.Fn X509_add1_trust_object 83.Fn X509_add1_trust_object
68returns the new number of purposes that 84and
69.Fa x 85.Fn X509_add1_reject_object
70is intended for, or 0 if an error occurs, in particular if memory 86return the new number of purposes in the respective set
87or 0 if an error occurs, in particular if memory
71allocation fails or if 88allocation fails or if
72.Fa x 89.Fa x
73does not contain a sub-object that can hold non-standard auxiliary data. 90does not contain a sub-object that can hold non-standard auxiliary data.