View | Details | Raw Unified | Return to bug 254853 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/py-cryptography/Makefile (-6 / +90 lines)
Lines 1-9 Link Here
1
PORTNAME=	cryptography
1
PORTNAME=	cryptography
2
PORTVERSION=	3.4.8
2
PORTVERSION=	39.0.2
3
PORTREVISION=	1
4
PORTEPOCH=	1
3
PORTEPOCH=	1
5
CATEGORIES=	security python
4
CATEGORIES=	security python
6
MASTER_SITES=	PYPI
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
6
9
MAINTAINER=	sunpoet@FreeBSD.org
7
MAINTAINER=	sunpoet@FreeBSD.org
Lines 15-38 LICENSE_COMB= dual Link Here
15
LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE.APACHE
13
LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE.APACHE
16
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSE.BSD
14
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSE.BSD
17
15
18
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.12:devel/py-cffi@${PY_FLAVOR}
16
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.12:devel/py-cffi@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}setuptools-rust>=1.4.0:devel/py-setuptools-rust@${PY_FLAVOR}
19
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.12:devel/py-cffi@${PY_FLAVOR}
18
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.12:devel/py-cffi@${PY_FLAVOR}
20
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cryptography-vectors>=${PORTVERSION}:security/py-cryptography-vectors@${PY_FLAVOR} \
19
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cryptography-vectors>=${PORTVERSION}:security/py-cryptography-vectors@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}hypothesis>=1.11.4:devel/py-hypothesis@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}hypothesis>=1.11.4:devel/py-hypothesis@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}iso8601>=0:devel/py-iso8601@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}iso8601>=0:devel/py-iso8601@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}pretend>=0:devel/py-pretend@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}pretend>=0:devel/py-pretend@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}pytest-benchmark>=0:devel/py-pytest-benchmark@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}pytest-subtests>=0:devel/py-pytest-subtests@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}pytest-subtests>=0:devel/py-pytest-subtests@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}pytest-xdist>=0,1:devel/py-pytest-xdist@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}pytest-xdist>=0,1:devel/py-pytest-xdist@${PY_FLAVOR} \
27
		${PYTHON_PKGNAMEPREFIX}pytz>=0,1:devel/py-pytz@${PY_FLAVOR} \
27
		${PYTHON_PKGNAMEPREFIX}pytz>=0,1:devel/py-pytz@${PY_FLAVOR} \
28
		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
28
		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
29
29
30
USES=		compiler:env cpe python:3.6+ ssl
30
USES=		cargo compiler:env cpe python:3.6+ ssl
31
USE_PYTHON=	autoplist concurrent distutils pytest
31
USE_PYTHON=	autoplist concurrent distutils pytest
32
32
33
USE_GITHUB=	yes
34
GH_ACCOUNT=	pyca
35
36
# make cargo-crates
37
CARGO_CRATES=	Inflector-0.11.4 \
38
		aliasable-0.1.3 \
39
		android_system_properties-0.1.5 \
40
		asn1-0.13.0 \
41
		asn1_derive-0.13.0 \
42
		autocfg-1.1.0 \
43
		base64-0.13.1 \
44
		bitflags-1.3.2 \
45
		bumpalo-3.10.0 \
46
		cc-1.0.78 \
47
		cfg-if-1.0.0 \
48
		chrono-0.4.23 \
49
		codespan-reporting-0.11.1 \
50
		core-foundation-sys-0.8.3 \
51
		cxx-1.0.85 \
52
		cxx-build-1.0.85 \
53
		cxxbridge-flags-1.0.85 \
54
		cxxbridge-macro-1.0.85 \
55
		iana-time-zone-0.1.53 \
56
		iana-time-zone-haiku-0.1.1 \
57
		indoc-0.3.6 \
58
		indoc-impl-0.3.6 \
59
		instant-0.1.12 \
60
		js-sys-0.3.60 \
61
		libc-0.2.139 \
62
		link-cplusplus-1.0.8 \
63
		lock_api-0.4.9 \
64
		log-0.4.17 \
65
		num-integer-0.1.45 \
66
		num-traits-0.2.15 \
67
		once_cell-1.14.0 \
68
		ouroboros-0.15.5 \
69
		ouroboros_macro-0.15.5 \
70
		parking_lot-0.11.2 \
71
		parking_lot_core-0.8.6 \
72
		paste-0.1.18 \
73
		paste-impl-0.1.18 \
74
		pem-1.1.0 \
75
		proc-macro-error-1.0.4 \
76
		proc-macro-error-attr-1.0.4 \
77
		proc-macro-hack-0.5.20+deprecated \
78
		proc-macro2-1.0.49 \
79
		pyo3-0.15.2 \
80
		pyo3-build-config-0.15.2 \
81
		pyo3-macros-0.15.2 \
82
		pyo3-macros-backend-0.15.2 \
83
		quote-1.0.23 \
84
		redox_syscall-0.2.16 \
85
		scopeguard-1.1.0 \
86
		scratch-1.0.3 \
87
		smallvec-1.10.0 \
88
		syn-1.0.107 \
89
		termcolor-1.1.3 \
90
		unicode-ident-1.0.6 \
91
		unicode-width-0.1.10 \
92
		unindent-0.1.11 \
93
		version_check-0.9.4 \
94
		wasm-bindgen-0.2.83 \
95
		wasm-bindgen-backend-0.2.83 \
96
		wasm-bindgen-macro-0.2.83 \
97
		wasm-bindgen-macro-support-0.2.83 \
98
		wasm-bindgen-shared-0.2.83 \
99
		winapi-0.3.9 \
100
		winapi-i686-pc-windows-gnu-0.4.0 \
101
		winapi-util-0.1.5 \
102
		winapi-x86_64-pc-windows-gnu-0.4.0
103
104
CARGO_CARGOTOML= ${WRKSRC}/src/rust/Cargo.toml
105
CARGO_CARGOLOCK= ${WRKSRC}/src/rust/Cargo.lock
106
CARGO_BUILD=	no
107
CARGO_INSTALL=	no
108
CARGO_TEST=	no
109
CARGO_TARGET_DIR=${WRKSRC}/target
110
MAKE_ENV=	${CARGO_ENV}
111
BINARY_ALIAS=	python3=${PYTHON_CMD}
112
33
CFLAGS+=	-I${OPENSSLINC}
113
CFLAGS+=	-I${OPENSSLINC}
34
LDFLAGS+=	-L${OPENSSLLIB}
114
LDFLAGS+=	-L${OPENSSLLIB}
35
MAKE_ENV=	CRYPTOGRAPHY_DONT_BUILD_RUST=1
36
TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
115
TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
37
116
38
CPE_VENDOR=	cryptography_project
117
CPE_VENDOR=	cryptography_project
Lines 46-50 post-patch: Link Here
46
125
47
post-install:
126
post-install:
48
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
127
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
128
	# Regenerate .PLIST.pymodtemp to get all installed files from
129
	# ${STAGEDIR}.
130
	@${FIND} ${STAGEDIR} -type f -o -type l | \
131
		${SORT} | ${SED} -e 's|${STAGEDIR}||' \
132
		> ${WRKDIR}/.PLIST.pymodtmp
49
133
50
.include <bsd.port.post.mk>
134
.include <bsd.port.post.mk>
(-)b/security/py-cryptography/distinfo (-3 / +135 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1652122693
1
TIMESTAMP = 1679172223
2
SHA256 (cryptography-3.4.8.tar.gz) = 94cc5ed4ceaefcbe5bf38c8fba6a21fc1d365bb8fb826ea1688e3370b2e24a1c
2
SHA256 (rust/crates/Inflector-0.11.4.crate) = fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3
3
SIZE (cryptography-3.4.8.tar.gz) = 546907
3
SIZE (rust/crates/Inflector-0.11.4.crate) = 17438
4
SHA256 (rust/crates/aliasable-0.1.3.crate) = 250f629c0161ad8107cf89319e990051fae62832fd343083bea452d93e2205fd
5
SIZE (rust/crates/aliasable-0.1.3.crate) = 6169
6
SHA256 (rust/crates/android_system_properties-0.1.5.crate) = 819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311
7
SIZE (rust/crates/android_system_properties-0.1.5.crate) = 5243
8
SHA256 (rust/crates/asn1-0.13.0.crate) = 2affba5e62ee09eeba078f01a00c4aed45ac4287e091298eccbb0d4802efbdc5
9
SIZE (rust/crates/asn1-0.13.0.crate) = 34487
10
SHA256 (rust/crates/asn1_derive-0.13.0.crate) = bfab79c195875e5aef2bd20b4c8ed8d43ef9610bcffefbbcf66f88f555cc78af
11
SIZE (rust/crates/asn1_derive-0.13.0.crate) = 5824
12
SHA256 (rust/crates/autocfg-1.1.0.crate) = d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa
13
SIZE (rust/crates/autocfg-1.1.0.crate) = 13272
14
SHA256 (rust/crates/base64-0.13.1.crate) = 9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8
15
SIZE (rust/crates/base64-0.13.1.crate) = 61002
16
SHA256 (rust/crates/bitflags-1.3.2.crate) = bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a
17
SIZE (rust/crates/bitflags-1.3.2.crate) = 23021
18
SHA256 (rust/crates/bumpalo-3.10.0.crate) = 37ccbd214614c6783386c1af30caf03192f17891059cecc394b4fb119e363de3
19
SIZE (rust/crates/bumpalo-3.10.0.crate) = 78915
20
SHA256 (rust/crates/cc-1.0.78.crate) = a20104e2335ce8a659d6dd92a51a767a0c062599c73b343fd152cb401e828c3d
21
SIZE (rust/crates/cc-1.0.78.crate) = 61375
22
SHA256 (rust/crates/cfg-if-1.0.0.crate) = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd
23
SIZE (rust/crates/cfg-if-1.0.0.crate) = 7934
24
SHA256 (rust/crates/chrono-0.4.23.crate) = 16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f
25
SIZE (rust/crates/chrono-0.4.23.crate) = 187259
26
SHA256 (rust/crates/codespan-reporting-0.11.1.crate) = 3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e
27
SIZE (rust/crates/codespan-reporting-0.11.1.crate) = 48963
28
SHA256 (rust/crates/core-foundation-sys-0.8.3.crate) = 5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc
29
SIZE (rust/crates/core-foundation-sys-0.8.3.crate) = 17519
30
SHA256 (rust/crates/cxx-1.0.85.crate) = 5add3fc1717409d029b20c5b6903fc0c0b02fa6741d820054f4a2efa5e5816fd
31
SIZE (rust/crates/cxx-1.0.85.crate) = 589916
32
SHA256 (rust/crates/cxx-build-1.0.85.crate) = b4c87959ba14bc6fbc61df77c3fcfe180fc32b93538c4f1031dd802ccb5f2ff0
33
SIZE (rust/crates/cxx-build-1.0.85.crate) = 84820
34
SHA256 (rust/crates/cxxbridge-flags-1.0.85.crate) = 69a3e162fde4e594ed2b07d0f83c6c67b745e7f28ce58c6df5e6b6bef99dfb59
35
SIZE (rust/crates/cxxbridge-flags-1.0.85.crate) = 5635
36
SHA256 (rust/crates/cxxbridge-macro-1.0.85.crate) = 3e7e2adeb6a0d4a282e581096b06e1791532b7d576dcde5ccd9382acf55db8e6
37
SIZE (rust/crates/cxxbridge-macro-1.0.85.crate) = 59873
38
SHA256 (rust/crates/iana-time-zone-0.1.53.crate) = 64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765
39
SIZE (rust/crates/iana-time-zone-0.1.53.crate) = 20176
40
SHA256 (rust/crates/iana-time-zone-haiku-0.1.1.crate) = 0703ae284fc167426161c2e3f1da3ea71d94b21bedbcc9494e92b28e334e3dca
41
SIZE (rust/crates/iana-time-zone-haiku-0.1.1.crate) = 7200
42
SHA256 (rust/crates/indoc-0.3.6.crate) = 47741a8bc60fb26eb8d6e0238bbb26d8575ff623fdc97b1a2c00c050b9684ed8
43
SIZE (rust/crates/indoc-0.3.6.crate) = 9663
44
SHA256 (rust/crates/indoc-impl-0.3.6.crate) = ce046d161f000fffde5f432a0d034d0341dc152643b2598ed5bfce44c4f3a8f0
45
SIZE (rust/crates/indoc-impl-0.3.6.crate) = 7933
46
SHA256 (rust/crates/instant-0.1.12.crate) = 7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c
47
SIZE (rust/crates/instant-0.1.12.crate) = 6128
48
SHA256 (rust/crates/js-sys-0.3.60.crate) = 49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47
49
SIZE (rust/crates/js-sys-0.3.60.crate) = 79257
50
SHA256 (rust/crates/libc-0.2.139.crate) = 201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79
51
SIZE (rust/crates/libc-0.2.139.crate) = 638983
52
SHA256 (rust/crates/link-cplusplus-1.0.8.crate) = ecd207c9c713c34f95a097a5b029ac2ce6010530c7b49d7fea24d977dede04f5
53
SIZE (rust/crates/link-cplusplus-1.0.8.crate) = 7674
54
SHA256 (rust/crates/lock_api-0.4.9.crate) = 435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df
55
SIZE (rust/crates/lock_api-0.4.9.crate) = 25685
56
SHA256 (rust/crates/log-0.4.17.crate) = abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e
57
SIZE (rust/crates/log-0.4.17.crate) = 38028
58
SHA256 (rust/crates/num-integer-0.1.45.crate) = 225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9
59
SIZE (rust/crates/num-integer-0.1.45.crate) = 22529
60
SHA256 (rust/crates/num-traits-0.2.15.crate) = 578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd
61
SIZE (rust/crates/num-traits-0.2.15.crate) = 49262
62
SHA256 (rust/crates/once_cell-1.14.0.crate) = 2f7254b99e31cad77da24b08ebf628882739a608578bb1bcdfc1f9c21260d7c0
63
SIZE (rust/crates/once_cell-1.14.0.crate) = 31614
64
SHA256 (rust/crates/ouroboros-0.15.5.crate) = dfbb50b356159620db6ac971c6d5c9ab788c9cc38a6f49619fca2a27acb062ca
65
SIZE (rust/crates/ouroboros-0.15.5.crate) = 11252
66
SHA256 (rust/crates/ouroboros_macro-0.15.5.crate) = 4a0d9d1a6191c4f391f87219d1ea42b23f09ee84d64763cd05ee6ea88d9f384d
67
SIZE (rust/crates/ouroboros_macro-0.15.5.crate) = 20731
68
SHA256 (rust/crates/parking_lot-0.11.2.crate) = 7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99
69
SIZE (rust/crates/parking_lot-0.11.2.crate) = 39869
70
SHA256 (rust/crates/parking_lot_core-0.8.6.crate) = 60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc
71
SIZE (rust/crates/parking_lot_core-0.8.6.crate) = 32567
72
SHA256 (rust/crates/paste-0.1.18.crate) = 45ca20c77d80be666aef2b45486da86238fabe33e38306bd3118fe4af33fa880
73
SIZE (rust/crates/paste-0.1.18.crate) = 12259
74
SHA256 (rust/crates/paste-impl-0.1.18.crate) = d95a7db200b97ef370c8e6de0088252f7e0dfff7d047a28528e47456c0fc98b6
75
SIZE (rust/crates/paste-impl-0.1.18.crate) = 9451
76
SHA256 (rust/crates/pem-1.1.0.crate) = 03c64931a1a212348ec4f3b4362585eca7159d0d09cbdf4a7f74f02173596fd4
77
SIZE (rust/crates/pem-1.1.0.crate) = 10805
78
SHA256 (rust/crates/proc-macro-error-1.0.4.crate) = da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c
79
SIZE (rust/crates/proc-macro-error-1.0.4.crate) = 25293
80
SHA256 (rust/crates/proc-macro-error-attr-1.0.4.crate) = a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869
81
SIZE (rust/crates/proc-macro-error-attr-1.0.4.crate) = 7971
82
SHA256 (rust/crates/proc-macro-hack-0.5.20+deprecated.crate) = dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068
83
SIZE (rust/crates/proc-macro-hack-0.5.20+deprecated.crate) = 15045
84
SHA256 (rust/crates/proc-macro2-1.0.49.crate) = 57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5
85
SIZE (rust/crates/proc-macro2-1.0.49.crate) = 41977
86
SHA256 (rust/crates/pyo3-0.15.2.crate) = d41d50a7271e08c7c8a54cd24af5d62f73ee3a6f6a314215281ebdec421d5752
87
SIZE (rust/crates/pyo3-0.15.2.crate) = 371382
88
SHA256 (rust/crates/pyo3-build-config-0.15.2.crate) = 779239fc40b8e18bc8416d3a37d280ca9b9fb04bda54b98037bb6748595c2410
89
SIZE (rust/crates/pyo3-build-config-0.15.2.crate) = 22235
90
SHA256 (rust/crates/pyo3-macros-0.15.2.crate) = 00b247e8c664be87998d8628e86f282c25066165f1f8dda66100c48202fdb93a
91
SIZE (rust/crates/pyo3-macros-0.15.2.crate) = 7596
92
SHA256 (rust/crates/pyo3-macros-backend-0.15.2.crate) = 5a8c2812c412e00e641d99eeb79dd478317d981d938aa60325dfa7157b607095
93
SIZE (rust/crates/pyo3-macros-backend-0.15.2.crate) = 46112
94
SHA256 (rust/crates/quote-1.0.23.crate) = 8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b
95
SIZE (rust/crates/quote-1.0.23.crate) = 28058
96
SHA256 (rust/crates/redox_syscall-0.2.16.crate) = fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a
97
SIZE (rust/crates/redox_syscall-0.2.16.crate) = 24012
98
SHA256 (rust/crates/scopeguard-1.1.0.crate) = d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd
99
SIZE (rust/crates/scopeguard-1.1.0.crate) = 11470
100
SHA256 (rust/crates/scratch-1.0.3.crate) = ddccb15bcce173023b3fedd9436f882a0739b8dfb45e4f6b6002bee5929f61b2
101
SIZE (rust/crates/scratch-1.0.3.crate) = 8198
102
SHA256 (rust/crates/smallvec-1.10.0.crate) = a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0
103
SIZE (rust/crates/smallvec-1.10.0.crate) = 31564
104
SHA256 (rust/crates/syn-1.0.107.crate) = 1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5
105
SIZE (rust/crates/syn-1.0.107.crate) = 237539
106
SHA256 (rust/crates/termcolor-1.1.3.crate) = bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755
107
SIZE (rust/crates/termcolor-1.1.3.crate) = 17242
108
SHA256 (rust/crates/unicode-ident-1.0.6.crate) = 84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc
109
SIZE (rust/crates/unicode-ident-1.0.6.crate) = 42158
110
SHA256 (rust/crates/unicode-width-0.1.10.crate) = c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b
111
SIZE (rust/crates/unicode-width-0.1.10.crate) = 18968
112
SHA256 (rust/crates/unindent-0.1.11.crate) = e1766d682d402817b5ac4490b3c3002d91dfa0d22812f341609f97b08757359c
113
SIZE (rust/crates/unindent-0.1.11.crate) = 7700
114
SHA256 (rust/crates/version_check-0.9.4.crate) = 49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f
115
SIZE (rust/crates/version_check-0.9.4.crate) = 14895
116
SHA256 (rust/crates/wasm-bindgen-0.2.83.crate) = eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268
117
SIZE (rust/crates/wasm-bindgen-0.2.83.crate) = 169618
118
SHA256 (rust/crates/wasm-bindgen-backend-0.2.83.crate) = 4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142
119
SIZE (rust/crates/wasm-bindgen-backend-0.2.83.crate) = 25620
120
SHA256 (rust/crates/wasm-bindgen-macro-0.2.83.crate) = 052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810
121
SIZE (rust/crates/wasm-bindgen-macro-0.2.83.crate) = 12075
122
SHA256 (rust/crates/wasm-bindgen-macro-support-0.2.83.crate) = 07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c
123
SIZE (rust/crates/wasm-bindgen-macro-support-0.2.83.crate) = 18530
124
SHA256 (rust/crates/wasm-bindgen-shared-0.2.83.crate) = 1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f
125
SIZE (rust/crates/wasm-bindgen-shared-0.2.83.crate) = 7194
126
SHA256 (rust/crates/winapi-0.3.9.crate) = 5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419
127
SIZE (rust/crates/winapi-0.3.9.crate) = 1200382
128
SHA256 (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.crate) = ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6
129
SIZE (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.crate) = 2918815
130
SHA256 (rust/crates/winapi-util-0.1.5.crate) = 70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178
131
SIZE (rust/crates/winapi-util-0.1.5.crate) = 10164
132
SHA256 (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f
133
SIZE (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 2947998
134
SHA256 (pyca-cryptography-39.0.2_GH0.tar.gz) = 81177751917382a8fd4779ff63080fcfdb21b3d83b2c26d0ab82a41ab9c0b115
135
SIZE (pyca-cryptography-39.0.2_GH0.tar.gz) = 35904988
(-)a/security/py-cryptography/files/patch-libressl (-340 lines)
Removed Link Here
1
--- src/_cffi_src/openssl/crypto.py.orig	2023-03-22 07:29:15 UTC
2
+++ src/_cffi_src/openssl/crypto.py
3
@@ -74,11 +74,8 @@ CUSTOMIZATIONS = """
4
 # define OPENSSL_DIR             SSLEAY_DIR
5
 #endif
6
 
7
+static const long Cryptography_HAS_OPENSSL_CLEANUP = 1;
8
 #if CRYPTOGRAPHY_IS_LIBRESSL
9
-static const long Cryptography_HAS_OPENSSL_CLEANUP = 0;
10
-
11
-void (*OPENSSL_cleanup)(void) = NULL;
12
-
13
 /* This function has a significantly different signature pre-1.1.0. since it is
14
  * for testing only, we don't bother to expose it on older OpenSSLs.
15
  */
16
@@ -89,7 +86,6 @@ int (*Cryptography_CRYPTO_set_mem_functions)(
17
     void (*)(void *, const char *, int)) = NULL;
18
 
19
 #else
20
-static const long Cryptography_HAS_OPENSSL_CLEANUP = 1;
21
 static const long Cryptography_HAS_MEM_FUNCTIONS = 1;
22
 
23
 int Cryptography_CRYPTO_set_mem_functions(
24
--- src/_cffi_src/openssl/cryptography.py.orig	2021-08-24 17:17:17 UTC
25
+++ src/_cffi_src/openssl/cryptography.py
26
@@ -33,17 +33,17 @@ INCLUDES = """
27
 #endif
28
 
29
 #define CRYPTOGRAPHY_OPENSSL_110F_OR_GREATER \
30
-    (OPENSSL_VERSION_NUMBER >= 0x1010006f && !CRYPTOGRAPHY_IS_LIBRESSL)
31
+    OPENSSL_VERSION_NUMBER >= 0x1010006f
32
 
33
 #define CRYPTOGRAPHY_OPENSSL_LESS_THAN_110J \
34
-    (OPENSSL_VERSION_NUMBER < 0x101000af || CRYPTOGRAPHY_IS_LIBRESSL)
35
+    OPENSSL_VERSION_NUMBER < 0x101000af
36
 #define CRYPTOGRAPHY_OPENSSL_LESS_THAN_111 \
37
-    (OPENSSL_VERSION_NUMBER < 0x10101000 || CRYPTOGRAPHY_IS_LIBRESSL)
38
+    OPENSSL_VERSION_NUMBER < 0x10101000
39
 #define CRYPTOGRAPHY_OPENSSL_LESS_THAN_111B \
40
-    (OPENSSL_VERSION_NUMBER < 0x10101020 || CRYPTOGRAPHY_IS_LIBRESSL)
41
+    OPENSSL_VERSION_NUMBER < 0x10101020
42
 #define CRYPTOGRAPHY_OPENSSL_LESS_THAN_111D \
43
-    (OPENSSL_VERSION_NUMBER < 0x10101040 || CRYPTOGRAPHY_IS_LIBRESSL)
44
-#if (CRYPTOGRAPHY_OPENSSL_LESS_THAN_111D && !CRYPTOGRAPHY_IS_LIBRESSL && \
45
+    OPENSSL_VERSION_NUMBER < 0x10101040
46
+#if (CRYPTOGRAPHY_OPENSSL_LESS_THAN_111D && \
47
     !defined(OPENSSL_NO_ENGINE)) || defined(USE_OSRANDOM_RNG_FOR_TESTING)
48
 #define CRYPTOGRAPHY_NEEDS_OSRANDOM_ENGINE 1
49
 #else
50
--- src/_cffi_src/openssl/dh.py.orig	2021-08-24 17:17:17 UTC
51
+++ src/_cffi_src/openssl/dh.py
52
@@ -37,117 +37,9 @@ int Cryptography_i2d_DHxparams_bio(BIO *bp, DH *x);
53
 """
54
 
55
 CUSTOMIZATIONS = """
56
-#if CRYPTOGRAPHY_IS_LIBRESSL
57
-#ifndef DH_CHECK_Q_NOT_PRIME
58
-#define DH_CHECK_Q_NOT_PRIME            0x10
59
-#endif
60
-
61
-#ifndef DH_CHECK_INVALID_Q_VALUE
62
-#define DH_CHECK_INVALID_Q_VALUE        0x20
63
-#endif
64
-
65
-#ifndef DH_CHECK_INVALID_J_VALUE
66
-#define DH_CHECK_INVALID_J_VALUE        0x40
67
-#endif
68
-
69
-/* DH_check implementation taken from OpenSSL 1.1.0pre6 */
70
-
71
-/*-
72
- * Check that p is a safe prime and
73
- * if g is 2, 3 or 5, check that it is a suitable generator
74
- * where
75
- * for 2, p mod 24 == 11
76
- * for 3, p mod 12 == 5
77
- * for 5, p mod 10 == 3 or 7
78
- * should hold.
79
- */
80
-
81
-int Cryptography_DH_check(const DH *dh, int *ret)
82
-{
83
-    int ok = 0, r;
84
-    BN_CTX *ctx = NULL;
85
-    BN_ULONG l;
86
-    BIGNUM *t1 = NULL, *t2 = NULL;
87
-
88
-    *ret = 0;
89
-    ctx = BN_CTX_new();
90
-    if (ctx == NULL)
91
-        goto err;
92
-    BN_CTX_start(ctx);
93
-    t1 = BN_CTX_get(ctx);
94
-    if (t1 == NULL)
95
-        goto err;
96
-    t2 = BN_CTX_get(ctx);
97
-    if (t2 == NULL)
98
-        goto err;
99
-
100
-    if (dh->q) {
101
-        if (BN_cmp(dh->g, BN_value_one()) <= 0)
102
-            *ret |= DH_NOT_SUITABLE_GENERATOR;
103
-        else if (BN_cmp(dh->g, dh->p) >= 0)
104
-            *ret |= DH_NOT_SUITABLE_GENERATOR;
105
-        else {
106
-            /* Check g^q == 1 mod p */
107
-            if (!BN_mod_exp(t1, dh->g, dh->q, dh->p, ctx))
108
-                goto err;
109
-            if (!BN_is_one(t1))
110
-                *ret |= DH_NOT_SUITABLE_GENERATOR;
111
-        }
112
-        r = BN_is_prime_ex(dh->q, BN_prime_checks, ctx, NULL);
113
-        if (r < 0)
114
-            goto err;
115
-        if (!r)
116
-            *ret |= DH_CHECK_Q_NOT_PRIME;
117
-        /* Check p == 1 mod q  i.e. q divides p - 1 */
118
-        if (!BN_div(t1, t2, dh->p, dh->q, ctx))
119
-            goto err;
120
-        if (!BN_is_one(t2))
121
-            *ret |= DH_CHECK_INVALID_Q_VALUE;
122
-        if (dh->j && BN_cmp(dh->j, t1))
123
-            *ret |= DH_CHECK_INVALID_J_VALUE;
124
-
125
-    } else if (BN_is_word(dh->g, DH_GENERATOR_2)) {
126
-        l = BN_mod_word(dh->p, 24);
127
-        if (l == (BN_ULONG)-1)
128
-            goto err;
129
-        if (l != 11)
130
-            *ret |= DH_NOT_SUITABLE_GENERATOR;
131
-    } else if (BN_is_word(dh->g, DH_GENERATOR_5)) {
132
-        l = BN_mod_word(dh->p, 10);
133
-        if (l == (BN_ULONG)-1)
134
-            goto err;
135
-        if ((l != 3) && (l != 7))
136
-            *ret |= DH_NOT_SUITABLE_GENERATOR;
137
-    } else
138
-        *ret |= DH_UNABLE_TO_CHECK_GENERATOR;
139
-
140
-    r = BN_is_prime_ex(dh->p, BN_prime_checks, ctx, NULL);
141
-    if (r < 0)
142
-        goto err;
143
-    if (!r)
144
-        *ret |= DH_CHECK_P_NOT_PRIME;
145
-    else if (!dh->q) {
146
-        if (!BN_rshift1(t1, dh->p))
147
-            goto err;
148
-        r = BN_is_prime_ex(t1, BN_prime_checks, ctx, NULL);
149
-        if (r < 0)
150
-            goto err;
151
-        if (!r)
152
-            *ret |= DH_CHECK_P_NOT_SAFE_PRIME;
153
-    }
154
-    ok = 1;
155
- err:
156
-    if (ctx != NULL) {
157
-        BN_CTX_end(ctx);
158
-        BN_CTX_free(ctx);
159
-    }
160
-    return (ok);
161
-}
162
-#else
163
 int Cryptography_DH_check(const DH *dh, int *ret) {
164
     return DH_check(dh, ret);
165
 }
166
-#endif
167
 
168
 /* These functions were added in OpenSSL 1.1.0f commit d0c50e80a8 */
169
 /* Define our own to simplify support across all versions. */
170
--- src/_cffi_src/openssl/evp.py.orig	2021-08-24 17:02:37 UTC
171
+++ src/_cffi_src/openssl/evp.py
172
@@ -203,7 +203,20 @@ int (*EVP_PKEY_set1_tls_encodedpoint)(EVP_PKEY *, cons
173
                                       size_t) = NULL;
174
 #endif
175
 
176
-#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_111
177
+#if CRYPTOGRAPHY_IS_LIBRESSL
178
+static const long Cryptography_HAS_ONESHOT_EVP_DIGEST_SIGN_VERIFY = 1;
179
+static const long Cryptography_HAS_RAW_KEY = 0;
180
+static const long Cryptography_HAS_EVP_DIGESTFINAL_XOF = 0;
181
+int (*EVP_DigestFinalXOF)(EVP_MD_CTX *, unsigned char *, size_t) = NULL;
182
+EVP_PKEY *(*EVP_PKEY_new_raw_private_key)(int, ENGINE *, const unsigned char *,
183
+                                       size_t) = NULL;
184
+EVP_PKEY *(*EVP_PKEY_new_raw_public_key)(int, ENGINE *, const unsigned char *,
185
+                                      size_t) = NULL;
186
+int (*EVP_PKEY_get_raw_private_key)(const EVP_PKEY *, unsigned char *,
187
+                                    size_t *) = NULL;
188
+int (*EVP_PKEY_get_raw_public_key)(const EVP_PKEY *, unsigned char *,
189
+                                   size_t *) = NULL;
190
+#elif CRYPTOGRAPHY_OPENSSL_LESS_THAN_111
191
 static const long Cryptography_HAS_ONESHOT_EVP_DIGEST_SIGN_VERIFY = 0;
192
 static const long Cryptography_HAS_RAW_KEY = 0;
193
 static const long Cryptography_HAS_EVP_DIGESTFINAL_XOF = 0;
194
--- src/_cffi_src/openssl/fips.py.orig	2021-08-24 17:17:17 UTC
195
+++ src/_cffi_src/openssl/fips.py
196
@@ -17,11 +17,5 @@ int FIPS_mode(void);
197
 """
198
 
199
 CUSTOMIZATIONS = """
200
-#if CRYPTOGRAPHY_IS_LIBRESSL
201
-static const long Cryptography_HAS_FIPS = 0;
202
-int (*FIPS_mode_set)(int) = NULL;
203
-int (*FIPS_mode)(void) = NULL;
204
-#else
205
 static const long Cryptography_HAS_FIPS = 1;
206
-#endif
207
 """
208
--- src/_cffi_src/openssl/ocsp.py.orig	2021-08-24 17:17:17 UTC
209
+++ src/_cffi_src/openssl/ocsp.py
210
@@ -77,7 +77,6 @@ int i2d_OCSP_RESPDATA(OCSP_RESPDATA *, unsigned char *
211
 
212
 CUSTOMIZATIONS = """
213
 #if ( \
214
-    !CRYPTOGRAPHY_IS_LIBRESSL && \
215
     CRYPTOGRAPHY_OPENSSL_LESS_THAN_110J \
216
     )
217
 /* These structs come from ocsp_lcl.h and are needed to de-opaque the struct
218
@@ -104,62 +103,15 @@ struct ocsp_basic_response_st {
219
 };
220
 #endif
221
 
222
-#if CRYPTOGRAPHY_IS_LIBRESSL
223
-/* These functions are all taken from ocsp_cl.c in OpenSSL 1.1.0 */
224
-const OCSP_CERTID *OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *single)
225
-{
226
-    return single->certId;
227
-}
228
-const Cryptography_STACK_OF_X509 *OCSP_resp_get0_certs(
229
-    const OCSP_BASICRESP *bs)
230
-{
231
-    return bs->certs;
232
-}
233
-int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
234
-                      const ASN1_OCTET_STRING **pid,
235
-                      const X509_NAME **pname)
236
-{
237
-    const OCSP_RESPID *rid = bs->tbsResponseData->responderId;
238
-
239
-    if (rid->type == V_OCSP_RESPID_NAME) {
240
-        *pname = rid->value.byName;
241
-        *pid = NULL;
242
-    } else if (rid->type == V_OCSP_RESPID_KEY) {
243
-        *pid = rid->value.byKey;
244
-        *pname = NULL;
245
-    } else {
246
-        return 0;
247
-    }
248
-    return 1;
249
-}
250
-const ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(
251
-    const OCSP_BASICRESP* bs)
252
-{
253
-    return bs->tbsResponseData->producedAt;
254
-}
255
-const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs)
256
-{
257
-    return bs->signature;
258
-}
259
-#endif
260
-
261
 #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_110J
262
 const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs)
263
 {
264
-#if CRYPTOGRAPHY_IS_LIBRESSL
265
-    return bs->signatureAlgorithm;
266
-#else
267
     return &bs->signatureAlgorithm;
268
-#endif
269
 }
270
 
271
 const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs)
272
 {
273
-#if CRYPTOGRAPHY_IS_LIBRESSL
274
-    return bs->tbsResponseData;
275
-#else
276
     return &bs->tbsResponseData;
277
-#endif
278
 }
279
 #endif
280
 """
281
--- src/_cffi_src/openssl/ssl.py.orig	2021-08-24 17:17:17 UTC
282
+++ src/_cffi_src/openssl/ssl.py
283
@@ -515,12 +515,7 @@ CUSTOMIZATIONS = """
284
 // users have upgraded. PersistentlyDeprecated2020
285
 static const long Cryptography_HAS_TLSEXT_HOSTNAME = 1;
286
 
287
-#if CRYPTOGRAPHY_IS_LIBRESSL
288
-static const long Cryptography_HAS_VERIFIED_CHAIN = 0;
289
-Cryptography_STACK_OF_X509 *(*SSL_get0_verified_chain)(const SSL *) = NULL;
290
-#else
291
 static const long Cryptography_HAS_VERIFIED_CHAIN = 1;
292
-#endif
293
 
294
 #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_111
295
 static const long Cryptography_HAS_KEYLOG = 0;
296
@@ -586,8 +581,6 @@ static const long TLS_ST_OK = 0;
297
 #endif
298
 
299
 #if CRYPTOGRAPHY_IS_LIBRESSL
300
-static const long SSL_OP_NO_DTLSv1 = 0;
301
-static const long SSL_OP_NO_DTLSv1_2 = 0;
302
 long (*DTLS_set_link_mtu)(SSL *, long) = NULL;
303
 long (*DTLS_get_link_min_mtu)(SSL *) = NULL;
304
 #endif
305
--- src/_cffi_src/openssl/x509.py.orig	2021-08-24 17:02:37 UTC
306
+++ src/_cffi_src/openssl/x509.py
307
@@ -276,33 +276,8 @@ void X509_REQ_get0_signature(const X509_REQ *, const A
308
 """
309
 
310
 CUSTOMIZATIONS = """
311
-#if CRYPTOGRAPHY_IS_LIBRESSL
312
-int i2d_re_X509_tbs(X509 *x, unsigned char **pp)
313
-{
314
-    /* in 1.0.2+ this function also sets x->cert_info->enc.modified = 1
315
-       but older OpenSSLs don't have the enc ASN1_ENCODING member in the
316
-       X509 struct.  Setting modified to 1 marks the encoding
317
-       (x->cert_info->enc.enc) as invalid, but since the entire struct isn't
318
-       present we don't care. */
319
-    return i2d_X509_CINF(x->cert_info, pp);
320
-}
321
-#endif
322
-
323
 /* Being kept around for pyOpenSSL */
324
 X509_REVOKED *Cryptography_X509_REVOKED_dup(X509_REVOKED *rev) {
325
     return X509_REVOKED_dup(rev);
326
 }
327
-/* Added in 1.1.0 but we need it in all versions now due to the great
328
-   opaquing. */
329
-#if CRYPTOGRAPHY_IS_LIBRESSL
330
-int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp)
331
-{
332
-    req->req_info->enc.modified = 1;
333
-    return i2d_X509_REQ_INFO(req->req_info, pp);
334
-}
335
-int i2d_re_X509_CRL_tbs(X509_CRL *crl, unsigned char **pp) {
336
-    crl->crl->enc.modified = 1;
337
-    return i2d_X509_CRL_INFO(crl->crl, pp);
338
-}
339
-#endif
340
 """
(-)a/security/py-cryptography/files/patch-setup.py (-55 lines)
Removed Link Here
1
--- setup.py.orig	2021-03-25 17:19:57 UTC
2
+++ setup.py
3
@@ -10,23 +10,7 @@ import sys
4
 
5
 from setuptools import find_packages, setup
6
 
7
-try:
8
-    from setuptools_rust import RustExtension
9
-except ImportError:
10
-    print(
11
-        """
12
-        =============================DEBUG ASSISTANCE==========================
13
-        If you are seeing an error here please try the following to
14
-        successfully install cryptography:
15
 
16
-        Upgrade to the latest pip and try again. This will fix errors for most
17
-        users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
18
-        =============================DEBUG ASSISTANCE==========================
19
-        """
20
-    )
21
-    raise
22
-
23
-
24
 base_dir = os.path.dirname(__file__)
25
 src_dir = os.path.join(base_dir, "src")
26
 
27
@@ -41,9 +25,8 @@ with open(os.path.join(src_dir, "cryptography", "__abo
28
 
29
 # `install_requirements` and `setup_requirements` must be kept in sync with
30
 # `pyproject.toml`
31
-setuptools_rust = "setuptools-rust>=0.11.4"
32
 install_requirements = ["cffi>=1.12"]
33
-setup_requirements = install_requirements + [setuptools_rust]
34
+setup_requirements = install_requirements
35
 
36
 if os.environ.get("CRYPTOGRAPHY_DONT_BUILD_RUST"):
37
     rust_extensions = []
38
@@ -129,9 +112,6 @@ try:
39
                 "twine >= 1.12.0",
40
                 "sphinxcontrib-spelling >= 4.0.1",
41
             ],
42
-            "sdist": [
43
-                setuptools_rust,
44
-            ],
45
             "pep8test": [
46
                 "black",
47
                 "flake8",
48
@@ -149,7 +129,6 @@ try:
49
             "src/_cffi_src/build_openssl.py:ffi",
50
             "src/_cffi_src/build_padding.py:ffi",
51
         ],
52
-        rust_extensions=rust_extensions,
53
     )
54
 except:  # noqa: E722
55
     # Note: This is a bare exception that re-raises so that we don't interfere

Return to bug 254853