Add name and get_size() members in PK

This commit is contained in:
Manuel Pégourié-Gonnard 2013-08-12 19:45:32 +02:00
parent 835eb59c6a
commit f8c948a674
3 changed files with 58 additions and 14 deletions

View file

@ -89,6 +89,12 @@ typedef struct
/** Public key type */
pk_type_t type;
/** Type name */
const char *name;
/** Get key size in bits */
size_t (*get_size)( void * );
/** Tell if the context implements this type (eg ECKEY can do ECDSA) */
int (*can_do)( pk_type_t type );