OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [crypto/] [tls/] [root_test.go] - Blame information for rev 858

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
 
5
package tls
6
 
7
import (
8
        "testing"
9
)
10
 
11
var tlsServers = []string{
12
        "google.com:443",
13
        "github.com:443",
14
        "twitter.com:443",
15
}
16
 
17
func TestOSCertBundles(t *testing.T) {
18
        defaultRoots()
19
 
20
        if testing.Short() {
21
                t.Logf("skipping certificate tests in short mode")
22
                return
23
        }
24
 
25
        for _, addr := range tlsServers {
26
                conn, err := Dial("tcp", addr, nil)
27
                if err != nil {
28
                        t.Errorf("unable to verify %v: %v", addr, err)
29
                        continue
30
                }
31
                err = conn.Close()
32
                if err != nil {
33
                        t.Error(err)
34
                }
35
        }
36
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.