mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 00:56:47 +00:00
20 lines
417 B
Go
20 lines
417 B
Go
package vault
|
|
|
|
func (vault *Vault) GetBridgeTLSCert() []byte {
|
|
return vault.get().Certs.Bridge.Cert
|
|
}
|
|
|
|
func (vault *Vault) GetBridgeTLSKey() []byte {
|
|
return vault.get().Certs.Bridge.Key
|
|
}
|
|
|
|
func (vault *Vault) GetCertsInstalled() bool {
|
|
return vault.get().Certs.Installed
|
|
}
|
|
|
|
func (vault *Vault) SetCertsInstalled(installed bool) error {
|
|
return vault.mod(func(data *Data) {
|
|
data.Certs.Installed = installed
|
|
})
|
|
}
|