[PATCH 2/3] Check whether the card has a RNG.

Achim Pietig achim at pietig.com
Tue Mar 29 17:37:05 CEST 2016


Hi,

the announcement of the gc function is always in the first byte (b7) of EXTCAP. For downward compatibility I do not plan to change that.

Regards
Achim


Am 29.03.2016 um 16:44 schrieb Damien Goutte-Gattat:
> +  else if (keywordlen == 6 && !memcmp (keyword, "EXTCAP", keywordlen))
> +    {
> +      /* FIXME: Should we parse the line properly instead of assuming
> +         that the gc capability will always be at the beginning? */
> +      sscanf (line, "gc=%d", &(parm->rng_available));
> +    }




More information about the Gnupg-devel mailing list