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