diff options
author | schwarze <> | 2016-12-17 01:08:14 +0000 |
---|---|---|
committer | schwarze <> | 2016-12-17 01:08:14 +0000 |
commit | b941a634e73204105b5df9d896333979d3c4a73f (patch) | |
tree | c83190b7a742a9ca207c14d89239641a653b1b74 /src/lib/libcrypto/man/X509_REQ_new.3 | |
parent | 7667c6c5f5e54e62cc0c8cd011377bfc28fc3721 (diff) | |
download | openbsd-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/libcrypto/man/X509_REQ_new.3')
-rw-r--r-- | src/lib/libcrypto/man/X509_REQ_new.3 | 82 |
1 files changed, 82 insertions, 0 deletions
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 | ||
38 | allocates and initializes an empty | ||
39 | .Vt X509_REQ | ||
40 | object, representing an ASN.1 CertificationRequest structure | ||
41 | defined in RFC 2986 section 4.2. | ||
42 | It can hold a pointer to an | ||
43 | .Vt X509_REQ_INFO | ||
44 | object discussed below together with a cryptographic signature and | ||
45 | information about the signature algorithm used. | ||
46 | .Fn X509_REQ_free | ||
47 | frees | ||
48 | .Fa req . | ||
49 | .Pp | ||
50 | .Fn X509_REQ_INFO_new | ||
51 | allocates and initializes an empty | ||
52 | .Vt X509_REQ_INFO | ||
53 | object, representing an ASN.1 CertificationRequestInfo structure | ||
54 | defined in RFC 2986 section 4.1. | ||
55 | It is used inside the | ||
56 | .Vt X509_REQ | ||
57 | object and can hold the subject and the public key of the requested | ||
58 | certificate and additional attributes. | ||
59 | .Fn X509_REQ_INFO_free | ||
60 | frees | ||
61 | .Fa req_info . | ||
62 | .Sh RETURN VALUES | ||
63 | .Fn X509_REQ_new | ||
64 | and | ||
65 | .Fn X509_REQ_INFO_new | ||
66 | return the new | ||
67 | .Vt X509_REQ | ||
68 | or | ||
69 | .Vt X509_REQ_INFO | ||
70 | object, respectively, or | ||
71 | .Dv NULL | ||
72 | if 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 | ||
82 | RFC 2986: PKCS #10: Certification Request Syntax Specification | ||