summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_x509_key_purpose_set
blob: 346c60dca6eede67a863b41bb9f83a4068a7e4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@deftypefun {int} {gnutls_x509_key_purpose_set} (gnutls_x509_key_purposes_t @var{p}, const char * @var{oid})
@var{p}: The key purposes

@var{oid}: The object identifier of the key purpose

This function will store the specified key purpose in the
purposes.

@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0), otherwise a negative error value.

@strong{Since:} 3.3.0
@end deftypefun