From 595e7c1dcd0f5a399c83a428554338a1342febdd Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 9 May 2016 04:14:50 +0200 Subject: [PATCH] remove openssl RAND_bytes from crypto.pyx was forgotten there and not used any more since a while. also removed the hint about PyCrypto being an alternative to crypto.pyx, it was not updated since 2014, looks pretty stale. --- borg/crypto.pyx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/borg/crypto.pyx b/borg/crypto.pyx index 16f1cda82..dd0fa14ac 100644 --- a/borg/crypto.pyx +++ b/borg/crypto.pyx @@ -1,17 +1,11 @@ -"""A thin OpenSSL wrapper +"""A thin OpenSSL wrapper""" -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 = 3 -cdef extern from "openssl/rand.h": - int RAND_bytes(unsigned char *buf, int num) - - cdef extern from "openssl/evp.h": ctypedef struct EVP_MD: pass