From fcd323f22ac8f1c8facf5f0306fd7026f2399726 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Sat, 23 Apr 2016 11:39:42 +0200 Subject: [PATCH] Bump API version of crypto.pyx (overlooked in c5bd7f2) --- borg/crypto.pyx | 2 +- borg/helpers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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