}
switch (type) {
case 0:
- str = xstrdup(_("nil"));
+ if (strspn(uuid, "0-") == 36)
+ str = xstrdup(_("nil"));
+ else
+ str = xstrdup(_("unknown"));
break;
case 1:
str = xstrdup(_("time-based"));
00000000-0000-4000-0000-000000000000 NCS random
00000000-0000-5000-0000-000000000000 NCS sha1-based
00000000-0000-6000-0000-000000000000 NCS unknown
-00000000-0000-0000-8000-000000000000 DCE nil
+00000000-0000-0000-8000-000000000000 DCE unknown
00000000-0000-2000-8000-000000000000 DCE DCE
00000000-0000-3000-8000-000000000000 DCE name-based
00000000-0000-4000-8000-000000000000 DCE random
00000000-0000-5000-8000-000000000000 DCE sha1-based
00000000-0000-6000-8000-000000000000 DCE unknown
-00000000-0000-0000-d000-000000000000 Microsoft nil
+00000000-0000-0000-d000-000000000000 Microsoft unknown
00000000-0000-1000-d000-000000000000 Microsoft time-based
00000000-0000-2000-d000-000000000000 Microsoft DCE
00000000-0000-3000-d000-000000000000 Microsoft name-based
00000000-0000-4000-d000-000000000000 Microsoft random
00000000-0000-5000-d000-000000000000 Microsoft sha1-based
00000000-0000-6000-d000-000000000000 Microsoft unknown
-00000000-0000-0000-f000-000000000000 other nil
+00000000-0000-0000-f000-000000000000 other unknown
00000000-0000-1000-f000-000000000000 other time-based
00000000-0000-2000-f000-000000000000 other DCE
00000000-0000-3000-f000-000000000000 other name-based