Add doc.go, finish YubiKey removal.

This commit is contained in:
Kyle
2014-04-24 20:43:13 -06:00
parent 7881b6fdfc
commit 89e74f390b
2 changed files with 7 additions and 3 deletions

5
doc.go Normal file
View File

@@ -0,0 +1,5 @@
// twofactor implements two-factor authentication.
//
// Currently supported are RFC 4226 HOTP one-time passwords and
// RFC 6238 TOTP SHA-1 one-time passwords.
package twofactor

5
otp.go
View File

@@ -58,9 +58,8 @@ func otpString(otp OTP) string {
typeName = "OATH-HOTP"
case OATH_TOTP:
typeName = "OATH-TOTP"
case YUBIKEY:
return fmt.Sprintf("YubiKey with %d byte public identity",
len(otp.(*YubiKey).Public()))
default:
typeName = "UNKNOWN"
}
return fmt.Sprintf("%s, %d", typeName, otp.Size())
}