Blame doc/functions/gnutls_x509_crt_set_proxy_dn
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@deftypefun {int} {gnutls_x509_crt_set_proxy_dn} (gnutls_x509_crt_t @var{crt}, gnutls_x509_crt_t @var{eecrt}, unsigned int @var{raw_flag}, const void * @var{name}, unsigned int @var{sizeof_name})
|
|
Packit |
aea12f |
@var{crt}: a gnutls_x509_crt_t type with the new proxy cert
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{eecrt}: the end entity certificate that will be issuing the proxy
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{raw_flag}: must be 0, or 1 if the CN is DER encoded
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{name}: a pointer to the CN name, may be NULL (but MUST then be added later)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{sizeof_name}: holds the size of @code{name}
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
This function will set the subject in @code{crt} to the end entity's
|
|
Packit |
aea12f |
@code{eecrt} subject name, and add a single Common Name component @code{name} of size @code{sizeof_name} . This corresponds to the required proxy
|
|
Packit |
aea12f |
certificate naming style. Note that if @code{name} is @code{NULL} , you MUST
|
|
Packit |
aea12f |
set it later by using @code{gnutls_x509_crt_set_dn_by_oid()} or similar.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
|
|
Packit |
aea12f |
negative error value.
|
|
Packit |
aea12f |
@end deftypefun
|