mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-29 11:16:43 +00:00
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.
This commit is contained in:
parent
6222ec98ed
commit
595e7c1dcd
1 changed files with 1 additions and 7 deletions
|
@ -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 libc.stdlib cimport malloc, free
|
||||||
from cpython.buffer cimport PyBUF_SIMPLE, PyObject_GetBuffer, PyBuffer_Release
|
from cpython.buffer cimport PyBUF_SIMPLE, PyObject_GetBuffer, PyBuffer_Release
|
||||||
|
|
||||||
API_VERSION = 3
|
API_VERSION = 3
|
||||||
|
|
||||||
|
|
||||||
cdef extern from "openssl/rand.h":
|
|
||||||
int RAND_bytes(unsigned char *buf, int num)
|
|
||||||
|
|
||||||
|
|
||||||
cdef extern from "openssl/evp.h":
|
cdef extern from "openssl/evp.h":
|
||||||
ctypedef struct EVP_MD:
|
ctypedef struct EVP_MD:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue