#876968 gnupg: Improve error message when changing passwd on an "empty" card

#876968#5
Date:
2017-09-27 08:14:15 UTC
From:
To:
Dear GnuPG Maintainers,

I have no idea if this concerns Gnuk only, so sorry it cannot be
improved in gnupg: When trying to change the passwd of my new gnuk
token (v1.2.5), I got this error message:

gpg/card> passwd
gpg: OpenPGP card no. D276000124010200FFFE870620540000 detected
Error changing the PIN: Conditions of use not satisfied

As told by gniibe-san, the "Conditions of use not satisfied" were the
lack of private key installed in the token. After importing it, I was
able to change the pass-phrase.
It would be easier to figure out the problem if the error message said
the private key was needed.

Cheers,