aboutsummaryrefslogtreecommitdiffstats
path: root/g10/getkey.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-05-24 21:50:33 +0000
committerDavid Shaw <[email protected]>2003-05-24 21:50:33 +0000
commit3a23c4230bc61f905a316c2df9116d871fd9029f (patch)
tree6e913e8b23f538fb0bf19e213568a140f077b54e /g10/getkey.c
parent* bftest.c, crlf.c, mk-tdata.c, mpicalc.c, shmtest.c: Edit all (diff)
downloadgnupg-3a23c4230bc61f905a316c2df9116d871fd9029f.tar.gz
gnupg-3a23c4230bc61f905a316c2df9116d871fd9029f.zip
* armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c, build-packet.c,
getkey.c, keydb.c, openfile.c, plaintext.c, status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h, encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
Diffstat (limited to '')
-rw-r--r--g10/getkey.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index 44e571ce4..789e2982f 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -39,7 +39,7 @@
#define MAX_UID_CACHE_ENTRIES 200
#if MAX_PK_CACHE_ENTRIES < 2
- #error We need the cache for key creation
+#error We need the cache for key creation
#endif
@@ -84,7 +84,7 @@ typedef struct keyid_list {
#endif
#if MAX_UID_CACHE_ENTRIES < 5
- #error we really need the userid cache
+#error we really need the userid cache
#endif
typedef struct user_id_db {
struct user_id_db *next;
@@ -119,7 +119,7 @@ print_stats()
void
cache_public_key( PKT_public_key *pk )
{
- #if MAX_PK_CACHE_ENTRIES
+#if MAX_PK_CACHE_ENTRIES
pk_cache_entry_t ce;
u32 keyid[2];
@@ -158,7 +158,7 @@ cache_public_key( PKT_public_key *pk )
ce->pk = copy_public_key( NULL, pk );
ce->keyid[0] = keyid[0];
ce->keyid[1] = keyid[1];
- #endif
+#endif
}
@@ -266,7 +266,7 @@ cache_user_id( KBNODE keyblock )
void
getkey_disable_caches()
{
- #if MAX_PK_CACHE_ENTRIES
+#if MAX_PK_CACHE_ENTRIES
{
pk_cache_entry_t ce, ce2;
@@ -279,7 +279,7 @@ getkey_disable_caches()
pk_cache_entries = 0;
pk_cache = NULL;
}
- #endif
+#endif
/* fixme: disable user id cache ? */
}
@@ -319,7 +319,7 @@ get_pubkey( PKT_public_key *pk, u32 *keyid )
int internal = 0;
int rc = 0;
- #if MAX_PK_CACHE_ENTRIES
+#if MAX_PK_CACHE_ENTRIES
{ /* Try to get it from the cache */
pk_cache_entry_t ce;
for( ce = pk_cache; ce; ce = ce->next ) {
@@ -330,7 +330,7 @@ get_pubkey( PKT_public_key *pk, u32 *keyid )
}
}
}
- #endif
+#endif
/* more init stuff */
if( !pk ) {
pk = m_alloc_clear( sizeof *pk );
@@ -2133,7 +2133,7 @@ finish_lookup (GETKEY_CTX ctx)
KBNODE k;
KBNODE foundk = NULL;
PKT_user_id *foundu = NULL;
- #define USAGE_MASK (PUBKEY_USAGE_SIG|PUBKEY_USAGE_ENC)
+#define USAGE_MASK (PUBKEY_USAGE_SIG|PUBKEY_USAGE_ENC)
unsigned int req_usage = ( ctx->req_usage & USAGE_MASK );
/* Request the primary if we're certifying another key, and also
if signing data while --pgp6 or --pgp7 is on since pgp 6 and 7