summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-12-17 01:08:14 +0000
committerschwarze <schwarze@openbsd.org>2016-12-17 01:08:14 +0000
commit6da5355c1de6331b74de68b7ac926c57c79da10e (patch)
treeb6d0143793d7e796cc529d3d735986ddf24be2b4
parentAdd dhcrelay(8) command-line option for replacing Relay Agent Information (diff)
downloadwireguard-openbsd-6da5355c1de6331b74de68b7ac926c57c79da10e.tar.xz
wireguard-openbsd-6da5355c1de6331b74de68b7ac926c57c79da10e.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.
-rw-r--r--lib/libcrypto/man/Makefile3
-rw-r--r--lib/libcrypto/man/X509_REQ_new.382
2 files changed, 84 insertions, 1 deletions
diff --git a/lib/libcrypto/man/Makefile b/lib/libcrypto/man/Makefile
index dccb082a02b..550b84104d6 100644
--- a/lib/libcrypto/man/Makefile
+++ b/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.82 2016/12/16 14:50:58 schwarze Exp $
+# $OpenBSD: Makefile,v 1.83 2016/12/17 01:08:14 schwarze Exp $
.include <bsd.own.mk>
@@ -188,6 +188,7 @@ MAN= \
X509_NAME_new.3 \
X509_NAME_print_ex.3 \
X509_PUBKEY_new.3 \
+ X509_REQ_new.3 \
X509_REVOKED_new.3 \
X509_STORE_CTX_get_error.3 \
X509_STORE_CTX_get_ex_new_index.3 \
diff --git a/lib/libcrypto/man/X509_REQ_new.3 b/lib/libcrypto/man/X509_REQ_new.3
new file mode 100644
index 00000000000..f4089ba2a21
--- /dev/null
+++ b/lib/libcrypto/man/X509_REQ_new.3
@@ -0,0 +1,82 @@
+.\" $OpenBSD: X509_REQ_new.3,v 1.1 2016/12/17 01:08:14 schwarze Exp $
+.\"
+.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.\"
+.Dd $Mdocdate: December 17 2016 $
+.Dt X509_REQ_NEW 3
+.Os
+.Sh NAME
+.Nm X509_REQ_new ,
+.Nm X509_REQ_free ,
+.Nm X509_REQ_INFO_new ,
+.Nm X509_REQ_INFO_free
+.Nd PKCS#10 certification requests
+.Sh SYNOPSIS
+.In openssl/x509.h
+.Ft X509_REQ *
+.Fn X509_REQ_new void
+.Ft void
+.Fn X509_REQ_free "X509_REQ *req"
+.Ft X509_REQ_INFO *
+.Fn X509_REQ_INFO_new void
+.Ft void
+.Fn X509_REQ_INFO_free "X509_REQ_INFO *req_info"
+.Sh DESCRIPTION
+.Fn X509_REQ_new
+allocates and initializes an empty
+.Vt X509_REQ
+object, representing an ASN.1 CertificationRequest structure
+defined in RFC 2986 section 4.2.
+It can hold a pointer to an
+.Vt X509_REQ_INFO
+object discussed below together with a cryptographic signature and
+information about the signature algorithm used.
+.Fn X509_REQ_free
+frees
+.Fa req .
+.Pp
+.Fn X509_REQ_INFO_new
+allocates and initializes an empty
+.Vt X509_REQ_INFO
+object, representing an ASN.1 CertificationRequestInfo structure
+defined in RFC 2986 section 4.1.
+It is used inside the
+.Vt X509_REQ
+object and can hold the subject and the public key of the requested
+certificate and additional attributes.
+.Fn X509_REQ_INFO_free
+frees
+.Fa req_info .
+.Sh RETURN VALUES
+.Fn X509_REQ_new
+and
+.Fn X509_REQ_INFO_new
+return the new
+.Vt X509_REQ
+or
+.Vt X509_REQ_INFO
+object, respectively, or
+.Dv NULL
+if an error occurs.
+.Sh SEE ALSO
+.Xr d2i_X509_REQ 3 ,
+.Xr PEM_read_X509_REQ 3 ,
+.Xr X509_new 3 ,
+.Xr X509_REQ_get_pubkey 3 ,
+.Xr X509_REQ_get_subject_name 3 ,
+.Xr X509_REQ_get_version 3 ,
+.Xr X509_REQ_sign 3
+.Sh STANDARDS
+RFC 2986: PKCS #10: Certification Request Syntax Specification