David Horstmann cfae6a1ae9 Fix incorrect detection of HardwareModuleName
The hardware module name otherName SAN contains 2 OIDs:

 OtherName ::= SEQUENCE {
      type-id    OBJECT IDENTIFIER,
      value      [0] EXPLICIT ANY DEFINED BY type-id }

 HardwareModuleName ::= SEQUENCE {
                           hwType OBJECT IDENTIFIER,
                           hwSerialNum OCTET STRING }

The first, type-id, is the one that identifies the otherName as a
HardwareModuleName. The second, hwType, identifies the type of hardware.

This change fixes 2 issues:

1. We were erroneously trying to identify HardwareModuleNames by looking
at hwType, not type-id.
2. We accidentally inverted the check so that we were checking that
hwType did NOT match HardwareModuleName.

This fix ensures that type-id is correctly checked to make sure that it
matches the OID for HardwareModuleName.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-08-18 19:31:39 +01:00
..
2023-05-12 13:58:05 +02:00
2023-07-06 17:10:44 +08:00
2023-07-13 17:32:11 +08:00
2023-06-16 20:18:36 +01:00
2023-07-11 14:06:37 +01:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-05-18 20:49:03 +01:00
2023-01-23 19:10:26 +01:00
2023-05-18 20:49:03 +01:00
2023-01-11 14:50:10 +01:00
2023-06-24 13:37:28 +01:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-06-24 13:37:28 +01:00
2023-02-10 16:03:44 +00:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-04-12 06:07:23 +00:00
2023-06-06 10:33:54 +02:00
2023-07-07 12:59:22 +02:00
2023-01-11 14:50:10 +01:00
2023-03-24 10:43:40 +01:00
2023-07-13 15:57:20 +01:00
2023-01-11 14:50:10 +01:00
2023-07-06 12:42:33 +02:00
2023-07-06 12:42:33 +02:00
2023-01-11 14:50:10 +01:00
2023-02-07 19:55:31 +01:00
2023-07-06 12:42:33 +02:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-06-24 13:37:28 +01:00
2023-01-11 14:50:10 +01:00
2023-06-06 10:33:54 +02:00
2023-07-06 12:42:33 +02:00
2023-07-06 12:42:33 +02:00
2023-07-06 12:42:33 +02:00
2023-07-06 12:42:33 +02:00
2023-03-13 12:15:49 +00:00
2023-07-06 12:42:33 +02:00
2023-07-06 12:42:33 +02:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-07-06 12:47:28 +02:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-07-06 12:42:33 +02:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-07-06 12:47:27 +02:00
2023-02-02 12:40:50 +00:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-06-07 19:59:05 +01:00
2023-07-13 10:40:29 +08:00
2023-07-13 10:40:29 +08:00
2023-06-06 10:33:54 +02:00
2023-07-05 10:34:40 +02:00
2023-01-11 14:50:10 +01:00
2023-07-06 12:42:33 +02:00
2023-07-07 09:34:17 +02:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-01-11 14:50:10 +01:00
2023-01-26 22:30:45 +01:00
2023-07-06 12:42:33 +02:00
2023-07-06 12:42:33 +02:00