github.com/zmap/zcrypto@v0.0.0-20240512203510-0fef58d9a9db/ct/x509/root_js.go (about)

     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 js && wasm
     6  // +build js,wasm
     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  }