summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2016-12-17 01:08:14 +0000
committerschwarze <>2016-12-17 01:08:14 +0000
commitb941a634e73204105b5df9d896333979d3c4a73f (patch)
treec83190b7a742a9ca207c14d89239641a653b1b74 /src/lib
parent7667c6c5f5e54e62cc0c8cd011377bfc28fc3721 (diff)
downloadopenbsd-b941a634e73204105b5df9d896333979d3c4a73f.tar.gz
openbsd-b941a634e73204105b5df9d896333979d3c4a73f.tar.bz2
openbsd-b941a634e73204105b5df9d896333979d3c4a73f.zip
Write a new manual page X509_REQ_new(3) from scratch.
These four functions are listed in <openssl/x509.h> and in OpenSSL doc/man3/X509_dup.pod. OpenSSL documentation specifies the wrong header file.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/Makefile3
-rw-r--r--src/lib/libcrypto/man/X509_REQ_new.382
2 files changed, 84 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index dccb082a02..550b84104d 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.82 2016/12/16 14:50:58 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.83 2016/12/17 01:08:14 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -188,6 +188,7 @@ MAN= \
188 X509_NAME_new.3 \ 188 X509_NAME_new.3 \
189 X509_NAME_print_ex.3 \ 189 X509_NAME_print_ex.3 \
190 X509_PUBKEY_new.3 \ 190 X509_PUBKEY_new.3 \
191 X509_REQ_new.3 \
191 X509_REVOKED_new.3 \ 192 X509_REVOKED_new.3 \
192 X509_STORE_CTX_get_error.3 \ 193 X509_STORE_CTX_get_error.3 \
193 X509_STORE_CTX_get_ex_new_index.3 \ 194 X509_STORE_CTX_get_ex_new_index.3 \
diff --git a/src/lib/libcrypto/man/X509_REQ_new.3 b/src/lib/libcrypto/man/X509_REQ_new.3
new file mode 100644
index 0000000000..f4089ba2a2
--- /dev/null
+++ b/src/lib/libcrypto/man/X509_REQ_new.3
@@ -0,0 +1,82 @@
1.\" $OpenBSD: X509_REQ_new.3,v 1.1 2016/12/17 01:08:14 schwarze Exp $
2.\"
3.\" Copyright (c) 2016 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: December 17 2016 $
18.Dt X509_REQ_NEW 3
19.Os
20.Sh NAME
21.Nm X509_REQ_new ,
22.Nm X509_REQ_free ,
23.Nm X509_REQ_INFO_new ,
24.Nm X509_REQ_INFO_free
25.Nd PKCS#10 certification requests
26.Sh SYNOPSIS
27.In openssl/x509.h
28.Ft X509_REQ *
29.Fn X509_REQ_new void
30.Ft void
31.Fn X509_REQ_free "X509_REQ *req"
32.Ft X509_REQ_INFO *
33.Fn X509_REQ_INFO_new void
34.Ft void
35.Fn X509_REQ_INFO_free "X509_REQ_INFO *req_info"
36.Sh DESCRIPTION
37.Fn X509_REQ_new
38allocates and initializes an empty
39.Vt X509_REQ
40object, representing an ASN.1 CertificationRequest structure
41defined in RFC 2986 section 4.2.
42It can hold a pointer to an
43.Vt X509_REQ_INFO
44object discussed below together with a cryptographic signature and
45information about the signature algorithm used.
46.Fn X509_REQ_free
47frees
48.Fa req .
49.Pp
50.Fn X509_REQ_INFO_new
51allocates and initializes an empty
52.Vt X509_REQ_INFO
53object, representing an ASN.1 CertificationRequestInfo structure
54defined in RFC 2986 section 4.1.
55It is used inside the
56.Vt X509_REQ
57object and can hold the subject and the public key of the requested
58certificate and additional attributes.
59.Fn X509_REQ_INFO_free
60frees
61.Fa req_info .
62.Sh RETURN VALUES
63.Fn X509_REQ_new
64and
65.Fn X509_REQ_INFO_new
66return the new
67.Vt X509_REQ
68or
69.Vt X509_REQ_INFO
70object, respectively, or
71.Dv NULL
72if an error occurs.
73.Sh SEE ALSO
74.Xr d2i_X509_REQ 3 ,
75.Xr PEM_read_X509_REQ 3 ,
76.Xr X509_new 3 ,
77.Xr X509_REQ_get_pubkey 3 ,
78.Xr X509_REQ_get_subject_name 3 ,
79.Xr X509_REQ_get_version 3 ,
80.Xr X509_REQ_sign 3
81.Sh STANDARDS
82RFC 2986: PKCS #10: Certification Request Syntax Specification