diff options
author | Pavol Žáčik <[email protected]> | 2019-10-21 15:16:01 +0200 |
---|---|---|
committer | Pavol Žáčik <[email protected]> | 2019-10-22 19:16:05 +0200 |
commit | 2c0bd9cfb7e632bfdbc2e0af9d787d9451811904 (patch) | |
tree | fc9f7f0666c5cb74233245c3e4f27869ff22f262 | |
parent | ec0fe8ee448b5f76f9d40c56fcbbce26c8869ccc (diff) |
Fix Python not_before/not_after
-rwxr-xr-x | src/python/botan2.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/python/botan2.py b/src/python/botan2.py index f7617b8c4..7739523bc 100755 --- a/src/python/botan2.py +++ b/src/python/botan2.py @@ -1347,10 +1347,14 @@ class X509Cert(object): # pylint: disable=invalid-name return rc == 0 def not_before(self): - return _call_fn_returning_sz(lambda l: _DLL.botan_x509_cert_not_before(self.__obj, l)) + time = c_uint64(0) + _DLL.botan_x509_cert_not_before(self.__obj, byref(time)) + return time.value def not_after(self): - return _call_fn_returning_sz(lambda l: _DLL.botan_x509_cert_not_after(self.__obj, l)) + time = c_uint64(0) + _DLL.botan_x509_cert_not_after(self.__obj, byref(time)) + return time.value def allowed_usage(self, usage_list): usage_values = {"NO_CONSTRAINTS": 0, |