Skip to content

Commit

Permalink
Remove debug print statements from findOtherNameValue
Browse files Browse the repository at this point in the history
Removed two debug print statements that printed extension IDs and other name types. These statements were cluttering the output and are not necessary for the final implementation.
  • Loading branch information
rolandgroen committed Oct 14, 2024
1 parent 109fad4 commit 7e88b99
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions x509_cert/x509_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func FindOtherName(certificate *x509.Certificate) (string, SanTypeName, error) {
func findOtherNameValue(cert *x509.Certificate) (string, error) {
value := ""
for _, extension := range cert.Extensions {
fmt.Println("extension.Id: ", extension.Id)
if extension.Id.Equal(SubjectAlternativeNameType) {
err := forEachSAN(extension.Value, func(tag int, data []byte) error {
if tag != 0 {
Expand All @@ -48,7 +47,6 @@ func findOtherNameValue(cert *x509.Certificate) (string, error) {
if err != nil {
return fmt.Errorf("could not parse requested other SAN: %v", err)
}
fmt.Println("other.TypeID: ", other.TypeID, OtherNameType)
if other.TypeID.Equal(OtherNameType) {
_, err = asn1.Unmarshal(other.Value.Bytes, &value)
if err != nil {
Expand Down

0 comments on commit 7e88b99

Please sign in to comment.