|
Packit |
549fdc |
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
|
|
Packit |
549fdc |
.TH "gnutls_x509_crt_get_subject_unique_id" 3 "3.6.2" "gnutls" "gnutls"
|
|
Packit |
549fdc |
.SH NAME
|
|
Packit |
549fdc |
gnutls_x509_crt_get_subject_unique_id \- API function
|
|
Packit |
549fdc |
.SH SYNOPSIS
|
|
Packit |
549fdc |
.B #include <gnutls/x509.h>
|
|
Packit |
549fdc |
.sp
|
|
Packit |
549fdc |
.BI "int gnutls_x509_crt_get_subject_unique_id(gnutls_x509_crt_t " crt ", char * " buf ", size_t * " buf_size ");"
|
|
Packit |
549fdc |
.SH ARGUMENTS
|
|
Packit |
549fdc |
.IP "gnutls_x509_crt_t crt" 12
|
|
Packit |
549fdc |
Holds the certificate
|
|
Packit |
549fdc |
.IP "char * buf" 12
|
|
Packit |
549fdc |
user allocated memory buffer, will hold the unique id
|
|
Packit |
549fdc |
.IP "size_t * buf_size" 12
|
|
Packit |
549fdc |
size of user allocated memory buffer (on input), will hold
|
|
Packit |
549fdc |
actual size of the unique ID on return.
|
|
Packit |
549fdc |
.SH "DESCRIPTION"
|
|
Packit |
549fdc |
This function will extract the subjectUniqueID value (if present) for
|
|
Packit |
549fdc |
the given certificate.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
If the user allocated memory buffer is not large enough to hold the
|
|
Packit |
549fdc |
full subjectUniqueID, then a GNUTLS_E_SHORT_MEMORY_BUFFER error will be
|
|
Packit |
549fdc |
returned, and buf_size will be set to the actual length.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
This function had a bug prior to 3.4.8 that prevented the setting
|
|
Packit |
549fdc |
of \fBNULL\fP \fIbuf\fP to discover the \fIbuf_size\fP . To use this function safely
|
|
Packit |
549fdc |
with the older versions the \fIbuf\fP must be a valid buffer that can hold
|
|
Packit |
549fdc |
at least a single byte if \fIbuf_size\fP is zero.
|
|
Packit |
549fdc |
.SH "RETURNS"
|
|
Packit |
549fdc |
\fBGNUTLS_E_SUCCESS\fP on success, otherwise a negative error code.
|
|
Packit |
549fdc |
.SH "REPORTING BUGS"
|
|
Packit |
549fdc |
Report bugs to <bugs@gnutls.org>.
|
|
Packit |
549fdc |
.br
|
|
Packit |
549fdc |
Home page: http://www.gnutls.org
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
.SH COPYRIGHT
|
|
Packit |
549fdc |
Copyright \(co 2001-2018 Free Software Foundation, Inc., and others.
|
|
Packit |
549fdc |
.br
|
|
Packit |
549fdc |
Copying and distribution of this file, with or without modification,
|
|
Packit |
549fdc |
are permitted in any medium without royalty provided the copyright
|
|
Packit |
549fdc |
notice and this notice are preserved.
|
|
Packit |
549fdc |
.SH "SEE ALSO"
|
|
Packit |
549fdc |
The full documentation for
|
|
Packit |
549fdc |
.B gnutls
|
|
Packit |
549fdc |
is maintained as a Texinfo manual.
|
|
Packit |
549fdc |
If the /usr/share/doc/gnutls/
|
|
Packit |
549fdc |
directory does not contain the HTML form visit
|
|
Packit |
549fdc |
.B
|
|
Packit |
549fdc |
.IP http://www.gnutls.org/manual/
|
|
Packit |
549fdc |
.PP
|