Support different encoding types in certificate.get_encoding()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user