Page MenuHome GnuPG

[minor] scd getattr <token> - <token> should be case-insensitive
Closed, ResolvedPublic

Description

Tokens in the Assuan protocol are generally case-insensitive. The GETATTR token
in scd is not, though:

scd GETATTR SERIALNO

S SERIALNO 89490173300008094100
OK

scd getattr serialno

ERR 100663384 Invalid name <SCD>

scd GETATTR serialno

ERR 100663384 Invalid name <SCD>

scd getattr SERIALNO

S SERIALNO 89490173300008094100
OK

Event Timeline

The parser from libassun accepts lowercase variants. That is convenience
feature when working on the commandline with the assuan protocol. It should
never be used in any code. Attribute names are case-sensitive.