-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added certificate management #71
Conversation
|
||
// Check for numerical group ID | ||
if gid, err := strconv.ParseUint(c.Group, 0, 32); err == nil { | ||
return int(gid), nil |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.ParseUint
} else if gid, err := strconv.ParseUint(group.Gid, 0, 32); err != nil { | ||
return -1, err | ||
} else { | ||
return int(gid), nil |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.ParseUint
} | ||
|
||
// Open file | ||
fh, err := os.Open(pathForCert) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
This path depends on a user-provided value.
// if the folder exists | ||
func (c *certstore) pathForKey(serial string) (string, error) { | ||
path := filepath.Join(c.dataPath, serial+certExt) | ||
if info, err := os.Stat(path); err != nil { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
This path depends on a user-provided value.
No description provided.