Skip to content

Commit

Permalink
Merge pull request #113 from projectdiscovery/ztls-enable-permissive-…
Browse files Browse the repository at this point in the history
…parsing

Enable zcrypto permissive parsing
  • Loading branch information
Mzack9999 committed May 2, 2023
2 parents be8b763 + e60009d commit 102caf7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fastdialer/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ import (
retryabledns "github.com/projectdiscovery/retryabledns"
cryptoutil "github.com/projectdiscovery/utils/crypto"
iputil "github.com/projectdiscovery/utils/ip"
"github.com/zmap/zcrypto/encoding/asn1"
ztls "github.com/zmap/zcrypto/tls"
"golang.org/x/net/proxy"
)

func init() {
// enable permissive parsing for ztls, so that it can allow permissive parsing for X509 certificates
asn1.AllowPermissiveParsing = true
}

// Dialer structure containing data information
type Dialer struct {
options *Options
Expand Down

0 comments on commit 102caf7

Please sign in to comment.