diff --git a/src/openpgp/cmd_version.c b/src/openpgp/cmd_version.c index 858914b..2d66ffe 100644 --- a/src/openpgp/cmd_version.c +++ b/src/openpgp/cmd_version.c @@ -18,7 +18,7 @@ #include "openpgp.h" #include "version.h" -int cmd_version() { +int cmd_version_openpgp() { res_APDU[res_APDU_size++] = PIPGP_VERSION_MAJOR; res_APDU[res_APDU_size++] = PIPGP_VERSION_MINOR; res_APDU[res_APDU_size++] = 0x0; diff --git a/src/openpgp/openpgp.c b/src/openpgp/openpgp.c index efbfdab..adfc157 100644 --- a/src/openpgp/openpgp.c +++ b/src/openpgp/openpgp.c @@ -778,7 +778,7 @@ extern int cmd_get_next_data(); extern int cmd_put_data(); extern int cmd_verify(); extern int cmd_select_data(); -extern int cmd_version(); +extern int cmd_version_openpgp(); extern int cmd_import_data(); extern int cmd_change_pin(); extern int cmd_mse(); @@ -823,7 +823,7 @@ static const cmd_t cmds[] = { { INS_INTERNAL_AUT, cmd_internal_aut }, { INS_MSE, cmd_mse }, { INS_IMPORT_DATA, cmd_import_data }, - { INS_VERSION, cmd_version }, + { INS_VERSION, cmd_version_openpgp }, { INS_SELECT_DATA, cmd_select_data }, { INS_GET_NEXT_DATA, cmd_get_next_data }, { 0x00, 0x0 }