From: Hayden <8144478+Diatrus@users.noreply.github.com> Date: Sat, 21 Aug 2021 22:50:12 +0000 (-0400) Subject: Fix deprecations + update libplist X-Git-Tag: v2.1.5-procursus~4 X-Git-Url: https://git.cameronkatri.com/ldid.git/commitdiff_plain/b8b5f5f7ad454cd5ae65e839f795e569206c1e97 Fix deprecations + update libplist --- diff --git a/ldid.cpp b/ldid.cpp index 0d4cb73..c65cb96 100644 --- 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(ASN1_STRING_data(asn)), ASN1_STRING_length(asn)); + value.assign(reinterpret_cast(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 regex_; + mutable std::unique_ptr regex_; Rule(unsigned weight, Mode mode, const std::string &code) : weight_(weight),