File: fix-995660-FTBFS-OpenSSL3.patch

package info (click to toggle)
clickhouse 18.16.1%2Bds-7.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 40,292 kB
  • sloc: cpp: 223,075; sql: 21,608; python: 6,596; sh: 4,299; ansic: 3,889; xml: 3,312; perl: 155; makefile: 57; asm: 34
file content (22 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Fix FTBFS with OpenSSL 3.0
 DH parameters needs to be minimum 512 bits. Test suite tries to generate 256
 bits, so it fails. The patch changes this to 512. Thanks Kurt for the analyis
 in the Debian bug report.
Author: Tobias Frost <tobi@debian.org>
Bug-Debian: https://bugs.debian.org/995660
Forwarded: no
Reviewed-by: <name and email of a reviewer, optional>
Last-Update: 2022-10-29 <YYYY-MM-DD, last update of the meta-information, optional>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/dbms/tests/clickhouse-test-server
+++ b/dbms/tests/clickhouse-test-server
@@ -69,7 +69,7 @@
 PRIVATEKEY=`$CLICKHOUSE_EXTRACT_CONFIG --key=openSSL.server.privateKeyFile`
 CERT=`$CLICKHOUSE_EXTRACT_CONFIG --key=openSSL.server.certificateFile`
 # Do not generate in case broken extract-config
-[ -n "$DHPARAM" ] && openssl dhparam -out $DHPARAM 256
+[ -n "$DHPARAM" ] && openssl dhparam -out $DHPARAM 512
 [ -n "$PRIVATEKEY" ] && [ -n "$CERT" ] && openssl req -subj "/CN=localhost" -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout $PRIVATEKEY -out $CERT
 
 if [ "$TEST_GDB" ] || [ "$GDB" ]; then