~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/crypto/x509/verify.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
                chains = append(chains, appendToFreshChain(currentChain, root))
172
172
        }
173
173
 
 
174
nextIntermediate:
174
175
        for _, intermediateNum := range opts.Intermediates.findVerifiedParents(c) {
175
176
                intermediate := opts.Intermediates.certs[intermediateNum]
 
177
                for _, cert := range currentChain {
 
178
                        if cert == intermediate {
 
179
                                continue nextIntermediate
 
180
                        }
 
181
                }
176
182
                err = intermediate.isValid(intermediateCertificate, opts)
177
183
                if err != nil {
178
184
                        continue
202
208
                return false
203
209
        }
204
210
 
205
 
        patternParts := strings.Split(pattern, ".", -1)
206
 
        hostParts := strings.Split(host, ".", -1)
 
211
        patternParts := strings.Split(pattern, ".")
 
212
        hostParts := strings.Split(host, ".")
207
213
 
208
214
        if len(patternParts) != len(hostParts) {
209
215
                return false