1 .\" $OpenBSD: d2i_X509_REQ.3,v 1.5 2016/12/28 15:18:05 schwarze Exp $
2 .\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400
4 .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
6 .\" Permission to use, copy, modify, and distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 .Dd $Mdocdate: December 28 2016 $
24 .Nm d2i_X509_REQ_bio ,
26 .Nm i2d_X509_REQ_bio ,
28 .Nm d2i_X509_REQ_INFO ,
30 .Nd decode and encode PKCS#10 certification requests
35 .Fa "X509_REQ **val_out"
36 .Fa "const unsigned char **der_in"
41 .Fa "X509_REQ *val_in"
42 .Fa "unsigned char **der_out"
47 .Fa "X509_REQ **val_out"
52 .Fa "X509_REQ **val_out"
57 .Fa "X509_REQ *val_in"
62 .Fa "X509_REQ *val_in"
66 .Fa "X509_REQ_INFO **val_out"
67 .Fa "const unsigned char **der_in"
72 .Fa "X509_REQ_INFO *val_in"
73 .Fa "unsigned char **der_out"
76 These functions decode and encode PKCS#10 certification requests.
77 For details about the semantics, examples, caveats, and bugs, see
83 decode and encode an ASN.1
84 .Vt CertificationRequest
85 structure defined in RFC 2986 section 4.2.
86 .Fn d2i_X509_REQ_bio ,
88 .Fn i2d_X509_REQ_bio ,
91 are similar except that they decode or encode using a
100 decode and encode an ASN.1
101 .Vt CertificationRequestInfo
102 structure defined in RFC 2986 section 4.1.
105 .Fn d2i_X509_REQ_bio ,
114 .Fn d2i_X509_REQ_INFO
123 .Fn i2d_X509_REQ_INFO
124 return the number of bytes successfully encoded or a negative value
130 return 1 for success or 0 if an error occurs.
132 .Xr ASN1_item_d2i 3 ,
133 .Xr PEM_read_X509_REQ 3 ,
136 RFC 2986: PKCS #10: Certification Request Syntax Specification