From b8b5f5f7ad454cd5ae65e839f795e569206c1e97 Mon Sep 17 00:00:00 2001 From: Hayden <8144478+Diatrus@users.noreply.github.com> Date: Sat, 21 Aug 2021 18:50:12 -0400 Subject: Fix deprecations + update libplist --- ldid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldid.cpp') 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), -- cgit v1.2.3-56-ge451