diff --git a/borg/crypto.pyx b/borg/crypto.pyx index 8bee39fe4..16f1cda82 100644 --- a/borg/crypto.pyx +++ b/borg/crypto.pyx @@ -5,7 +5,7 @@ This could be replaced by PyCrypto maybe? from libc.stdlib cimport malloc, free from cpython.buffer cimport PyBUF_SIMPLE, PyObject_GetBuffer, PyBuffer_Release -API_VERSION = 2 +API_VERSION = 3 cdef extern from "openssl/rand.h": diff --git a/borg/helpers.py b/borg/helpers.py index 9259c8f81..fb61c49e5 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -79,7 +79,7 @@ def check_extension_modules(): raise ExtensionModuleError if chunker.API_VERSION != 2: raise ExtensionModuleError - if crypto.API_VERSION != 2: + if crypto.API_VERSION != 3: raise ExtensionModuleError if platform.API_VERSION != 2: raise ExtensionModuleError