Rename in_tag to in_attr_type

Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
diff --git a/library/x509_create.c b/library/x509_create.c
index b82c997..2c91e78 100644
--- a/library/x509_create.c
+++ b/library/x509_create.c
@@ -268,7 +268,7 @@
     const char *end = s + strlen(s);
     const char *oid = NULL;
     const x509_attr_descriptor_t *attr_descr = NULL;
-    int in_tag = 1;
+    int in_attr_type = 1;
     int tag;
     int numericoid = 0;
     unsigned char data[MBEDTLS_X509_MAX_DN_NAME_SIZE];
@@ -278,7 +278,7 @@
     mbedtls_asn1_free_named_data_list(head);
 
     while (c <= end) {
-        if (in_tag && *c == '=') {
+        if (in_attr_type && *c == '=') {
             if ((attr_descr = x509_attr_descr_from_name(s, c - s)) == NULL) {
                 if ((attr_descr = x509_attr_descr_from_numericoid(s, c - s)) == NULL) {
                     return MBEDTLS_ERR_X509_UNKNOWN_OID;
@@ -291,10 +291,10 @@
 
             oid = attr_descr->oid;
             s = c + 1;
-            in_tag = 0;
+            in_attr_type = 0;
         }
 
-        if (!in_tag && ((*c == ',' && *(c-1) != '\\') || c == end)) {
+        if (!in_attr_type && ((*c == ',' && *(c-1) != '\\') || c == end)) {
             if (!numericoid) {
                 if ((parse_ret =
                          parse_attribute_value_string(s, (int) (c - s), data, &data_len)) != 0) {
@@ -329,7 +329,7 @@
             }
 
             s = c + 1;
-            in_tag = 1;
+            in_attr_type = 1;
 
             /* Successfully parsed one name, update ret to success */
             ret = 0;