1gnutls_x509_crt_set_serial(3)       gnutls       gnutls_x509_crt_set_serial(3)
2
3
4

NAME

6       gnutls_x509_crt_set_serial - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int  gnutls_x509_crt_set_serial(gnutls_x509_crt_t  cert,  const  void *
12       serial, size_t serial_size);
13

ARGUMENTS

15       gnutls_x509_crt_t cert
16                   a certificate of type gnutls_x509_crt_t
17
18       const void * serial
19                   The serial number
20
21       size_t serial_size
22                   Holds the size of the serial field.
23

DESCRIPTION

25       This function will set the X.509 certificate's  serial  number.   While
26       the serial number is an integer, it is often handled as an opaque field
27       by several CAs. For this reason this function accepts any kind of  data
28       as a serial number. To be consistent with the X.509/PKIX specifications
29       the provided  serial should be a big-endian positive number (i.e.  it's
30       leftmost bit should be zero).
31

RETURNS

33       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
34       error value.
35

REPORTING BUGS

37       Report bugs to <bugs@gnutls.org>.
38       Home page: http://www.gnutls.org
39
40
42       Copyright © 2001-2014 Free Software Foundation, Inc..
43       Copying and distribution of this file, with  or  without  modification,
44       are  permitted  in  any  medium  without royalty provided the copyright
45       notice and this notice are preserved.
46

SEE ALSO

48       The full documentation for gnutls is maintained as  a  Texinfo  manual.
49       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
50       visit
51
52       http://www.gnutls.org/manual/
53
54gnutls                              3.3.29       gnutls_x509_crt_set_serial(3)
Impressum