diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-03-23 16:00:24 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-04-12 13:49:48 (GMT) |
commit | 0bf6afc5c01b9eb3024a8cfd04bfd743890db4f6 (patch) | |
tree | ca480f6b8e27afa97ade97ca7a13b11502b21f31 /Swiften/TLS/CAPICertificate.h | |
parent | d5f885dd9aa65d18145a99826a1c30aeb62aca8e (diff) | |
download | swift-contrib-0bf6afc5c01b9eb3024a8cfd04bfd743890db4f6.zip swift-contrib-0bf6afc5c01b9eb3024a8cfd04bfd743890db4f6.tar.bz2 |
Tidy up of assorted Schannel/CAPI stuffs.
Makes Swift disconnect if a smartcard used for auth is removed.
Fixes compilation.
Changes code style in a few places.
Diffstat (limited to 'Swiften/TLS/CAPICertificate.h')
-rw-r--r-- | Swiften/TLS/CAPICertificate.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/TLS/CAPICertificate.h b/Swiften/TLS/CAPICertificate.h index c8c00fe..5f24b7e 100644 --- a/Swiften/TLS/CAPICertificate.h +++ b/Swiften/TLS/CAPICertificate.h @@ -16,15 +16,13 @@ #include <WinCrypt.h> #include <Winscard.h> -/* In ms */ -#define SMARTCARD_EJECTION_CHECK_FREQ 1000 +#define SMARTCARD_EJECTION_CHECK_FREQUENCY_MILLISECONDS 1000 namespace Swift { class TimerFactory; class CAPICertificate : public Swift::CertificateWithKey { public: -////Allow timerFactory to be NULL? CAPICertificate(const std::string& capiUri, TimerFactory* timerFactory); virtual ~CAPICertificate(); @@ -61,6 +59,8 @@ namespace Swift { std::string smartCardReaderName_; boost::shared_ptr<Timer> smartCardTimer_; TimerFactory* timerFactory_; + + bool lastPollingResult_; }; PCCERT_CONTEXT findCertificateInStore (HCERTSTORE certStoreHandle, const std::string &certName); |