Greenbone Vulnerability Management Libraries: util/gpgmeutils.h Source File

Greenbone Vulnerability Management Libraries 23.1.1

gpgmeutils.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2013-2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
12
13#ifndef _GVM_UTIL_GPGMEUTILS_H
14#define _GVM_UTIL_GPGMEUTILS_H
15
16#include <glib.h> /* for gchar */
17#include <gpgme.h> /* for gpgme_ctx_t */
18
19void
20 log_gpgme (GLogLevelFlags, gpg_error_t, const char *, ...);
21
22gpgme_ctx_t
23 gvm_init_gpgme_ctx_from_dir (const gchar *);
24
25int
26 gvm_gpg_import_many_types_from_string (gpgme_ctx_t, const char *, ssize_t,
27 GArray *);
28
29int
30 gvm_gpg_import_from_string (gpgme_ctx_t, const char *, ssize_t,
31 gpgme_data_type_t);
32
33int
34 gvm_pgp_pubkey_encrypt_stream (FILE *, FILE *, const char *, const char *,
35 ssize_t);
36
37int
38 gvm_smime_encrypt_stream (FILE *, FILE *, const char *, const char *, ssize_t);
39
40#endif /* not _GVM_UTIL_GPGMEUTILS_H */
gvm_gpg_import_many_types_from_string
int gvm_gpg_import_many_types_from_string(gpgme_ctx_t, const char *, ssize_t, GArray *)
Import a key or certificate given by a string.
Definition gpgmeutils.c:166
gvm_smime_encrypt_stream
int gvm_smime_encrypt_stream(FILE *, FILE *, const char *, const char *, ssize_t)
Encrypt a stream for a S/MIME certificate, writing to another stream.
Definition gpgmeutils.c:672
gvm_init_gpgme_ctx_from_dir
gpgme_ctx_t gvm_init_gpgme_ctx_from_dir(const gchar *)
Returns a new gpgme context.
Definition gpgmeutils.c:74
log_gpgme
void log_gpgme(GLogLevelFlags, gpg_error_t, const char *,...)
Log function with extra gpg-error style output.
Definition gpgmeutils.c:43
gvm_pgp_pubkey_encrypt_stream
int gvm_pgp_pubkey_encrypt_stream(FILE *, FILE *, const char *, const char *, ssize_t)
Encrypt a stream for a PGP public key, writing to another stream.
Definition gpgmeutils.c:640
gvm_gpg_import_from_string
int gvm_gpg_import_from_string(gpgme_ctx_t, const char *, ssize_t, gpgme_data_type_t)
Import a key or certificate given by a string.
Definition gpgmeutils.c:264