Remove unused var from GenerateCSR

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2019-07-10 23:16:40 +01:00
parent 7edbd829c4
commit b99b492827
3 changed files with 3 additions and 3 deletions

View File

@ -305,7 +305,7 @@ func (a *Acme) createNewOrder(ctx context.Context, crt *v1alpha1.Certificate, te
log.V(4).Info("Creating new Order resource for Certificate")
csr, err := pki.GenerateCSR(a.issuer, crt)
csr, err := pki.GenerateCSR(crt)
if err != nil {
// TODO: what errors can be produced here? some error types might
// be permanent, and we should handle that properly.

View File

@ -72,7 +72,7 @@ func (v *Vault) Issue(ctx context.Context, crt *v1alpha1.Certificate) (*issuer.I
/// BEGIN building CSR
// TODO: we should probably surface some of these errors to users
template, err := pki.GenerateCSR(v.issuer, crt)
template, err := pki.GenerateCSR(crt)
if err != nil {
return nil, err
}

View File

@ -113,7 +113,7 @@ var serialNumberLimit = new(big.Int).Lsh(big.NewInt(1), 128)
// by issuers that utilise CSRs to obtain Certificates.
// The CSR will not be signed, and should be passed to either EncodeCSR or
// to the x509.CreateCertificateRequest function.
func GenerateCSR(issuer v1alpha1.GenericIssuer, crt *v1alpha1.Certificate) (*x509.CertificateRequest, error) {
func GenerateCSR(crt *v1alpha1.Certificate) (*x509.CertificateRequest, error) {
commonName := CommonNameForCertificate(crt)
dnsNames := DNSNamesForCertificate(crt)
iPAddresses := IPAddressesForCertificate(crt)