Support different encoding types in certificate.get_encoding()

This commit is contained in:
Martin Willi
2010-07-13 13:53:20 +02:00
parent da9724e6d0
commit 0406eeaacb
27 changed files with 239 additions and 102 deletions
+1 -2
View File
@@ -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;