]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/TS_VERIFY_CTX_set_certs.pod
Update copyright year
[thirdparty/openssl.git] / doc / man3 / TS_VERIFY_CTX_set_certs.pod
CommitLineData
9372ddf1
PY
1=pod
2
3=head1 NAME
4
5TS_VERIFY_CTX_set_certs, TS_VERIFY_CTS_set_certs
6- set certificates for TS response verification
7
8=head1 SYNOPSIS
9
10 #include <openssl/ts.h>
11
12 STACK_OF(X509) *TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx,
13 STACK_OF(X509) *certs);
14 STACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx,
15 STACK_OF(X509) *certs);
16
17=head1 DESCRIPTION
18
19The Time-Stamp Protocol (TSP) is defined by RFC 3161. TSP is a protocol used to
20provide long term proof of the existence of a certain datum before a particular
21time. TSP defines a Time Stamping Authority (TSA) and an entity who shall make
22requests to the TSA. Usually the TSA is denoted as the server side and the
23requesting entity is denoted as the client.
24
25In TSP, when a server is sending a response to a client, the server normally
26needs to sign the response data - the TimeStampToken (TST) - with its private
27key. Then the client shall verify the received TST by the server's certificate
28chain.
29
30TS_VERIFY_CTX_set_certs() is used to set the server's certificate chain when
31verifying a TST. B<ctx> is the verification context created in advance and
32B<certs> is a stack of B<X509> certificates.
33
34TS_VERIFY_CTS_set_certs() is a misspelled version of TS_VERIFY_CTX_set_certs()
35which takes the same parameters and returns the same result.
36
37=head1 RETURN VALUES
38
39TS_VERIFY_CTX_set_certs() returns the stack of B<X509> certificates the user
40passes in via parameter B<certs>.
41
42=head1 HISTORY
43
44The spelling of TS_VERIFY_CTX_set_certs() was corrected in OpenSSL 3.0.0.
45The misspelled version TS_VERIFY_CTS_set_certs() has been retained for
46compatibility reasons, but it is deprecated in OpenSSL 3.0.0.
47
48=head1 COPYRIGHT
49
33388b44 50Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
9372ddf1
PY
51
52Licensed under the Apache License 2.0 (the "License"). You may not use
53this file except in compliance with the License. You can obtain a copy
54in the file LICENSE in the source distribution or at
55L<https://www.openssl.org/source/license.html>.
56
57=cut