gnutls_x509_crt_set_key_usage3
Api function
Usage
#include <gnutls/x509.h>
int gnutls_x509_crt_set_key_usage(gnutls_x509_crt_t crt, unsigned int usage);
Arguments
gnutls_x509_crt_t crt
|
a certificate of type |
|---|---|
unsigned int usage
|
an ORed sequence of the GNUTLS_KEY_* elements. |
Overview
This function will set the keyUsage certificate extension.
Returns
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.
Releases
10 releases since Debian 4.0 (Etch); the text changed 9 times.