summaryrefslogtreecommitdiff
path: root/src/pki/commands/acert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pki/commands/acert.c')
-rw-r--r--src/pki/commands/acert.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pki/commands/acert.c b/src/pki/commands/acert.c
index d1ea5c65e..4cbe06c9e 100644
--- a/src/pki/commands/acert.c
+++ b/src/pki/commands/acert.c
@@ -228,6 +228,11 @@ static int acert()
goto end;
}
scheme = get_signature_scheme(private, digest, pss);
+ if (!scheme)
+ {
+ error = "no signature scheme found";
+ goto end;
+ }
ac = lib->creds->create(lib->creds,
CRED_CERTIFICATE, CERT_X509_AC,