change the ASN1 type to be a typedef

replace all 'default' cases in the switch statements
This commit is contained in:
Steffen Jaeckel
2014-08-24 15:00:32 +02:00
parent 00c111b1c8
commit 6bba3a2a70
6 changed files with 41 additions and 24 deletions
+3 -3
View File
@@ -435,7 +435,7 @@ int dsa_shared_secret(void *private_key, void *base,
#ifdef LTC_DER
/* DER handling */
enum {
typedef enum ltc_asn1_type_ {
LTC_ASN1_EOL,
LTC_ASN1_BOOLEAN,
LTC_ASN1_INTEGER,
@@ -455,12 +455,12 @@ enum {
LTC_ASN1_RAW_BIT_STRING,
LTC_ASN1_TELETEX_STRING,
LTC_ASN1_CONSTRUCTED,
};
} ltc_asn1_type;
/** A LTC ASN.1 list type */
typedef struct ltc_asn1_list_ {
/** The LTC ASN.1 enumerated type identifier */
int type;
ltc_asn1_type type;
/** The data to encode or place for decoding */
void *data;
/** The size of the input or resulting output */