Fixed AlgorithmIdentifier parameters when used with ECDSA signature algorithm in x509 certificate
Signed-off-by: Marek Jansta <jansta@2n.cz>
diff --git a/library/asn1write.c b/library/asn1write.c
index f9c3830..a499bea 100644
--- a/library/asn1write.c
+++ b/library/asn1write.c
@@ -217,11 +217,11 @@
MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len));
MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start,
- MBEDTLS_ASN1_CONSTRUCTED |
- MBEDTLS_ASN1_SEQUENCE));
+ MBEDTLS_ASN1_CONSTRUCTED |
+ MBEDTLS_ASN1_SEQUENCE));
return (int) len;
- }
+}
int mbedtls_asn1_write_bool(unsigned char **p, unsigned char *start, int boolean)
{