Sfoglia il codice sorgente

LibTLS: Dont also include the OID when printing the RDN short name

stelar7 2 anni fa
parent
commit
e4481baef9
1 ha cambiato i file con 5 aggiunte e 7 eliminazioni
  1. 5 7
      Userland/Libraries/LibTLS/Certificate.cpp

+ 5 - 7
Userland/Libraries/LibTLS/Certificate.cpp

@@ -850,13 +850,11 @@ ErrorOr<Certificate> Certificate::parse_certificate(ReadonlyBytes buffer, bool)
 
 ErrorOr<String> RelativeDistinguishedName::to_string()
 {
-#define ADD_IF_RECOGNIZED(identifier, shorthand_code)                 \
-    do {                                                              \
-        if (it->key == identifier) {                                  \
-            cert_name.appendff("\\{}={}", shorthand_code, it->value); \
-            continue;                                                 \
-        }                                                             \
-    } while (0);
+#define ADD_IF_RECOGNIZED(identifier, shorthand_code)             \
+    if (it->key == identifier) {                                  \
+        cert_name.appendff("\\{}={}", shorthand_code, it->value); \
+        continue;                                                 \
+    }
 
     StringBuilder cert_name;