1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-13 18:33:03 +01:00
gnupg/kbx/keybox-fwddecl.h
Werner Koch da9fb6bd16
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.
2025-02-06 15:46:15 +01:00

31 lines
1.0 KiB
C

/* keybox-fwddecl.h - Keybox specific forward declarations and definitions.
* Copyright (C) 2025 g10 Code GmbH
*
* This file is part of GnuPG.
*
* GnuPG is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* GnuPG is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <https://www.gnu.org/licenses/>.
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef KEYBOX_FWDDECL_H
#define KEYBOX_FWDDECL_H 1
struct keyring_handle;
typedef struct keyring_handle *KEYRING_HANDLE;
struct keybox_handle;
typedef struct keybox_handle *KEYBOX_HANDLE;
#endif /*KEYBOX_FWDDECL_H*/