New package: python-cryptography-0.7.2
Fix build against LibreSSL (patches via FreeBSD).
This commit is contained in:
parent
6a184a78c0
commit
112a89a8a0
6 changed files with 102 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
--- src/cryptography/hazmat/bindings/openssl/engine.py.orig 2015-01-16 13:26:59 UTC
|
||||
+++ src/cryptography/hazmat/bindings/openssl/engine.py
|
||||
@@ -49,7 +49,6 @@ int ENGINE_init(ENGINE *);
|
||||
int ENGINE_finish(ENGINE *);
|
||||
void ENGINE_load_openssl(void);
|
||||
void ENGINE_load_dynamic(void);
|
||||
-void ENGINE_load_cryptodev(void);
|
||||
void ENGINE_load_builtin_engines(void);
|
||||
void ENGINE_cleanup(void);
|
||||
ENGINE *ENGINE_get_default_RSA(void);
|
|
@ -0,0 +1,12 @@
|
|||
--- src/cryptography/hazmat/bindings/openssl/rand.py.orig 2015-01-16 13:26:59 UTC
|
||||
+++ src/cryptography/hazmat/bindings/openssl/rand.py
|
||||
@@ -16,9 +16,6 @@ void ERR_load_RAND_strings(void);
|
||||
void RAND_seed(const void *, int);
|
||||
void RAND_add(const void *, int, double);
|
||||
int RAND_status(void);
|
||||
-int RAND_egd(const char *);
|
||||
-int RAND_egd_bytes(const char *, int);
|
||||
-int RAND_query_egd_bytes(const char *, unsigned char *, int);
|
||||
const char *RAND_file_name(char *, size_t);
|
||||
int RAND_load_file(const char *, long);
|
||||
int RAND_write_file(const char *);
|
|
@ -0,0 +1,30 @@
|
|||
--- src/cryptography/hazmat/bindings/openssl/ssl.py.orig 2015-01-16 13:26:59 UTC
|
||||
+++ src/cryptography/hazmat/bindings/openssl/ssl.py
|
||||
@@ -189,10 +189,6 @@ int SSL_shutdown(SSL *);
|
||||
const char *SSL_get_cipher_list(const SSL *, int);
|
||||
Cryptography_STACK_OF_SSL_CIPHER *SSL_get_ciphers(const SSL *);
|
||||
|
||||
-const COMP_METHOD *SSL_get_current_compression(SSL *);
|
||||
-const COMP_METHOD *SSL_get_current_expansion(SSL *);
|
||||
-const char *SSL_COMP_get_name(const COMP_METHOD *);
|
||||
-
|
||||
/* context */
|
||||
void SSL_CTX_free(SSL_CTX *);
|
||||
long SSL_CTX_set_timeout(SSL_CTX *, long);
|
||||
@@ -415,6 +411,16 @@ static const long Cryptography_HAS_RELEA
|
||||
const long SSL_MODE_RELEASE_BUFFERS = 0;
|
||||
#endif
|
||||
|
||||
+#ifndef OPENSSL_NO_COMP
|
||||
+const COMP_METHOD *SSL_get_current_compression(SSL *s);
|
||||
+const COMP_METHOD *SSL_get_current_expansion(SSL *s);
|
||||
+const char *SSL_COMP_get_name(const COMP_METHOD *comp);
|
||||
+#else
|
||||
+const void *SSL_get_current_compression(SSL *s);
|
||||
+const void *SSL_get_current_expansion(SSL *s);
|
||||
+const char *SSL_COMP_get_name(const void *comp);
|
||||
+#endif
|
||||
+
|
||||
#ifdef SSL_OP_NO_COMPRESSION
|
||||
static const long Cryptography_HAS_OP_NO_COMPRESSION = 1;
|
||||
#else
|
|
@ -0,0 +1,20 @@
|
|||
--- src/cryptography/hazmat/bindings/openssl/x509_vfy.py.orig 2015-01-16 13:26:59 UTC
|
||||
+++ src/cryptography/hazmat/bindings/openssl/x509_vfy.py
|
||||
@@ -191,7 +191,7 @@ int X509_VERIFY_PARAM_set1_ip_asc(X509_V
|
||||
|
||||
CUSTOMIZATIONS = """
|
||||
/* OpenSSL 1.0.2+ verification error codes */
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
|
||||
+#if X509_V_ERR_EMAIL_MISMATCH
|
||||
static const long Cryptography_HAS_102_VERIFICATION_ERROR_CODES = 1;
|
||||
#else
|
||||
static const long Cryptography_HAS_102_VERIFICATION_ERROR_CODES = 0;
|
||||
@@ -207,7 +207,7 @@ static const long X509_V_ERR_IP_ADDRESS_
|
||||
#endif
|
||||
|
||||
/* OpenSSL 1.0.2+ verification parameters */
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
|
||||
+#if X509_V_FLAG_PARTIAL_CHAIN
|
||||
static const long Cryptography_HAS_102_VERIFICATION_PARAMS = 1;
|
||||
#else
|
||||
static const long Cryptography_HAS_102_VERIFICATION_PARAMS = 0;
|
29
srcpkgs/python-cryptography/template
Normal file
29
srcpkgs/python-cryptography/template
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Template file for 'python-cryptography'
|
||||
pkgname=python-cryptography
|
||||
version=0.7.2
|
||||
revision=1
|
||||
wrksrc="cryptography-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools libressl-devel
|
||||
python-enum34 python-six python3.4-six python-pyasn1 python3.4-pyasn1
|
||||
python-cffi python3.4-cffi"
|
||||
makedepends="libressl-devel python-devel python3.4-devel"
|
||||
depends="python-setuptools python-cffi python-pyasn1 python-six python-enum34"
|
||||
pycompile_module="cryptography"
|
||||
short_desc="Python2 library that provides cryptographic recipes and primitives"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
homepage="https://github.com/pyca/cryptography"
|
||||
license="BSD, Apache-2.0"
|
||||
distfiles="${PYPI_SITE}/c/cryptography/cryptography-${version}.tar.gz"
|
||||
checksum=fab7fcdde360ec6614442d0321dcd0eff5e43544cb30d975e9d75a914a4cdf78
|
||||
|
||||
python3.4-cryptography_package() {
|
||||
depends="python3.4-setuptools python3.4-cffi python3.4-pyasn1 python3.4-six"
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="cryptography"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3.4
|
||||
}
|
||||
}
|
1
srcpkgs/python3.4-cryptography
Symbolic link
1
srcpkgs/python3.4-cryptography
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-cryptography
|
Loading…
Reference in a new issue