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

« back to all changes in this revision

Viewing changes to src/pkg/crypto/tls/conn.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:
790
790
        c.handshakeMutex.Lock()
791
791
        defer c.handshakeMutex.Unlock()
792
792
        if !c.isClient {
793
 
                return os.ErrorString("VerifyHostname called on TLS server connection")
 
793
                return os.NewError("VerifyHostname called on TLS server connection")
794
794
        }
795
795
        if !c.handshakeComplete {
796
 
                return os.ErrorString("TLS handshake has not yet been performed")
 
796
                return os.NewError("TLS handshake has not yet been performed")
797
797
        }
798
798
        return c.peerCertificates[0].VerifyHostname(host)
799
799
}