aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-11-27 09:56:07 +0000
committerGravatar Sadie Powell2025-11-27 09:57:30 +0000
commitf09a2865c7ef23ba4067cf89da925f0d642f9532 (patch)
treeccbca50ec9088fccd086354a667899237b9bfff1
parentTrim down genssl and add a warning against using it for client. (diff)
Fix genssl with newer versions of GnuTLS.
-rwxr-xr-xtools/genssl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/genssl b/tools/genssl
index ed8664640..bcf2133d2 100755
--- a/tools/genssl
+++ b/tools/genssl
@@ -57,7 +57,7 @@ if (scalar @ARGV < 1 || $ARGV[0] !~ /^(?:auto|gnutls|openssl)$/i) {
my $certtool = $^O eq 'darwin' ? 'gnutls-certtool' : 'certtool';
# Check whether the user has the required tools installed.
-my $has_gnutls = `$certtool --version v 2>/dev/null`;
+my $has_gnutls = !system "$certtool --help 2>/dev/null";
my $has_openssl = !system 'openssl version >/dev/null 2>&1';
# The framework the user has specified.