Esempio n. 1
0
 def endpoint(self):
     """The kms hostname to connect over TLS."""
     p = ffi.new("char *[]", 1)
     try:
         if not lib.mongocrypt_kms_ctx_endpoint(self.__ctx, p):
             self.__raise_from_status()
         return _to_string(p[0])
     finally:
         ffi.release(p)
Esempio n. 2
0
 def _close(self):
     """Cleanup resources."""
     super(MongoCryptBinaryIn, self)._close()
     if self.__copy is None:
         ffi.release(self.__copy)
         self.__copy = None
Esempio n. 3
0
 def _close(self):
     """Cleanup resources."""
     super(MongoCryptBinaryIn, self)._close()
     if self.cref is not None:
         ffi.release(self.cref)
         self.cref = None