mirror of
https://github.com/nabbar/golib.git
synced 2025-10-18 21:54:36 +08:00
Bump dependancies
- AWS SDK to release v1.0.0 - other dependancies Fix Packages : - AWS : fix validator function, rules, config model - Certificates : fix func NewFrom - HTTPServer: fix IsRunning Fix other : - Fix CI/CD job to prevent alert on files modified - Fix missing licence comment header
This commit is contained in:

committed by
Nicolas JUHEL

parent
d46a10bb82
commit
1249f319bc
@@ -59,9 +59,12 @@ func (c *config) checkFile(pemFiles ...string) liberr.Error {
|
||||
if f == "" {
|
||||
return ErrorParamsEmpty.Error(nil)
|
||||
}
|
||||
|
||||
if _, e := os.Stat(f); e != nil {
|
||||
return ErrorFileStat.ErrorParent(e)
|
||||
}
|
||||
|
||||
/* #nosec */
|
||||
b, e := ioutil.ReadFile(f)
|
||||
if e != nil {
|
||||
return ErrorFileRead.ErrorParent(e)
|
||||
@@ -188,6 +191,7 @@ func (c *config) AddCertificatePairFile(keyFile, crtFile string) liberr.Error {
|
||||
}
|
||||
|
||||
func (c *config) TlsConfig(serverName string) *tls.Config {
|
||||
/* #nosec */
|
||||
cnf := &tls.Config{
|
||||
InsecureSkipVerify: false,
|
||||
}
|
||||
|
Reference in New Issue
Block a user