2023-01-27 13:37:20 -08:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2022-11-07 15:32:53 -08:00
|
|
|
|
|
|
|
package ipnlocal
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"errors"
|
2023-11-16 12:15:39 -08:00
|
|
|
"time"
|
2022-11-07 15:32:53 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
type TLSCertKeyPair struct {
|
|
|
|
CertPEM, KeyPEM []byte
|
|
|
|
}
|
|
|
|
|
2023-10-12 15:52:41 -07:00
|
|
|
func (b *LocalBackend) GetCertPEM(ctx context.Context, domain string) (*TLSCertKeyPair, error) {
|
2022-11-07 15:32:53 -08:00
|
|
|
return nil, errors.New("not implemented for js/wasm")
|
|
|
|
}
|
2023-11-16 12:15:39 -08:00
|
|
|
|
|
|
|
var errCertExpired = errors.New("cert expired")
|
|
|
|
|
|
|
|
type certStore interface{}
|
|
|
|
|
|
|
|
func getCertPEMCached(cs certStore, domain string, now time.Time) (p *TLSCertKeyPair, err error) {
|
|
|
|
return nil, errors.New("not implemented for js/wasm")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (b *LocalBackend) getCertStore() (certStore, error) {
|
|
|
|
return nil, errors.New("not implemented for js/wasm")
|
|
|
|
}
|