1 .\" $OpenBSD: TS_REQ_new.3,v 1.4 2016/12/25 22:15:10 schwarze Exp $
3 .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
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.
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.
17 .Dd $Mdocdate: December 25 2016 $
25 .Nm TS_STATUS_INFO_new ,
26 .Nm TS_STATUS_INFO_free ,
28 .Nm TS_TST_INFO_free ,
30 .Nm TS_ACCURACY_free ,
31 .Nm TS_MSG_IMPRINT_new ,
32 .Nm TS_MSG_IMPRINT_free
33 .Nd X.509 time-stamp protocol
39 .Fn TS_REQ_free "TS_REQ *req"
43 .Fn TS_RESP_free "TS_RESP *resp"
45 .Fn TS_STATUS_INFO_new void
47 .Fn TS_STATUS_INFO_free "TS_STATUS_INFO *status"
49 .Fn TS_TST_INFO_new void
51 .Fn TS_TST_INFO_free "TS_TST_INFO *token"
53 .Fn TS_ACCURACY_new void
55 .Fn TS_ACCURACY_free "TS_ACCURACY *accuracy"
57 .Fn TS_MSG_IMPRINT_new void
59 .Fn TS_MSG_IMPRINT_free "TS_MSG_IMPRINT *imprint"
61 A time-stamping authority is a trusted third party which allows its
62 clients to prove that specific data existed at a particular point
64 Clients send time-stamping requests to the time-stamping server,
65 which returns time-stamp tokens to the clients.
68 allocates and initializes an empty
70 object, representing an ASN.1
72 structure defined in RFC 3161 section 2.4.1.
73 It can hold a hash of the datum to be time-stamped and some
74 auxiliary, optional information.
80 allocates and initializes an empty
82 object, representing an ASN.1
84 structure defined in RFC 3161 section 2.4.2.
85 It can hold status information and a time-stamp token.
90 .Fn TS_STATUS_INFO_new
91 allocates and initializes an empty
93 object, representing an ASN.1
95 structure defined in RFC 3161 section 2.4.2.
98 and describes the outcome of one time-stamp request.
99 .Fn TS_STATUS_INFO_free
104 allocates and initializes an empty
106 object, representing an ASN.1
108 structure defined in RFC 3161 section 2.4.2.
109 It is the time-stamp token included in a
111 object in case of success, and it can hold the hash of the datum
112 copied from a request, the time of generation, and some auxiliary
119 allocates and initializes an empty
121 object, representing an ASN.1
123 structure defined in RFC 3161 section 2.4.2.
124 It can be used inside a
126 object and indicates the maximum error of the time stated in the token.
131 .Fn TS_MSG_IMPRINT_new
132 allocates and initializes an empty
134 object, representing an ASN.1
136 structure defined in RFC 3161 section 2.4.1.
142 It specifies a hash algorithm and stores the hash value of the datum.
143 .Fn TS_MSG_IMPRINT_free
149 .Fn TS_STATUS_INFO_new ,
150 .Fn TS_TST_INFO_new ,
151 .Fn TS_ACCURACY_new ,
153 .Fn TS_MSG_IMPRINT_new
162 object, respectively, or
164 if an error occurred.
166 .Xr ACCESS_DESCRIPTION_new 3 ,
167 .Xr ESS_SIGNING_CERT_new 3
169 RFC 3161: Internet X.509 Public Key Infrastructure Time-Stamp Protocol
171 Note that RFC 3161 has been updated
172 by RFC 5816: ESSCertIDv2 Update for RFC 3161.
173 That update allows using the Signing Certificate Attribute Definition
174 Version 2 according to RFC 5035, but the current implementation
175 only supports the Signing Certificate Attribute Definition Version
176 1 according to RFC 2634, and hence only supports RFC 3161, but not
177 RFC 5816 functionality.