diff options
author | lloyd <[email protected]> | 2008-06-30 03:44:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-30 03:44:16 +0000 |
commit | 1268d30b45890f55fb4762b180c05cb643d83ff4 (patch) | |
tree | ba66f5ac886b019cd3a886941121089e882310c0 /include | |
parent | a01d19fd314804f3466737b3c6314bec0d511990 (diff) |
Previously X509_Store took two configuration values from the library
config state: how long successful validations should be cached, and the
amount of slack to allow on time boundary checks. Now these are passed
as arguments to the constructor, as a pair of 32-bit integers representing
the number of seconds to allow as slack and the number of seconds to cache
validations for. They default to the same compiled in defaults as before,
24 hours (86400 seconds) and 30 minutes (1800 seconds), respectively.
Diffstat (limited to 'include')
-rw-r--r-- | include/x509stor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/x509stor.h b/include/x509stor.h index 4c0681496..3f3f38ea0 100644 --- a/include/x509stor.h +++ b/include/x509stor.h @@ -78,7 +78,9 @@ class BOTAN_DLL X509_Store static X509_Code check_sig(const X509_Object&, Public_Key*); - X509_Store(); + X509_Store(u32bit time_slack = 24*60*60, + u32bit cache_results = 30*60); + X509_Store(const X509_Store&); ~X509_Store(); private: |