1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

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.
This commit is contained in:
Werner Koch 2025-02-06 15:46:15 +01:00
parent 3a523b43d4
commit da9fb6bd16
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
4 changed files with 33 additions and 10 deletions

View file

@ -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
{