1gnutls_x509_ct_sct_get_version(3) gnutls gnutls_x509_ct_sct_get_version(3)
2
3
4
6 gnutls_x509_ct_sct_get_version - API function
7
9 #include <gnutls/x509-ext.h>
10
11 int gnutls_x509_ct_sct_get_version(gnutls_x509_ct_scts_t scts, unsigned
12 idx, unsigned int * version_out);
13
15 gnutls_x509_ct_scts_t scts
16 A list of SCTs
17
18 unsigned idx
19 The index of the target SCT in the list
20
21 unsigned int * version_out
22 The version of the target SCT.
23
25 This function obtains the version of the SCT at the given position in
26 the SCT list.
27
28 The version of that SCT will be placed on version_out .
29
30 Return : GNUTLS_E_SUCCESS [22m(0) is returned on success, GNUTLS_E_RE‐
31 QUESTED_DATA_NOT_AVAILABLE if idx exceeds the number of SCTs in the
32 list and GNUTLS_E_INVALID_REQUEST if the SCT's version is different
33 than 1, as that's currently the only defined version.
34
36 Report bugs to <bugs@gnutls.org>.
37 Home page: https://www.gnutls.org
38
39
41 Copyright © 2001-2023 Free Software Foundation, Inc., and others.
42 Copying and distribution of this file, with or without modification,
43 are permitted in any medium without royalty provided the copyright no‐
44 tice and this notice are preserved.
45
47 The full documentation for gnutls is maintained as a Texinfo manual.
48 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
49 visit
50
51 https://www.gnutls.org/manual/
52
53gnutls 3.8.2 gnutls_x509_ct_sct_get_version(3)