Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _create_context(self):
"""Returns a new mongocrypt_ctx_t"""
ctx = lib.mongocrypt_ctx_new(self.__crypt)
if ctx == ffi.NULL:
self.__raise_from_status()
return ctx