aboutsummaryrefslogtreecommitdiff
path: root/flags.go
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2015-03-23 09:43:20 +0100
committerGibheer <gibheer@gmail.com>2015-03-23 09:43:20 +0100
commit885340ef8f27f81c626626798cdbcd63e2f992b6 (patch)
treed90f5ec96e19a8cafa4660e2dc81f329dd2bb491 /flags.go
parent97baed49b85761e96562d259db2624eba43d91df (diff)
rename FlagCertificateData
This makes it easier to distinguish between the csr data and cert data.
Diffstat (limited to 'flags.go')
-rw-r--r--flags.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/flags.go b/flags.go
index 3b65d52..745ba39 100644
--- a/flags.go
+++ b/flags.go
@@ -141,7 +141,7 @@ certificate requests and certificates and sign/verify messages.`,
// private key specific stuff
FlagPrivateKeyGeneration privateKeyGenerationFlags
// a certificate filled with the parameters
- FlagCertificateData *pki.CertificateData
+ FlagCertificateRequestData *pki.CertificateData
// the certificate sign request
FlagCertificateSignRequest *pki.CertificateRequest
)
@@ -392,10 +392,10 @@ func InitFlagCertificateFields(cmd *Command) {
// parse the certificate fields into a raw certificate
func checkCertificateFields() error {
- FlagCertificateData = pki.NewCertificateData()
+ FlagCertificateRequestData = pki.NewCertificateData()
// convert the automatic flags
container_type := reflect.ValueOf(&flagContainer.certificateFlags.automatic).Elem()
- cert_data_type := reflect.ValueOf(&FlagCertificateData.Subject).Elem()
+ cert_data_type := reflect.ValueOf(&FlagCertificateRequestData.Subject).Elem()
for _, field := range []string{"Country", "Organization", "OrganizationalUnit",
"Locality", "Province", "StreetAddress", "PostalCode"} {
@@ -406,7 +406,7 @@ func checkCertificateFields() error {
}
// convert the manual flags
- data := FlagCertificateData
+ data := FlagCertificateRequestData
raw_data := flagContainer.certificateFlags.manual
data.Subject.SerialNumber = raw_data.serialNumber
data.Subject.CommonName = raw_data.commonName