mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
common: Rename private-keys.c to name-value.c
* common/private-keys.c: Rename to name-value.c. * common/private-keys.h: Rename to name-value.h. Chage all users. * common/t-private-keys.c: Rename to t-name-value.c. * common/Makefile.am: Adjust accordingly. -- The module is cool enough to be used for other purposes as well. Thus we better change the name. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
e430ff6ad0
commit
b841a883a2
@ -35,7 +35,7 @@
|
|||||||
#include "agent.h"
|
#include "agent.h"
|
||||||
#include "i18n.h"
|
#include "i18n.h"
|
||||||
#include "../common/ssh-utils.h"
|
#include "../common/ssh-utils.h"
|
||||||
#include "../common/private-keys.h"
|
#include "../common/name-value.h"
|
||||||
|
|
||||||
#ifndef O_BINARY
|
#ifndef O_BINARY
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
|
@ -91,7 +91,7 @@ common_sources = \
|
|||||||
call-gpg.c call-gpg.h \
|
call-gpg.c call-gpg.h \
|
||||||
exectool.c exectool.h \
|
exectool.c exectool.h \
|
||||||
server-help.c server-help.h \
|
server-help.c server-help.h \
|
||||||
private-keys.c private-keys.h
|
name-value.c name-value.h
|
||||||
|
|
||||||
if HAVE_W32_SYSTEM
|
if HAVE_W32_SYSTEM
|
||||||
common_sources += w32-reg.c w32-afunix.c w32-afunix.h
|
common_sources += w32-reg.c w32-afunix.c w32-afunix.h
|
||||||
@ -157,7 +157,7 @@ module_tests = t-stringhelp t-timestuff \
|
|||||||
t-convert t-percent t-gettime t-sysutils t-sexputil \
|
t-convert t-percent t-gettime t-sysutils t-sexputil \
|
||||||
t-session-env t-openpgp-oid t-ssh-utils \
|
t-session-env t-openpgp-oid t-ssh-utils \
|
||||||
t-mapstrings t-zb32 t-mbox-util t-iobuf t-strlist \
|
t-mapstrings t-zb32 t-mbox-util t-iobuf t-strlist \
|
||||||
t-private-keys t-ccparray
|
t-name-value t-ccparray
|
||||||
if !HAVE_W32CE_SYSTEM
|
if !HAVE_W32CE_SYSTEM
|
||||||
module_tests += t-exechelp
|
module_tests += t-exechelp
|
||||||
endif
|
endif
|
||||||
@ -206,7 +206,7 @@ t_zb32_LDADD = $(t_common_ldadd)
|
|||||||
t_mbox_util_LDADD = $(t_common_ldadd)
|
t_mbox_util_LDADD = $(t_common_ldadd)
|
||||||
t_iobuf_LDADD = $(t_common_ldadd)
|
t_iobuf_LDADD = $(t_common_ldadd)
|
||||||
t_strlist_LDADD = $(t_common_ldadd)
|
t_strlist_LDADD = $(t_common_ldadd)
|
||||||
t_private_keys_LDADD = $(t_common_ldadd)
|
t_name_value_LDADD = $(t_common_ldadd)
|
||||||
t_ccparray_LDADD = $(t_common_ldadd)
|
t_ccparray_LDADD = $(t_common_ldadd)
|
||||||
|
|
||||||
# System specific test
|
# System specific test
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* private-keys.c - Parser and writer for the extended private key format.
|
/* name-value.c - Parser and writer for a name-value format.
|
||||||
* Copyright (C) 2016 g10 Code GmbH
|
* Copyright (C) 2016 g10 Code GmbH
|
||||||
*
|
*
|
||||||
* This file is part of GnuPG.
|
* This file is part of GnuPG.
|
||||||
@ -27,16 +27,21 @@
|
|||||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This module aso provides features for the extended private key
|
||||||
|
* format of gpg-agent.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <gcrypt.h>
|
#include <gcrypt.h>
|
||||||
#include <gpg-error.h>
|
#include <gpg-error.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "private-keys.h"
|
|
||||||
#include "mischelp.h"
|
#include "mischelp.h"
|
||||||
#include "strlist.h"
|
#include "strlist.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
#include "name-value.h"
|
||||||
|
|
||||||
struct private_key_container
|
struct private_key_container
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
/* private-keys.h - Parser and writer for the extended private key format.
|
/* name-value.h - Parser and writer for a name-value format.
|
||||||
* Copyright (C) 2016 g10 Code GmbH
|
* Copyright (C) 2016 g10 Code GmbH
|
||||||
*
|
*
|
||||||
* This file is part of GnuPG.
|
* This file is part of GnuPG.
|
||||||
@ -27,8 +27,8 @@
|
|||||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GNUPG_COMMON_PRIVATE_KEYS_H
|
#ifndef GNUPG_COMMON_NAME_VALUE_H
|
||||||
#define GNUPG_COMMON_PRIVATE_KEYS_H
|
#define GNUPG_COMMON_NAME_VALUE_H
|
||||||
|
|
||||||
struct private_key_container;
|
struct private_key_container;
|
||||||
typedef struct private_key_container *pkc_t;
|
typedef struct private_key_container *pkc_t;
|
||||||
@ -106,4 +106,4 @@ gpg_error_t pkc_parse (pkc_t *result, int *errlinep, estream_t stream);
|
|||||||
/* Write a representation of PK to STREAM. */
|
/* Write a representation of PK to STREAM. */
|
||||||
gpg_error_t pkc_write (pkc_t pk, estream_t stream);
|
gpg_error_t pkc_write (pkc_t pk, estream_t stream);
|
||||||
|
|
||||||
#endif /* GNUPG_COMMON_PRIVATE_KEYS_H */
|
#endif /* GNUPG_COMMON_NAME_VALUE_H */
|
@ -1,4 +1,4 @@
|
|||||||
/* t-private-keys.c - Module test for private-keys.c
|
/* t-name-value.c - Module test for name-value.c
|
||||||
* Copyright (C) 2016 g10 Code GmbH
|
* Copyright (C) 2016 g10 Code GmbH
|
||||||
*
|
*
|
||||||
* This file is part of GnuPG.
|
* This file is part of GnuPG.
|
||||||
@ -26,7 +26,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "private-keys.h"
|
#include "name-value.h"
|
||||||
|
|
||||||
static int verbose;
|
static int verbose;
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user