Skip to content

Commit

Permalink
secsipid.go: function to get the value for integer options
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Mar 14, 2024
1 parent 7df513a commit e91afb0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions secsipid/secsipid.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,19 @@ func SJWTLibOptSetN(optname string, optval int) int {
return SJWTRetErr
}

// SJWTLibOptGetN --
func SJWTLibOptGetN(optname string) int {
switch optname {
case "CacheExpires":
return globalLibOptions.cacheExpire
case "CertVerify":
return globalLibOptions.certVerify
case "AttrsVerify":
return globalLibOptions.attrsVerify
}
return SJWTRetErr
}

// SJWTLibOptSetV --
func SJWTLibOptSetV(optnameval string) int {
optArray := strings.SplitN(optnameval, "=", 2)
Expand Down

0 comments on commit e91afb0

Please sign in to comment.