aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/keybox.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-02-06 14:46:15 +0000
committerWerner Koch <[email protected]>2025-02-06 14:46:15 +0000
commitda9fb6bd163d3fe75e0f6761539f27c28cfd0e04 (patch)
treec8a2b39cc0ad4fcb5f4b91a3c841bf058d52c4e5 /kbx/keybox.h
parentgpgscm: Fix possible segv in the process functions. (diff)
downloadgnupg-da9fb6bd163d3fe75e0f6761539f27c28cfd0e04.tar.gz
gnupg-da9fb6bd163d3fe75e0f6761539f27c28cfd0e04.zip
kbx: Fix for building without keyboxd.
* kbx/keybox-fwddecl.h: New. * kbx/keybox.h: Replace typedef for KEYBOX_HANDLE by including the new file. * g10/keydb-private.h: Ditto. -- The duplicated typedef was a bit ugly and will fail, depending on compiler, iof for example building without keyboxd. Fix only tested in the standard case but the fix is obvious.
Diffstat (limited to 'kbx/keybox.h')
-rw-r--r--kbx/keybox.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/kbx/keybox.h b/kbx/keybox.h
index 1146eca31..5aa0de57d 100644
--- a/kbx/keybox.h
+++ b/kbx/keybox.h
@@ -28,13 +28,12 @@ extern "C" {
#include "../common/iobuf.h"
#include "keybox-search-desc.h"
+#include "keybox-fwddecl.h"
#ifdef KEYBOX_WITH_X509
# include <ksba.h>
#endif
-typedef struct keybox_handle *KEYBOX_HANDLE;
-
typedef enum
{