aboutsummaryrefslogtreecommitdiffstats
path: root/g10/app-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'g10/app-common.h')
-rw-r--r--g10/app-common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/app-common.h b/g10/app-common.h
index c61bcca60..8392b485d 100644
--- a/g10/app-common.h
+++ b/g10/app-common.h
@@ -143,6 +143,7 @@ int app_openpgp_cardinfo (app_t app,
unsigned char **fpr1,
unsigned char **fpr2,
unsigned char **fpr3);
+#endif /* GNUPG_MAJOR_VERSION != 1 */
int app_openpgp_storekey (app_t app, int keyno,
unsigned char *template, size_t template_len,
time_t created_at,
@@ -153,6 +154,8 @@ int app_openpgp_storekey (app_t app, int keyno,
int app_openpgp_readkey (app_t app, int keyno,
unsigned char **m, size_t *mlen,
unsigned char **e, size_t *elen);
+#if GNUPG_MAJOR_VERSION == 1
+#else
/*-- app-nks.c --*/
int app_select_nks (app_t app);
@@ -160,8 +163,7 @@ int app_select_nks (app_t app);
int app_select_dinsig (app_t app);
-#endif
-
+#endif /* GNUPG_MAJOR_VERSION != 1 */
#endif /*GNUPG_SCD_APP_COMMON_H*/