aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'scd/app-common.h')
-rw-r--r--scd/app-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index e4b9d2f6c..33f23127b 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -70,6 +70,10 @@ struct app_ctx_s {
};
+#if GNUPG_MAJOR_VERSION == 1
+int app_select_openpgp (APP app, unsigned char **sn, size_t *snlen);
+int app_get_serial_and_stamp (APP app, char **serial, time_t *stamp);
+#else
/*-- app.c --*/
void app_set_default_reader_port (const char *portstr);
APP select_application (void);
@@ -124,6 +128,8 @@ int app_openpgp_storekey (APP app, int keyno,
int app_openpgp_readkey (APP app, int keyno,
unsigned char **m, size_t *mlen,
unsigned char **e, size_t *elen);
+#endif
+
#endif /*GNUPG_SCD_APP_COMMON_H*/