1gnutls_pcert_import_rawpk_raw(3)    gnutls    gnutls_pcert_import_rawpk_raw(3)
2
3
4

NAME

6       gnutls_pcert_import_rawpk_raw - API function
7

SYNOPSIS

9       #include <gnutls/abstract.h>
10
11       int    gnutls_pcert_import_rawpk_raw(gnutls_pcert_st*    pcert,   const
12       gnutls_datum_t* rawpubkey, gnutls_x509_crt_fmt_t format,  unsigned  int
13       key_usage, unsigned int flags);
14

ARGUMENTS

16       gnutls_pcert_st* pcert
17                   The pcert structure to import the data into.
18
19       const gnutls_datum_t* rawpubkey
20                   The raw public-key in gnutls_datum_t format to be imported.
21
22       gnutls_x509_crt_fmt_t format
23                   The format of the raw public-key. DER or PEM.
24
25       unsigned int key_usage
26                   An ORed sequence of GNUTLS_KEY_* flags.
27
28       unsigned int flags
29                   zero for now
30

DESCRIPTION

32       This convenience function will import (i.e. convert) the given raw pub‐
33       lic key  rawpubkey into a gnutls_pcert_st structure. The structure must
34       be deinitialized afterwards using gnutls_pcert_deinit().  Note that the
35       caller is responsible for freeing  rawpubkey  .  All  necessary  values
36       will be copied into  pcert .
37
38       Key usage (as defined by X.509 extension (2.5.29.15)) can be explicitly
39       set because there is no certificate structure around the key to  define
40       this value. See for more info gnutls_x509_crt_get_key_usage().
41

RETURNS

43       On  success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
44       ror value.
45

SINCE

47       3.6.6
48

REPORTING BUGS

50       Report bugs to <bugs@gnutls.org>.
51       Home page: https://www.gnutls.org
52
53
55       Copyright © 2001- Free Software Foundation, Inc., and others.
56       Copying and distribution of this file, with  or  without  modification,
57       are  permitted in any medium without royalty provided the copyright no‐
58       tice and this notice are preserved.
59

SEE ALSO

61       The full documentation for gnutls is maintained as  a  Texinfo  manual.
62       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
63       visit
64
65       https://www.gnutls.org/manual/
66
67gnutls                               3.7.6    gnutls_pcert_import_rawpk_raw(3)
Impressum