summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2021-10-27 11:22:57 +0000
committerschwarze <>2021-10-27 11:22:57 +0000
commit5345c8fe55009fbf4db7b769cbe04bf04e5b74db (patch)
treed5978ed88233e317186d500516ead4aa967fcf51 /src/lib
parent8a9538a5a84ba6efd2cdbfd54246c31173484e59 (diff)
downloadopenbsd-5345c8fe55009fbf4db7b769cbe04bf04e5b74db.tar.gz
openbsd-5345c8fe55009fbf4db7b769cbe04bf04e5b74db.tar.bz2
openbsd-5345c8fe55009fbf4db7b769cbe04bf04e5b74db.zip
minor tweaks to wording and punctuation,
and add .Xrs to relevant objects
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/X509_get_extension_flags.329
1 files changed, 19 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/X509_get_extension_flags.3 b/src/lib/libcrypto/man/X509_get_extension_flags.3
index eec4f4ee27..725c01600f 100644
--- a/src/lib/libcrypto/man/X509_get_extension_flags.3
+++ b/src/lib/libcrypto/man/X509_get_extension_flags.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_get_extension_flags.3,v 1.1 2021/10/23 15:41:10 tb Exp $ 1.\" $OpenBSD: X509_get_extension_flags.3,v 1.2 2021/10/27 11:22:57 schwarze Exp $
2.\" full merge up to: OpenSSL 361136f4 Sep 1 18:56:58 2015 +0100 2.\" full merge up to: OpenSSL 361136f4 Sep 1 18:56:58 2015 +0100
3.\" selective merge up to: OpenSSL 2b2e3106f Feb 16 15:04:45 2021 +0000 3.\" selective merge up to: OpenSSL 2b2e3106f Feb 16 15:04:45 2021 +0000
4.\" 4.\"
@@ -49,7 +49,7 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: October 23 2021 $ 52.Dd $Mdocdate: October 27 2021 $
53.Dt X509_GET_EXTENSION_FLAGS 3 53.Dt X509_GET_EXTENSION_FLAGS 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -76,8 +76,8 @@ These functions retrieve information related to commonly used
76certificate extensions. 76certificate extensions.
77.Pp 77.Pp
78.Fn X509_get_extension_flags 78.Fn X509_get_extension_flags
79retrieves general information about a certificate, it will return one or 79retrieves general information about a certificate.
80more of the following flags ored together. 80It returns one or more of the following flags OR'ed together.
81.Bl -tag -width Ds 81.Bl -tag -width Ds
82.It Dv EXFLAG_V1 82.It Dv EXFLAG_V1
83The certificate is an obsolete version 1 certificate. 83The certificate is an obsolete version 1 certificate.
@@ -128,7 +128,7 @@ The value can be retrieved using
128.Pp 128.Pp
129.Fn X509_get_key_usage 129.Fn X509_get_key_usage
130returns the value of the key usage extension. 130returns the value of the key usage extension.
131If key usage is present will return zero or more of the flags: 131If key usage is present, it returns zero or more of these flags:
132.Dv KU_DIGITAL_SIGNATURE , 132.Dv KU_DIGITAL_SIGNATURE ,
133.Dv KU_NON_REPUDIATION , 133.Dv KU_NON_REPUDIATION ,
134.Dv KU_KEY_ENCIPHERMENT , 134.Dv KU_KEY_ENCIPHERMENT ,
@@ -136,17 +136,17 @@ If key usage is present will return zero or more of the flags:
136.Dv KU_KEY_AGREEMENT , 136.Dv KU_KEY_AGREEMENT ,
137.Dv KU_KEY_CERT_SIGN , 137.Dv KU_KEY_CERT_SIGN ,
138.Dv KU_CRL_SIGN , 138.Dv KU_CRL_SIGN ,
139.Dv KU_ENCIPHER_ONLY 139.Dv KU_ENCIPHER_ONLY ,
140or 140or
141.Dv KU_DECIPHER_ONLY 141.Dv KU_DECIPHER_ONLY ,
142corresponding to individual key usage bits. 142corresponding to individual key usage bits.
143If key usage is absent then 143If key usage is absent,
144.Dv UINT32_MAX 144.Dv UINT32_MAX
145is returned. 145is returned.
146.Pp 146.Pp
147.Fn X509_get_extended_key_usage 147.Fn X509_get_extended_key_usage
148returns the value of the extended key usage extension. 148returns the value of the extended key usage extension.
149If extended key usage is present it will return zero or more of the 149If extended key usage is present, it returns zero or more of these
150flags: 150flags:
151.Dv XKU_SSL_SERVER , 151.Dv XKU_SSL_SERVER ,
152.Dv XKU_SSL_CLIENT , 152.Dv XKU_SSL_CLIENT ,
@@ -200,8 +200,17 @@ and
200.Fn X509_get_extended_key_usage 200.Fn X509_get_extended_key_usage
201return sets of flags corresponding to the certificate extension values. 201return sets of flags corresponding to the certificate extension values.
202.Sh SEE ALSO 202.Sh SEE ALSO
203.Xr BASIC_CONSTRAINTS_new 3 ,
204.Xr EXTENDED_KEY_USAGE_new 3 ,
205.Xr POLICYINFO_new 3 ,
206.Xr PROXY_CERT_INFO_EXTENSION_new 3 ,
207.Xr X509_check_ca 3 ,
203.Xr X509_check_purpose 3 , 208.Xr X509_check_purpose 3 ,
204.Xr X509_get_ext_d2i 3 209.Xr X509_EXTENSION_new 3 ,
210.Xr X509_get_ext_d2i 3 ,
211.Xr X509_get_subject_name 3 ,
212.Xr X509_get_version 3 ,
213.Xr X509_new 3
205.Sh HISTORY 214.Sh HISTORY
206.Nm X509_get_extension_flags , 215.Nm X509_get_extension_flags ,
207.Nm X509_get_key_usage , 216.Nm X509_get_key_usage ,