File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,24 @@ import (
4
4
"encoding/base64"
5
5
"encoding/csv"
6
6
"fmt"
7
+ "github.com/zmap/zcrypto/encoding/asn1"
8
+ "github.com/zmap/zcrypto/x509/pkix"
7
9
"io/ioutil"
8
10
"os"
9
11
"strconv"
10
12
"strings"
11
13
"time"
12
14
13
15
log "github.com/sirupsen/logrus"
14
- "github.com/zmap/zcrypto/encoding/asn1"
15
16
"github.com/zmap/zcrypto/tls"
16
17
"github.com/zmap/zcrypto/x509"
17
- "github.com/zmap/zcrypto/x509/pkix"
18
18
)
19
19
20
+ func init () {
21
+ asn1 .AllowPermissiveParsing = true
22
+ pkix .LegacyNameString = true
23
+ }
24
+
20
25
// Shared code for TLS scans.
21
26
// Example usage:
22
27
// (include TLSFlags in ScanFlags implementation)
@@ -149,9 +154,6 @@ func (t *TLSFlags) GetTLSConfigForTarget(target *ScanTarget) (*tls.Config, error
149
154
}
150
155
}
151
156
152
- asn1 .AllowPermissiveParsing = true
153
- pkix .LegacyNameString = true
154
-
155
157
if t .NextProtos != "" {
156
158
// TODO: Different format?
157
159
ret .NextProtos = getCSV (t .NextProtos )
You can’t perform that action at this time.
0 commit comments