Revert "[wpa_supplicant] Cumulative patch from b8491ae5a"

This reverts commit 878cf7bcbf2d7d8f08c3d060b8c5fbfcf0743eda.

Reason for revert: git_master/sdk_phone_armv7-sdk

Change-Id: I6070fc5c1f9c20867f6dfce90e529e35578d572e
diff --git a/src/tls/asn1.c b/src/tls/asn1.c
index a08c2e1..822f87c 100644
--- a/src/tls/asn1.c
+++ b/src/tls/asn1.c
@@ -22,36 +22,6 @@
 };
 
 
-static int asn1_valid_der_boolean(struct asn1_hdr *hdr)
-{
-	/* Enforce DER requirements for a single way of encoding a BOOLEAN */
-	if (hdr->length != 1) {
-		wpa_printf(MSG_DEBUG, "ASN.1: Unexpected BOOLEAN length (%u)",
-			   hdr->length);
-		return 0;
-	}
-
-	if (hdr->payload[0] != 0 && hdr->payload[0] != 0xff) {
-		wpa_printf(MSG_DEBUG,
-			   "ASN.1: Invalid BOOLEAN value 0x%x (DER requires 0 or 0xff)",
-			   hdr->payload[0]);
-		return 0;
-	}
-
-	return 1;
-}
-
-
-static int asn1_valid_der(struct asn1_hdr *hdr)
-{
-	if (hdr->class != ASN1_CLASS_UNIVERSAL)
-		return 1;
-	if (hdr->tag == ASN1_TAG_BOOLEAN && !asn1_valid_der_boolean(hdr))
-		return 0;
-	return 1;
-}
-
-
 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr)
 {
 	const u8 *pos, *end;
@@ -121,8 +91,7 @@
 	}
 
 	hdr->payload = pos;
-
-	return asn1_valid_der(hdr) ? 0 : -1;
+	return 0;
 }