summaryrefslogtreecommitdiff
path: root/src/mongo/gotools/src/github.com/mongodb/mongo-tools/vendor/gopkg.in/mgo.v2/saslimpl.go
diff options
context:
space:
mode:
authorDavid Golden <xdg@xdg.me>2018-11-30 09:50:32 -0500
committerDavid Golden <xdg@xdg.me>2018-12-07 12:46:44 -0500
commit00bf03c454e7796d507ad2e1ee80c5d75e270879 (patch)
treef6bf7c57163802cb0eb44c77bc161c2bfe778cf4 /src/mongo/gotools/src/github.com/mongodb/mongo-tools/vendor/gopkg.in/mgo.v2/saslimpl.go
parent4b967bc68b65afd145b8b0a98c4868fd217bd14e (diff)
downloadmongo-00bf03c454e7796d507ad2e1ee80c5d75e270879.tar.gz
Import tools: c1d0d6967c84c62b5b578f7b18a82226b5c76526 from branch v3.6
ref: 7e7a3acf2b..c1d0d6967c for: 3.6.10 TOOLS-1566 Should not include "ssl" tag for Linux 64 build TOOLS-1709 Set build version and git revision using -ldflags TOOLS-1742 import cycle between util and testutil TOOLS-1996 Allow building tools from inside an ordinary GOPATH TOOLS-2099 Tools jstests failing on replica set shutdown TOOLS-2149 Configure build outside Evergreen
Diffstat (limited to 'src/mongo/gotools/src/github.com/mongodb/mongo-tools/vendor/gopkg.in/mgo.v2/saslimpl.go')
-rw-r--r--src/mongo/gotools/src/github.com/mongodb/mongo-tools/vendor/gopkg.in/mgo.v2/saslimpl.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/gotools/src/github.com/mongodb/mongo-tools/vendor/gopkg.in/mgo.v2/saslimpl.go b/src/mongo/gotools/src/github.com/mongodb/mongo-tools/vendor/gopkg.in/mgo.v2/saslimpl.go
new file mode 100644
index 00000000000..0d25f25cbb6
--- /dev/null
+++ b/src/mongo/gotools/src/github.com/mongodb/mongo-tools/vendor/gopkg.in/mgo.v2/saslimpl.go
@@ -0,0 +1,11 @@
+//+build sasl
+
+package mgo
+
+import (
+ "gopkg.in/mgo.v2/internal/sasl"
+)
+
+func saslNew(cred Credential, host string) (saslStepper, error) {
+ return sasl.New(cred.Username, cred.Password, cred.Mechanism, cred.Service, host)
+}