summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCrypto/ASN1
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-04 18:02:33 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-06 08:54:33 +0100
commit6e19ab2bbce0b113b628e6f8e9b5c0640053933e (patch)
tree372d21b2f5dcff112f5d0089559c6af5798680d4 /Userland/Libraries/LibCrypto/ASN1
parentf74251606d74b504a1379ebb893fdb5529054ea5 (diff)
downloadserenity-6e19ab2bbce0b113b628e6f8e9b5c0640053933e.zip
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
Diffstat (limited to 'Userland/Libraries/LibCrypto/ASN1')
-rw-r--r--Userland/Libraries/LibCrypto/ASN1/ASN1.cpp6
-rw-r--r--Userland/Libraries/LibCrypto/ASN1/ASN1.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp b/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp
index bdc23e33c5..8acf1f37f0 100644
--- a/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp
+++ b/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp
@@ -9,7 +9,7 @@
namespace Crypto::ASN1 {
-String kind_name(Kind kind)
+DeprecatedString kind_name(Kind kind)
{
switch (kind) {
case Kind::Eol:
@@ -45,7 +45,7 @@ String kind_name(Kind kind)
return "InvalidKind";
}
-String class_name(Class class_)
+DeprecatedString class_name(Class class_)
{
switch (class_) {
case Class::Application:
@@ -61,7 +61,7 @@ String class_name(Class class_)
return "InvalidClass";
}
-String type_name(Type type)
+DeprecatedString type_name(Type type)
{
switch (type) {
case Type::Constructed:
diff --git a/Userland/Libraries/LibCrypto/ASN1/ASN1.h b/Userland/Libraries/LibCrypto/ASN1/ASN1.h
index f368b5ddd1..b0e6e6c030 100644
--- a/Userland/Libraries/LibCrypto/ASN1/ASN1.h
+++ b/Userland/Libraries/LibCrypto/ASN1/ASN1.h
@@ -48,9 +48,9 @@ struct Tag {
Type type;
};
-String kind_name(Kind);
-String class_name(Class);
-String type_name(Type);
+DeprecatedString kind_name(Kind);
+DeprecatedString class_name(Class);
+DeprecatedString type_name(Type);
Optional<Core::DateTime> parse_utc_time(StringView);
Optional<Core::DateTime> parse_generalized_time(StringView);