mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-27 12:16:42 +00:00
GODT-1779: Remove go-imap
This commit is contained in:
19
internal/vault/certs.go
Normal file
19
internal/vault/certs.go
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user