diff options
author | Jack Magne <jmagne@dhcp-32-224.sjc.redhat.com> | 2012-08-30 17:23:11 -0700 |
---|---|---|
committer | Jack Magne <jmagne@dhcp-32-224.sjc.redhat.com> | 2012-08-30 17:25:40 -0700 |
commit | e9ab0ec12bc7e22857850a6a183df825154971d4 (patch) | |
tree | 63fe414bdc307b4591b16e68f593afa04fe11b5a /base/tps/src/include | |
parent | 99c05ac83888005a1aa3a1c31fe77d8ee5e36c42 (diff) | |
download | pki-e9ab0ec12bc7e22857850a6a183df825154971d4.tar.gz pki-e9ab0ec12bc7e22857850a6a183df825154971d4.tar.xz pki-e9ab0ec12bc7e22857850a6a183df825154971d4.zip |
Bug 844800 - TPS should provide the ability to not allow tokens marked as 'Terminated' to be formatted and reused.
Diffstat (limited to 'base/tps/src/include')
-rw-r--r-- | base/tps/src/include/engine/RA.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/tps/src/include/engine/RA.h b/base/tps/src/include/engine/RA.h index 9e7db9857..ea04aa4d5 100644 --- a/base/tps/src/include/engine/RA.h +++ b/base/tps/src/include/engine/RA.h @@ -200,6 +200,7 @@ class RA TPS_PUBLIC static int ra_is_token_pin_resetable(char *cuid); TPS_PUBLIC static int ra_is_token_present(char *cuid); TPS_PUBLIC static int ra_allow_token_reenroll(char *cuid); + TPS_PUBLIC static int ra_get_token_status(char *cuid); TPS_PUBLIC static int ra_allow_token_renew(char *cuid); TPS_PUBLIC static int ra_force_token_format(char *cuid); TPS_PUBLIC static int ra_is_update_pin_resetable_policy(char *cuid); @@ -300,6 +301,8 @@ class RA static const char *CFG_IPUBLISHER_LIB; static const char *CFG_IPUBLISHER_FACTORY; + static const char *CFG_TOKENDB_ALLOWED_TRANSITIONS; + static const char *CFG_OPERATIONS_ALLOWED_TRANSITIONS; public: static const char *TKS_RESPONSE_STATUS; @@ -368,6 +371,9 @@ class RA TPS_PUBLIC static SECCertificateUsage getCertificateUsage(const char *certusage); TPS_PUBLIC static bool verifySystemCertByNickname(const char *nickname, const char *certUsage); TPS_PUBLIC static bool verifySystemCerts(); + + static bool transition_allowed(int oldState, int newState); + static int get_token_state(char *state, char *reason); }; |