summaryrefslogtreecommitdiff
path: root/vendor/github.com/smallstep/pkcs7/internal/legacy/x509/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/smallstep/pkcs7/internal/legacy/x509/debug.go')
-rw-r--r--vendor/github.com/smallstep/pkcs7/internal/legacy/x509/debug.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/smallstep/pkcs7/internal/legacy/x509/debug.go b/vendor/github.com/smallstep/pkcs7/internal/legacy/x509/debug.go
new file mode 100644
index 0000000..378cc26
--- /dev/null
+++ b/vendor/github.com/smallstep/pkcs7/internal/legacy/x509/debug.go
@@ -0,0 +1,14 @@
+package legacyx509
+
+import "fmt"
+
+// legacyGodebugSetting is a type mimicking Go's internal godebug package
+// settings, which are used to enable / disable certain functionalities at
+// build time.
+type legacyGodebugSetting int
+
+func (s legacyGodebugSetting) Value() string {
+ return fmt.Sprintf("%d", s)
+}
+
+func (s legacyGodebugSetting) IncNonDefault() {}