]> git.cameronkatri.com Git - ldid.git/commitdiff
Fix deprecations + update libplist
authorHayden <8144478+Diatrus@users.noreply.github.com>
Sat, 21 Aug 2021 22:50:12 +0000 (18:50 -0400)
committerCameron Katri <me@cameronkatri.com>
Sun, 10 Oct 2021 22:34:59 +0000 (18:34 -0400)
ldid.cpp

index 0d4cb735e2f6d6b8d971f2f3df87101a61c04129..c65cb96b6887da614af75dab7025e7f15cbf2b01 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -2019,7 +2019,7 @@ static void get(std::string &value, X509_NAME *name, int nid) {
     _assert(entry != NULL);
     auto asn(X509_NAME_ENTRY_get_data(entry));
     _assert(asn != NULL);
-    value.assign(reinterpret_cast<char *>(ASN1_STRING_data(asn)), ASN1_STRING_length(asn));
+    value.assign(reinterpret_cast<const char *>(ASN1_STRING_get0_data(asn)), ASN1_STRING_length(asn));
 }
 #endif
 
@@ -2716,7 +2716,7 @@ struct Rule {
     Mode mode_;
     std::string code_;
 
-    mutable std::auto_ptr<Expression> regex_;
+    mutable std::unique_ptr<Expression> regex_;
 
     Rule(unsigned weight, Mode mode, const std::string &code) :
         weight_(weight),