mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 01:41:57 -04:00
Merge pull request #6475 from bket/unused-code-1.2
1.2 - Remove unused code
This commit is contained in:
commit
df9322c4a9
3 changed files with 0 additions and 11 deletions
|
|
@ -1,6 +1,5 @@
|
|||
/* some helpers, so our code also works with OpenSSL 1.0.x */
|
||||
|
||||
#include <string.h>
|
||||
#include <openssl/opensslv.h>
|
||||
#include <openssl/hmac.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,14 +2,8 @@
|
|||
|
||||
#include <openssl/opensslv.h>
|
||||
#include <openssl/hmac.h>
|
||||
#include <openssl/evp.h>
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
|
||||
HMAC_CTX *HMAC_CTX_new(void);
|
||||
void HMAC_CTX_free(HMAC_CTX *ctx);
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#define LIBRESSL_VERSION_NUMBER 0
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -102,15 +102,11 @@ cdef extern from "openssl/hmac.h":
|
|||
|
||||
cdef extern from "_crypto_helpers.h":
|
||||
long OPENSSL_VERSION_NUMBER
|
||||
long LIBRESSL_VERSION_NUMBER
|
||||
|
||||
HMAC_CTX *HMAC_CTX_new()
|
||||
void HMAC_CTX_free(HMAC_CTX *a)
|
||||
|
||||
|
||||
openssl10 = OPENSSL_VERSION_NUMBER < 0x10100000 or LIBRESSL_VERSION_NUMBER
|
||||
|
||||
|
||||
import struct
|
||||
|
||||
_int = struct.Struct('>I')
|
||||
|
|
|
|||
Loading…
Reference in a new issue