aboutsummaryrefslogtreecommitdiffstats
path: root/src/pki/commands/self.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pki/commands/self.c')
-rw-r--r--src/pki/commands/self.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pki/commands/self.c b/src/pki/commands/self.c
index f6fb5704d..aebd883dd 100644
--- a/src/pki/commands/self.c
+++ b/src/pki/commands/self.c
@@ -193,8 +193,7 @@ static int self()
error = "generating certificate failed";
goto end;
}
- encoding = cert->get_encoding(cert);
- if (!encoding.ptr)
+ if (!cert->get_encoding(cert, CERT_ASN1_DER, &encoding))
{
error = "encoding certificate failed";
goto end;