summaryrefslogtreecommitdiff
path: root/libgo/go/crypto/x509/pkix/pkix.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/crypto/x509/pkix/pkix.go')
-rw-r--r--libgo/go/crypto/x509/pkix/pkix.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/crypto/x509/pkix/pkix.go b/libgo/go/crypto/x509/pkix/pkix.go
index 266fd557a52..332a3946212 100644
--- a/libgo/go/crypto/x509/pkix/pkix.go
+++ b/libgo/go/crypto/x509/pkix/pkix.go
@@ -43,6 +43,8 @@ type Name struct {
Locality, Province []string
StreetAddress, PostalCode []string
SerialNumber, CommonName string
+
+ Names []AttributeTypeAndValue
}
func (n *Name) FillFromRDNSequence(rdns *RDNSequence) {
@@ -51,6 +53,7 @@ func (n *Name) FillFromRDNSequence(rdns *RDNSequence) {
continue
}
atv := rdn[0]
+ n.Names = append(n.Names, atv)
value, ok := atv.Value.(string)
if !ok {
continue