Yubikey: use PIN

This commit is contained in:
Dominik Schürmann
2014-09-08 00:40:50 +02:00
parent 7ccd30b78e
commit f4592c8b95
4 changed files with 11 additions and 3 deletions

View File

@@ -215,8 +215,10 @@ public class PassphraseCacheService extends Service {
switch (keyType) {
case DIVERT_TO_CARD:
if (Preferences.getPreferences(this).useDefaultYubikeyPin()) {
Log.d(Constants.TAG, "PassphraseCacheService: Using default Yubikey PIN: 123456");
return "123456"; // default Yubikey PIN, see http://www.yubico.com/2012/12/yubikey-neo-openpgp/
} else {
Log.d(Constants.TAG, "PassphraseCacheService: NOT using default Yubikey PIN");
break;
}
case PASSPHRASE_EMPTY: