diff options
Diffstat (limited to 'src/lib/libcrypto/man/SXNET_new.3')
-rw-r--r-- | src/lib/libcrypto/man/SXNET_new.3 | 58 |
1 files changed, 51 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/SXNET_new.3 b/src/lib/libcrypto/man/SXNET_new.3 index 1484970113..cf6f692748 100644 --- a/src/lib/libcrypto/man/SXNET_new.3 +++ b/src/lib/libcrypto/man/SXNET_new.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: SXNET_new.3,v 1.1 2016/12/24 01:00:48 schwarze Exp $ | 1 | .\" $OpenBSD: SXNET_new.3,v 1.2 2016/12/28 20:36:33 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -14,14 +14,18 @@ | |||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | .\" | 16 | .\" |
17 | .Dd $Mdocdate: December 24 2016 $ | 17 | .Dd $Mdocdate: December 28 2016 $ |
18 | .Dt SXNET_NEW 3 | 18 | .Dt SXNET_NEW 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
21 | .Nm SXNET_new , | 21 | .Nm SXNET_new , |
22 | .Nm SXNET_free , | 22 | .Nm SXNET_free , |
23 | .Nm SXNETID_new , | 23 | .Nm SXNETID_new , |
24 | .Nm SXNETID_free | 24 | .Nm SXNETID_free , |
25 | .Nm d2i_SXNET , | ||
26 | .Nm i2d_SXNET , | ||
27 | .Nm d2i_SXNETID , | ||
28 | .Nm i2d_SXNETID | ||
25 | .Nd Thawte strong extranet X.509 extension | 29 | .Nd Thawte strong extranet X.509 extension |
26 | .Sh SYNOPSIS | 30 | .Sh SYNOPSIS |
27 | .In openssl/x509v3.h | 31 | .In openssl/x509v3.h |
@@ -33,6 +37,28 @@ | |||
33 | .Fn SXNETID_new void | 37 | .Fn SXNETID_new void |
34 | .Ft void | 38 | .Ft void |
35 | .Fn SXNETID_free "SXNETID *sxnetid" | 39 | .Fn SXNETID_free "SXNETID *sxnetid" |
40 | .Ft SXNET * | ||
41 | .Fo d2i_SXNET | ||
42 | .Fa "SXNET **val_out" | ||
43 | .Fa "const unsigned char **der_in" | ||
44 | .Fa "long length" | ||
45 | .Fc | ||
46 | .Ft int | ||
47 | .Fo i2d_SXNET | ||
48 | .Fa "SXNET *val_in" | ||
49 | .Fa "unsigned char **der_out" | ||
50 | .Fc | ||
51 | .Ft SXNETID * | ||
52 | .Fo d2i_SXNETID | ||
53 | .Fa "SXNETID **val_out" | ||
54 | .Fa "const unsigned char **der_in" | ||
55 | .Fa "long length" | ||
56 | .Fc | ||
57 | .Ft int | ||
58 | .Fo i2d_SXNETID | ||
59 | .Fa "SXNETID *val_in" | ||
60 | .Fa "unsigned char **der_out" | ||
61 | .Fc | ||
36 | .Sh DESCRIPTION | 62 | .Sh DESCRIPTION |
37 | .Fn SXNET_new | 63 | .Fn SXNET_new |
38 | allocates and initializes an empty | 64 | allocates and initializes an empty |
@@ -52,17 +78,35 @@ It is used inside | |||
52 | .Fn SXNETID_free | 78 | .Fn SXNETID_free |
53 | frees | 79 | frees |
54 | .Fa sxnetid . | 80 | .Fa sxnetid . |
81 | .Pp | ||
82 | The remaining functions decode and encode these objects | ||
83 | using DER format. | ||
84 | For details about the semantics, examples, caveats, and bugs, see | ||
85 | .Xr ASN1_item_d2i 3 . | ||
55 | .Sh RETURN VALUES | 86 | .Sh RETURN VALUES |
56 | .Fn SXNET_new | 87 | .Fn SXNET_new |
57 | and | 88 | and |
58 | .Fn SXNETID_new | 89 | .Fn d2i_SXNET |
59 | return the new | 90 | return an |
60 | .Vt SXNET | 91 | .Vt SXNET |
61 | or | 92 | object or |
93 | .Dv NULL | ||
94 | if an error occurs. | ||
95 | .Pp | ||
96 | .Fn SXNETID_new | ||
97 | and | ||
98 | .Fn d2i_SXNETID | ||
99 | return an | ||
62 | .Vt SXNETID | 100 | .Vt SXNETID |
63 | object, respectively, or | 101 | object or |
64 | .Dv NULL | 102 | .Dv NULL |
65 | if an error occurs. | 103 | if an error occurs. |
104 | .Pp | ||
105 | .Fn i2d_SXNET | ||
106 | and | ||
107 | .Fn i2d_SXNETID | ||
108 | return the number of bytes successfully encoded or a negative value | ||
109 | if an error occurs. | ||
66 | .Sh SEE ALSO | 110 | .Sh SEE ALSO |
67 | .Xr X509_EXTENSION_new 3 , | 111 | .Xr X509_EXTENSION_new 3 , |
68 | .Xr X509_new 3 | 112 | .Xr X509_new 3 |