mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
72 lines
1.1 KiB
Go
72 lines
1.1 KiB
Go
package main
|
|
|
|
func use(args ...interface{}) {}
|
|
|
|
var userdb *UserDB = &UserDB{}
|
|
|
|
type UserDB struct{}
|
|
|
|
func (user *UserDB) Store(args ...interface{}) {}
|
|
|
|
type passStruct struct {
|
|
password string
|
|
}
|
|
|
|
func (p passStruct) getPassword() string {
|
|
return p.password
|
|
}
|
|
|
|
type xStruct struct {
|
|
x string
|
|
}
|
|
|
|
type hashedStruct struct {
|
|
hashed_password string
|
|
}
|
|
|
|
type cryptedStruct struct {
|
|
cryptedPassword string
|
|
}
|
|
|
|
type encryptedStruct struct {
|
|
encryptedPassword string
|
|
}
|
|
|
|
type encodedStruct struct {
|
|
encodedPassword string
|
|
}
|
|
|
|
type passSetStruct struct {
|
|
passwordSet map[string]bool
|
|
}
|
|
|
|
type Config struct {
|
|
password, hostname, x, y string
|
|
}
|
|
|
|
func getPassword() string { return "" }
|
|
|
|
const IncorrectPasswordError = iota
|
|
|
|
func crypt(pass string) string { return "" }
|
|
|
|
func hash(pass ...string) string { return "" }
|
|
|
|
type lib struct{}
|
|
|
|
var encryptLib lib
|
|
|
|
func (l lib) encryptPassword(pass string) string { return "" }
|
|
|
|
func actually_ok_password_2() string { return "" }
|
|
|
|
type testable struct{}
|
|
|
|
func (t testable) test(o interface{}) bool { return true }
|
|
|
|
func f() bool { return false }
|
|
|
|
type stringable struct{ string }
|
|
|
|
func (s stringable) String() string { return s.string }
|