1gnutls_x509_ct_sct_get(3) gnutls gnutls_x509_ct_sct_get(3)
2
3
4
6 gnutls_x509_ct_sct_get - API function
7
9 #include <gnutls/x509-ext.h>
10
11 int gnutls_x509_ct_sct_get(const gnutls_x509_ct_scts_t scts, unsigned
12 idx, time_t * timestamp, gnutls_datum_t * logid, gnutls_sign_algo‐
13 rithm_t * sigalg, gnutls_datum_t * signature);
14
16 const gnutls_x509_ct_scts_t scts
17 A list of SCTs
18
19 unsigned idx
20 The index of the target SCT in the list
21
22 time_t * timestamp
23 The timestamp of the SCT
24
25 gnutls_datum_t * logid
26 The LogID field of the SCT; must be freed with
27 gnutls_free()
28
29 gnutls_sign_algorithm_t * sigalg
30 The signature algorithm
31
32 gnutls_datum_t * signature
33 The signature of the SCT; must be freed with gnutls_free()
34
36 This function will return a specific SCT (Signed Certificate Timestamp)
37 stored in the SCT list scts .
38
39 The datums holding the SCT's LogId and signature will be allocated us‐
40 ing gnutls_malloc().
41
43 GNUTLS_E_SUCCESS [22m(0) will be returned on success, GNUTLS_E_RE‐
44 QUESTED_DATA_NOT_AVAILABLE if idx exceeds the number of SCTs in the
45 list or a negative error value.
46
48 Report bugs to <bugs@gnutls.org>.
49 Home page: https://www.gnutls.org
50
51
53 Copyright © 2001- Free Software Foundation, Inc., and others.
54 Copying and distribution of this file, with or without modification,
55 are permitted in any medium without royalty provided the copyright no‐
56 tice and this notice are preserved.
57
59 The full documentation for gnutls is maintained as a Texinfo manual.
60 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
61 visit
62
63 https://www.gnutls.org/manual/
64
65gnutls 3.7.6 gnutls_x509_ct_sct_get(3)