From 0406eeaacb9c9f927cd1625a2cda72427be9a6dc Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 13 Jul 2010 13:34:04 +0200 Subject: Support different encoding types in certificate.get_encoding() --- src/pki/commands/req.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pki/commands/req.c') diff --git a/src/pki/commands/req.c b/src/pki/commands/req.c index 8335f2595..c983a324d 100644 --- a/src/pki/commands/req.c +++ b/src/pki/commands/req.c @@ -128,8 +128,7 @@ static int req() error = "generating certificate request failed"; goto end; } - encoding = cert->get_encoding(cert); - if (!encoding.ptr) + if (!cert->get_encoding(cert, CERT_ASN1_DER, &encoding)) { error = "encoding certificate request failed"; goto end; -- cgit v1.2.3