forked from yhirose/cpp-httplib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 5064373
test(meson): fix
* build(meson): bump minimum version to 0.62.0
This allows making some minor cleanups
* test(meson): fix SSLClientServerTest.* tests with OpenSSL 3.2.0
Since OpenSSL commit
<openssl/openssl@342e365>,
the default X.509 certificate format generated with the `openssl req`
command has been changed to X.509 v3 from X.509 v1.
For some reason, this change breaks cpp-httplib's SSLClientServerTest.*
tests.
To fix the test failures, this patch passes the '-x509v1' flag instead
of '-x509' when OpenSSL 3.2.0 or newer is detected. To detect the
version of a command line utility, Meson 0.62.0 or later is required.
Fixes <yhirose#1798>, but only for
the Meson build system.SSLClientServerTest.*
tests with OpenSSL 3.2.0 (yhirose#1940)1 parent 6c93aea commit 5064373
2 files changed
+11
-12
lines changedLines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | - | ||
16 | + | ||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 | - | ||
101 | + | ||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 | - | ||
106 | + | ||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 | - | ||
113 | - | ||
114 | - | ||
112 | + | ||
115 | 113 |
| |
116 | 114 |
| |
117 | 115 |
| |
|
Lines changed: 7 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | + | ||
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
| |||
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
34 | - | ||
35 | + | ||
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
| |||
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
47 | - | ||
48 | + | ||
48 | 49 |
| |
49 | 50 |
| |
50 | 51 |
| |
| |||
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
60 | - | ||
61 | + | ||
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
| |||
103 | 104 |
| |
104 | 105 |
| |
105 | 106 |
| |
106 | - | ||
107 | - | ||
108 | - | ||
107 | + | ||
108 | + | ||
109 | + | ||
109 | 110 |
| |
110 | 111 |
| |
111 | 112 |
| |
|
0 commit comments