26 #ifndef _HAVE_PCP_MGMT_H
27 #define _HAVE_PCP_MGMT_H
29 #if defined __linux__ || defined __GNU__ || defined __GLIBC__
30 # ifndef _DEFAULT_SOURCE
31 # define _DEFAULT_SOURCE 1
34 # ifndef _XOPEN_SOURCE
35 # define _XOPEN_SOURCE 1
39 # define _GNU_SOURCE 1
42 # define _BSD_SOURCE 1
258 pcp_ks_bundle_t *pcp_import_binpub(
PCPCTX *ptx, byte *raw,
size_t rawsize);
259 pcp_ks_bundle_t *pcp_import_pub(
PCPCTX *ptx, byte *raw,
size_t rawsize);
260 pcp_ks_bundle_t *pcp_import_pub_rfc(
PCPCTX *ptx,
Buffer *blob);
261 pcp_ks_bundle_t *pcp_import_pub_pbp(
PCPCTX *ptx,
Buffer *blob);
264 pcp_key_t *pcp_import_binsecret(
PCPCTX *ptx, byte *raw,
size_t rawsize,
char *passphrase);
265 pcp_key_t *pcp_import_secret(
PCPCTX *ptx, byte *raw,
size_t rawsize,
char *passphrase);
269 int _check_keysig_h(
PCPCTX *ptx,
Buffer *blob, rfc_pub_sig_h *h);
273 #endif // _HAVE_PCP_MGMT_H