Add SQL functions for hotp/totp/yubikey security

This commit is contained in:
Tobie Morgan Hitchcock 2016-12-08 13:47:13 +00:00
parent 455fd3a35a
commit 9b8aec6549

View file

@ -175,6 +175,26 @@ var funcs = map[string]map[int]bool{
1: true, 1: true,
}, },
// HOTP implementation
"hotp.compare": {
2: true,
},
"hotp.generate": {
1: true,
},
// TOTP implementation
"totp.compare": {
2: true,
},
"totp.generate": {
1: true,
},
// Bcrypt implementation // Bcrypt implementation
"bcrypt.compare": { "bcrypt.compare": {
@ -204,4 +224,23 @@ var funcs = map[string]map[int]bool{
"pbkdf2.generate": { "pbkdf2.generate": {
1: true, 1: true,
}, },
// Yubikey implementation
"yubikey.id": {
1: true,
},
"yubikey.ctr": {
1: true,
},
"yubikey.use": {
1: true,
},
"yubikey.verify": {
2: true, // yubikey.verify(AUTHSERV, $otp)
3: true, // yubikey.verify(CLIENTID, SECRET, $otp)
},
} }