Yubico / ykneo-openpgp

OpenPGP applet for the YubiKey NEO
https://developers.yubico.com/ykneo-openpgp/
GNU General Public License v2.0
215 stars 67 forks source link

Incorrect applet version reported by YubiKey NEO Manager #26

Closed bmalkow closed 9 years ago

bmalkow commented 9 years ago

Not sure if this is problem of openpgp applet or rather YubiKey NEO Manager:

gpg-connect-agent --hex "scd apdu 00 f1 00 00" /bye
D[0000]  01 00 11 90 00                                     .....           
OK

what looks ok. But YubiKey NEO Manager shows: "1.0.17 installed"

dainnilsson commented 9 years ago

I'm not sure if this version number is supposed to be BCD or not. If it isn't, then the applet is wrong (0x11 is 17 in decimal). If it is, then that should probably be stated somewhere in the documentation. I'm not sure why it would be BCD though.

bmalkow commented 9 years ago

No idea. Command F1 is vendor specific, so you should decide ;-)

dainnilsson commented 9 years ago

Yeah, I'm waiting for @klali to comment, as he is the one who bumped the version ;)

klali commented 9 years ago

Hello,

Yes. The version number is BCD (since it's recommended to read it with gpg-connect-agent in a number of places).

/klas

dainnilsson commented 9 years ago

As that's settled I'm updating the NEO manager to treat this value as BCD so that it displays correctly.