diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/X509_REQ_new.3 | 82 |
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 | ||
| 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 | ||
