Blame doc/functions/gnutls_x509_crt_set_extension_by_oid
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_x509_crt_set_extension_by_oid} (gnutls_x509_crt_t @var{crt}, const char * @var{oid}, const void * @var{buf}, size_t @var{sizeof_buf}, unsigned int @var{critical})
|
|
Packit Service |
4684c1 |
@var{crt}: a certificate of type @code{gnutls_x509_crt_t}
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{oid}: holds an Object Identifier in null terminated string
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{buf}: a pointer to a DER encoded data
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{sizeof_buf}: holds the size of @code{buf}
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{critical}: should be non-zero if the extension is to be marked as critical
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will set an the extension, by the specified OID, in
|
|
Packit Service |
4684c1 |
the certificate. The extension data should be binary data DER
|
|
Packit Service |
4684c1 |
encoded.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
|
|
Packit Service |
4684c1 |
negative error value.
|
|
Packit Service |
4684c1 |
@end deftypefun
|