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:
3 files changed
+14
-12
No files matched your search
+3
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user