python: add TrustList wrapper

This commit is contained in:
Adrien Beraud committed 2017-04-27 04:45:59 +02:00
1 parent d0a8a92a56
commit aa5b8b84a8
2 files changed
+30

No files matched your search

+12
View File
@@ -108,6 +108,18 @@ cdef extern from "opendht/crypto.h" namespace "dht::crypto":
Certificate generate(PrivateKey key, string name, Identity ca, bool is_ca)
shared_ptr[Certificate] issuer
cdef cppclass TrustList:
cppclass VerifyResult:
bool operator bool() const
bool isValid() const
string toString() const
TrustList()
void add(Certificate)
void remove(Certificate)
VerifyResult verify(Certificate);
ctypedef TrustList.VerifyResult TrustListVerifyResult
cdef extern from "opendht/value.h" namespace "dht":
cdef cppclass Value:
Value() except +