mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
feat: remove deprecated use of BuildNameToCertificate
This commit is contained in:
@ -158,13 +158,6 @@ func (t *TLS) GetConfig() (tlsConfig *tls.Config, err error) {
|
|||||||
tlsConfig.RootCAs = caCertPool
|
tlsConfig.RootCAs = caCertPool
|
||||||
tlsConfig.ClientCAs = caCertPool
|
tlsConfig.ClientCAs = caCertPool
|
||||||
|
|
||||||
/* This is deprecated:
|
|
||||||
* SA1019: tlsConfig.BuildNameToCertificate is deprecated:
|
|
||||||
* NameToCertificate only allows associating a single certificate with a given name.
|
|
||||||
* Leave that field nil to let the library select the first compatible chain from Certificates.
|
|
||||||
*/
|
|
||||||
tlsConfig.BuildNameToCertificate() // nolint[staticcheck]
|
|
||||||
|
|
||||||
return tlsConfig, err
|
return tlsConfig, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,6 +24,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
|
|||||||
* GODT-912 Changed scroll bar behaviour in settings tab
|
* GODT-912 Changed scroll bar behaviour in settings tab
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
* GODT-208 Remove deprecated use of BuildNameToCertificate.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* GODT-97 Don't log errors caused by SELECT "".
|
* GODT-97 Don't log errors caused by SELECT "".
|
||||||
|
|||||||
Reference in New Issue
Block a user