cert: removed unused args from cert.GenCertPair

Since the cert pair is written with a subsequent call to
cert.WriteCertPair we can safely remove the two file paths from the
argument list of cert.GenCertPair.
This commit is contained in:
Andras Banki-Horvath committed 2023-02-06 17:11:56 +01:00
1 parent 0cf0a7dd3b
commit c3445e79d9
3 files changed
+14 -12

No files matched your search

+3 -3
View File
@@ -200,9 +200,9 @@ func IsOutdated(cert *x509.Certificate, tlsExtraIPs,
//
// This function is adapted from https://github.com/btcsuite/btcd and
// https://github.com/btcsuite/btcd/btcutil
func GenCertPair(org, certFile, keyFile string, tlsExtraIPs,
tlsExtraDomains []string, tlsDisableAutofill bool,
certValidity time.Duration) ([]byte, []byte, error) {
func GenCertPair(org string, tlsExtraIPs, tlsExtraDomains []string,
tlsDisableAutofill bool, certValidity time.Duration) (
[]byte, []byte, error) {
now := time.Now()
validUntil := now.Add(certValidity)