bx509: Fix CSR authorizer IPC plugin bug

When marking SANs authorized, mark the SAN, not some EKU, authorized!
This commit is contained in:
Nicolas Williams
2020-01-10 11:29:21 -06:00
parent 2b92d938ae
commit 8ef971786b

View File

@@ -260,7 +260,7 @@ mark_authorized(hx509_request csr)
hx509_san_type san_type;
ret = hx509_request_get_san(csr, i, &san_type, &s);
if (ret == 0)
hx509_request_authorize_eku(csr, i);
hx509_request_authorize_san(csr, i);
frees(&s);
}
return ret == HX509_NO_ITEM ? 0 : ret;