diff options
author | stelar7 <dudedbz@gmail.com> | 2023-04-11 23:50:31 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2023-04-12 11:36:54 +0330 |
commit | e4481baef91d7c2083b2fa7acf3f789ebb2b7c5a (patch) | |
tree | 754a47e42932bcf8a79b0669f8411b41f4d56d93 /Userland/Libraries | |
parent | 0829101eb8e1f4bbd6a62373a080bd90de1516cf (diff) | |
download | serenity-e4481baef91d7c2083b2fa7acf3f789ebb2b7c5a.zip |
LibTLS: Dont also include the OID when printing the RDN short name
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibTLS/Certificate.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Userland/Libraries/LibTLS/Certificate.cpp b/Userland/Libraries/LibTLS/Certificate.cpp index f87150defd..e93474fe82 100644 --- a/Userland/Libraries/LibTLS/Certificate.cpp +++ b/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; |