Skip to content

Commit

Permalink
added missing handling of new type LTC_ASN1_RAW_BIT_STRING in der_enc…
Browse files Browse the repository at this point in the history
…ode_sequence_multi()
  • Loading branch information
sjaeckel committed Mar 21, 2011
1 parent 43c6b5a commit 25bd5c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pk/asn1/der/sequence/der_encode_sequence_multi.c
Expand Up @@ -64,6 +64,7 @@ int der_encode_sequence_multi(unsigned char *out, unsigned long *outlen, ...)
case LTC_ASN1_SEQUENCE:
case LTC_ASN1_SET:
case LTC_ASN1_SETOF:
case LTC_ASN1_RAW_BIT_STRING:
++x;
break;

Expand Down Expand Up @@ -111,6 +112,7 @@ int der_encode_sequence_multi(unsigned char *out, unsigned long *outlen, ...)
case LTC_ASN1_SEQUENCE:
case LTC_ASN1_SET:
case LTC_ASN1_SETOF:
case LTC_ASN1_RAW_BIT_STRING:
list[x].type = type;
list[x].size = size;
list[x++].data = data;
Expand Down

0 comments on commit 25bd5c1

Please sign in to comment.