root_js.go 486 B

12345678910111213141516171819
  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. //go:build js && wasm
  5. // +build js,wasm
  6. package x509
  7. // Possible certificate files; stop after finding one.
  8. var certFiles = []string{}
  9. func loadSystemRoots() (*CertPool, error) {
  10. return NewCertPool(), nil
  11. }
  12. func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
  13. return nil, nil
  14. }