summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_pk_get_id
blob: 7bb44b74506d3a0929d6abdd7cd6939888ae2f29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@deftypefun {gnutls_pk_algorithm_t} {gnutls_pk_get_id} (const char * @var{name})
@var{name}: is a string containing a public key algorithm name.

Convert a string to a @code{gnutls_pk_algorithm_t}  value.  The names are
compared in a case insensitive way.  For example,
gnutls_pk_get_id("RSA") will return @code{GNUTLS_PK_RSA} .

@strong{Returns:} a @code{gnutls_pk_algorithm_t}  id of the specified public key
algorithm string, or @code{GNUTLS_PK_UNKNOWN}  on failures.

@strong{Since:} 2.6.0
@end deftypefun