Skip to content
Browse files

OpenPGP: fix algorithms & key lengths calculation

Also include forgotten DO C3 in keylength calculation.
It contains the parameters for the authentication key.

Signed-off-by: Peter Marschall <peter@adpm.de>
  • Loading branch information...
1 parent 9863072 commit 01e63424f57ef0f5413d8d3eb1585087fcf9553f @marschap committed May 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/libopensc/card-openpgp.c
View
2 src/libopensc/card-openpgp.c
@@ -400,7 +400,7 @@ pgp_get_card_features(sc_card_t *card)
}
/* get supported algorithms & key lengths from "algorithm attributes" DOs */
- for (i = 0x00c1; i < 0x0c3; i++) {
+ for (i = 0x00c1; i <= 0x00c3; i++) {
unsigned long flags;
/* Is this correct? */

0 comments on commit 01e6342

Please sign in to comment.
Something went wrong with that request. Please try again.