From 01e40f8e3bd2791d3eb1933c27fd14cd43689fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Fri, 21 Aug 2026 13:46:01 +0200 Subject: [PATCH] Change: Optional passphrase parameter for creating a client cert credential The passphrase is only necessary if the client private key is encrypted. Otherwise it may be omitted. --- src/gsad_gmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gsad_gmp.c b/src/gsad_gmp.c index efd23a9e2..32b2cf2c7 100644 --- a/src/gsad_gmp.c +++ b/src/gsad_gmp.c @@ -4242,8 +4242,9 @@ create_credential_gmp (gvm_connection_t *connection, else if (str_equal (type, "cc")) { CHECK_VARIABLE_INVALID (certificate, "Create Credential"); - CHECK_VARIABLE_INVALID (passphrase, "Create Credential"); CHECK_VARIABLE_INVALID (private_key, "Create Credential"); + if (params_given (params, "passphrase")) + CHECK_VARIABLE_INVALID (passphrase, "Create Credential"); ret = gmpf ( connection, credentials, NULL, &entity, response_data,