Skip to content

Commit 37ba9ac

Browse files
authored
Add support for WASI port (#1089)
Fix building when the new `wasip1` port is being used. This is a new target that will be introduced by go 1.21. For more details golang/go#58141 Signed-off-by: Flavio Castelli <[email protected]>
1 parent 7228dc2 commit 37ba9ac

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## HEAD
44

5+
### Add support for WASI port
6+
* Add build tags for wasip1 GOOS
7+
58
### Add support for IBM Z operating system z/OS
69
* Add build tags for zos
710

x509/root_wasip1.go

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright 2018 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+
//go:build wasip1
6+
// +build wasip1
7+
8+
package x509
9+
10+
// Possible certificate files; stop after finding one.
11+
var certFiles = []string{}
12+
13+
func loadSystemRoots() (*CertPool, error) {
14+
return NewCertPool(), nil
15+
}
16+
17+
func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
18+
return nil, nil
19+
}

0 commit comments

Comments
 (0)