Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@ import (
"encoding/base64"
"encoding/csv"
"fmt"
"github.com/zmap/zcrypto/encoding/asn1"
"github.com/zmap/zcrypto/x509/pkix"
"io/ioutil"
"os"
"strconv"
"strings"
"time"

log "github.com/sirupsen/logrus"
"github.com/zmap/zcrypto/encoding/asn1"
"github.com/zmap/zcrypto/tls"
"github.com/zmap/zcrypto/x509"
"github.com/zmap/zcrypto/x509/pkix"
)

func init() {
asn1.AllowPermissiveParsing = true
pkix.LegacyNameString = true
}

// Shared code for TLS scans.
// Example usage:
// (include TLSFlags in ScanFlags implementation)
Expand Down Expand Up @@ -149,9 +154,6 @@ func (t *TLSFlags) GetTLSConfigForTarget(target *ScanTarget) (*tls.Config, error
}
}

asn1.AllowPermissiveParsing = true
pkix.LegacyNameString = true

if t.NextProtos != "" {
// TODO: Different format?
ret.NextProtos = getCSV(t.NextProtos)
Expand Down
Loading