1gnutls_x509_crt_get_serial(3) gnutls gnutls_x509_crt_get_serial(3)
2
3
4
6 gnutls_x509_crt_get_serial - This function returns the certificate's
7 serial number
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_crt_get_serial(gnutls_x509_crt_t cert, void * result,
13 size_t * result_size);
14
16 gnutls_x509_crt_t cert
17 should contain a gnutls_x509_crt_t structure
18
19 void * result
20 The place where the serial number will be copied
21
22 size_t * result_size
23 Holds the size of the result field.
24
26 This function will return the X.509 certificate's serial number. This
27 is obtained by the X509 Certificate serialNumber field. Serial is not
28 always a 32 or 64bit number. Some CAs use large serial numbers, thus it
29 may be wise to handle it as something opaque.
30
32 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
33 value.and a negative value in case of an error.
34
36 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
37 http://www.gnu.org/software/gnutls/ General help using GNU software:
38 http://www.gnu.org/gethelp/
39
41 Copyright © 2008 Free Software Foundation.
42 Copying and distribution of this file, with or without modification,
43 are permitted in any medium without royalty provided the copyright
44 notice and this notice are preserved.
45
47 The full documentation for gnutls is maintained as a Texinfo manual.
48 If the info and gnutls programs are properly installed at your site,
49 the command
50
51 info gnutls
52
53 should give you access to the complete manual.
54
55
56
57gnutls 2.8.6 gnutls_x509_crt_get_serial(3)