소스 검색

Merge pull request #1032 from ThomasWaldmann/remove-openssl-random

remove openssl RAND_bytes from crypto.pyx
enkore 9 년 전
부모
커밋
d4225f7dda
1개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 7
      borg/crypto.pyx

+ 1 - 7
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