Skip to content

Commit 72325e2

Browse files
committed
v3.4.4-2
1 parent aa1c994 commit 72325e2

File tree

5 files changed

+37
-19
lines changed

5 files changed

+37
-19
lines changed

.github/workflows/wheel.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
workflow_dispatch:
55

66
env:
7-
OPENSSL_VER: openssl-1.1.1w
7+
OPENSSL_VER: openssl-3.0.17
88
OPENLDAP_VER: openldap-2.4.59
99
PYTHONLDAP_VER: python-ldap-3.4.4
1010
CIBW_TEST_COMMAND: python -c"import ldap;print(ldap.__version__)"
11-
CIBW_SKIP: "pp* cp36* cp37* cp38* cp39*"
11+
CIBW_SKIP: "cp38* cp39* cp310*"
1212
MSBUILDTREATHIGHERTOOLSVERSIONASCURRENT: 1
1313

1414
jobs:
@@ -17,12 +17,12 @@ jobs:
1717
runs-on: ${{ matrix.os }}
1818
strategy:
1919
matrix:
20-
os: [windows-2022]
20+
os: [windows-latest]
2121
env:
2222
VS_PLATFORM: x64
2323
OPENSSL_CONFIG: VC-WIN64A-masm
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
- uses: microsoft/[email protected]
2727
with:
2828
msbuild-architecture: x64
@@ -35,7 +35,7 @@ jobs:
3535
shell: cmd
3636
- run: build_python-ldap.cmd
3737
shell: cmd
38-
- uses: pypa/cibuildwheel@v2.22.0
38+
- uses: pypa/cibuildwheel@v3.1.4
3939
env:
4040
CIBW_ARCHS_WINDOWS: AMD64
4141
- uses: actions/upload-artifact@v4
@@ -47,12 +47,12 @@ jobs:
4747
runs-on: ${{ matrix.os }}
4848
strategy:
4949
matrix:
50-
os: [windows-2022]
50+
os: [windows-latest]
5151
env:
5252
VS_PLATFORM: Win32
5353
OPENSSL_CONFIG: VC-WIN32
5454
steps:
55-
- uses: actions/checkout@v4
55+
- uses: actions/checkout@v5
5656
- uses: microsoft/[email protected]
5757
with:
5858
msbuild-architecture: x86
@@ -66,7 +66,7 @@ jobs:
6666
shell: cmd
6767
- run: build_python-ldap.cmd
6868
shell: cmd
69-
- uses: pypa/cibuildwheel@v2.22.0
69+
- uses: pypa/cibuildwheel@v3.1.4
7070
env:
7171
CIBW_ARCHS_WINDOWS: x86
7272
- uses: actions/upload-artifact@v4
@@ -79,12 +79,12 @@ jobs:
7979
# runs-on: ${{ matrix.os }}
8080
# strategy:
8181
# matrix:
82-
# os: [windows-2022]
82+
# os: [windows-latest]
8383
# env:
8484
# VS_PLATFORM: ARM64
8585
# OPENSSL_CONFIG: VC-WIN64-ARM
8686
# steps:
87-
# - uses: actions/checkout@v4
87+
# - uses: actions/checkout@v5
8888
# - uses: microsoft/[email protected]
8989
# with:
9090
# msbuild-architecture: arm64
@@ -93,7 +93,7 @@ jobs:
9393
# arch: amd64_arm64
9494
# - run: build.cmd
9595
# shell: cmd
96-
# - uses: pypa/cibuildwheel@v2.22.0
96+
# - uses: pypa/cibuildwheel@v3.1.4
9797
# env:
9898
# CIBW_SKIP: "pp* cp36* cp37* cp38* cp39* cp310*"
9999
# CIBW_ARCHS_WINDOWS: ARM64

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ Build [python-ldap](https://github.com/python-ldap/python-ldap) wheels for Windo
44

55
The wheels can be downloaded from the [Releases](https://github.com/cgohlke/python-ldap-build/releases) page.
66

7-
Install a wheel on the command line, for example for Python 3.13 64-bit:
7+
Install a wheel on the command line, for example for Python 3.14 64-bit:
88

9-
py.exe -3.13 -m pip install python_ldap-3.4.4-cp313-cp313-win_amd64.whl
9+
py.exe -3.14 -m pip install python_ldap-3.4.4-cp314-cp314-win_amd64.whl

build_openssl.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@echo on
33
setlocal
44

5-
:: set OPENSSL_VER=openssl-1.1.1w
5+
:: set OPENSSL_VER=openssl-3.0.17
66
:: set OPENSSL_CONFIG=VC-WIN64A-masm
77
:: set PATH=%PATH%;X:\Perl\bin
88

openldap.diff

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c
2+
index 498f805..00e8570 100644
3+
--- a/libraries/libldap/tls_o.c
4+
+++ b/libraries/libldap/tls_o.c
5+
@@ -655,7 +655,7 @@ tlso_get_cert( SSL *s )
6+
if (SSL_get_verify_result(s)) {
7+
return NULL;
8+
}
9+
- return SSL_get_peer_certificate(s);
10+
+ return SSL_get1_peer_certificate(s);
11+
}
12+
13+
static int
114
diff --git a/include/ac/socket.h b/include/ac/socket.h
215
index 7b9252d..f6344b9 100644
316
--- a/include/ac/socket.h

openssl.diff

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
2-
index f815a09b..320e09aa 100644
2+
index 280a75b2..481b24d8 100644
33
--- a/Configurations/10-main.conf
44
+++ b/Configurations/10-main.conf
5-
@@ -1281,7 +1281,7 @@ my %targets = (
5+
@@ -1362,11 +1362,11 @@ my %targets = (
6+
},
7+
release =>
8+
sub {
9+
- ($disabled{shared} ? "" : "/MD");
10+
+ ($disabled{shared} ? "/MD" : "/MD");
611
})),
712
defines => add(picker(default => [], # works as type cast
813
debug => [ "DEBUG", "_DEBUG" ])),
@@ -11,16 +16,16 @@ index f815a09b..320e09aa 100644
1116
# Following might/should appears controversial, i.e. defining
1217
# /MDd without evaluating $disabled{shared}. It works in
1318
# non-shared build because static library is compiled with /Zl
14-
@@ -1294,7 +1294,7 @@ my %targets = (
19+
@@ -1379,7 +1379,7 @@ my %targets = (
1520
# prefer [non-debug] openssl.exe to be free from Micorosoft RTL
1621
# redistributable.
1722
bin_cflags => add(picker(debug => "/MDd",
1823
- release => sub { $disabled{shared} ? "/MT" : () },
19-
+ release => sub { $disabled{shared} ? "/MD" : () },
24+
+ release => sub { $disabled{shared} ? "/MD" : "/MD" },
2025
)),
2126
bin_lflags => add("/subsystem:console /opt:ref"),
2227
ex_libs => add(sub {
23-
@@ -1363,7 +1363,7 @@ my %targets = (
28+
@@ -1447,7 +1447,7 @@ my %targets = (
2429
combine('/GF /Gy',
2530
sub { vc_wince_info()->{cflags}; },
2631
sub { `cl 2>&1` =~ /Version ([0-9]+)\./ && $1>=14

0 commit comments

Comments
 (0)