1gnutls_x509_crt_get_subject_unique_idg(n3ug)tnlustls_x509_crt_get_subject_unique_id(3)
2
3
4

NAME

6       gnutls_x509_crt_get_subject_unique_id - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int gnutls_x509_crt_get_subject_unique_id(gnutls_x509_crt_t crt, char *
12       buf, size_t * buf_size);
13

ARGUMENTS

15       gnutls_x509_crt_t crt
16                   Holds the certificate
17
18       char * buf  user allocated memory buffer, will hold the unique id
19
20       size_t * buf_size
21                   size of user allocated memory buffer (on input), will  hold
22                   actual size of the unique ID on return.
23

DESCRIPTION

25       This  function  will extract the subjectUniqueID value (if present) for
26       the given certificate.
27
28       If the user allocated memory buffer is not large  enough  to  hold  the
29       full subjectUniqueID, then a GNUTLS_E_SHORT_MEMORY_BUFFER error will be
30       returned, and buf_size will be set to the actual length.
31
32       This function had a bug prior to 3.4.8 that prevented  the  setting  of
33       NULL   buf to discover the  buf_size . To use this function safely with
34       the older versions the  buf must be a valid buffer  that  can  hold  at
35       least a single byte if  buf_size is zero.
36

RETURNS

38       GNUTLS_E_SUCCESS on success, otherwise a negative error code.
39

REPORTING BUGS

41       Report bugs to <bugs@gnutls.org>.
42       Home page: https://www.gnutls.org
43
44
46       Copyright © 2001- Free Software Foundation, Inc., and others.
47       Copying  and  distribution  of this file, with or without modification,
48       are permitted in any medium without royalty provided the copyright  no‐
49       tice and this notice are preserved.
50

SEE ALSO

52       The  full  documentation  for gnutls is maintained as a Texinfo manual.
53       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
54       visit
55
56       https://www.gnutls.org/manual/
57
58gnutls                               3.g7n.u2tls_x509_crt_get_subject_unique_id(3)
Impressum