remove unnecessary dependency
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
2
go.mod
2
go.mod
@@ -2,8 +2,6 @@ module go-authcheck
|
|||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
require github.com/korylprince/go-ad-auth/v3 v3.3.0
|
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
|
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
|
||||||
github.com/go-asn1-ber/asn1-ber v1.5.4 // indirect
|
github.com/go-asn1-ber/asn1-ber v1.5.4 // indirect
|
||||||
|
1
main.go
1
main.go
@@ -159,6 +159,7 @@ func main() {
|
|||||||
// Get the certificate from the file
|
// Get the certificate from the file
|
||||||
cpb, _ := pem.Decode(cf)
|
cpb, _ := pem.Decode(cf)
|
||||||
crt, err := x509.ParseCertificate(cpb.Bytes)
|
crt, err := x509.ParseCertificate(cpb.Bytes)
|
||||||
|
//fmt.Printf("Loaded certificate with subject %s\n", crt.Subject)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
output.AuthSuccess = false
|
output.AuthSuccess = false
|
||||||
|
Reference in New Issue
Block a user