head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.12 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.10 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.8 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.6 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.4 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.2 pkgsrc-2024Q4-base:1.3 pkgsrc-2018Q4:1.1.0.4 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.2 pkgsrc-2018Q3-base:1.1; locks; strict; comment @// @; 1.3 date 2024.11.30.20.31.31; author wiz; state Exp; branches; next 1.2; commitid F8aiZbm6JlwS6IzF; 1.2 date 2019.02.13.22.12.17; author wiz; state dead; branches; next 1.1; commitid jOMnQqqCoiFpIEbB; 1.1 date 2018.08.17.17.21.24; author wiz; state Exp; branches; next ; commitid P7UlpZlHy1wjTuOA; desc @@ 1.3 log @libcmis: update to 0.6.2. 0.6.0 * Merged outstanding LibreOffice, etc. modifications 0.6.1 * add a callback that can be used to configure libcurl 0.6.2 * fix up version-info @ text @$NetBSD$ Boost 1.86 compat https://github.com/tdf/libcmis/commit/dfcb642a491f7ec2ae52e3e83d31bb6cdf3670c2 --- src/libcmis/xml-utils.cxx.orig 2023-10-09 12:06:53.000000000 +0000 +++ src/libcmis/xml-utils.cxx @@@@ -535,16 +535,22 @@@@ namespace libcmis boost::uuids::detail::sha1 sha1; sha1.process_bytes( str.c_str(), str.size() ); - unsigned int digest[5]; + // on boost < 1.86.0, digest_type is typedef'd as unsigned int[5] + // on boost >= 1.86.0, digest_type is typedef'd as unsigned char[20] + boost::uuids::detail::sha1::digest_type digest; sha1.get_digest( digest ); + // by using a pointer to unsigned char, we can read the + // object representation of either typedef. + const unsigned char* ptr = reinterpret_cast( digest ); + stringstream out; - // Setup writing mode. Every number must produce eight + // Setup writing mode. Every number must produce two // hexadecimal digits, including possible leading 0s, or we get // less than 40 digits as result. out << hex << setfill('0') << right; - for ( int i = 0; i < 5; ++i ) - out << setw(8) << digest[i]; + for ( int i = 0; i < sizeof( digest ); ++ptr, ++i ) + out << setw(2) << static_cast( *ptr ); return out.str(); } @ 1.2 log @libcmis: update to 0.5.2. 0.5.2 * Fixed Google Drive login, broken by Google's new 2-page login sequence * Added support for Google Drive two-factor authentication * Fixed access to SharePoint root folder (tdf#101385) * Limited the maximal number of redirections to 20 (rhbz#1410197) * Switched library implementation to C++11 (the API remains C++98-compatible) * Fixed build with boost >= 1.68.0 (#19) * Fixed encoding of OAuth2 credentials * Dropped cppcheck run from "make check". A new "make cppcheck" target was created for it * Added proper API symbol exporting * Speeded up building of tests a bit * Fixed a few issues found by coverity and cppcheck @ text @d1 1 a1 1 $NetBSD: patch-src_libcmis_xml-utils.cxx,v 1.1 2018/08/17 17:21:24 wiz Exp $ d3 2 a4 2 Fix build with boost-1.68.0. https://github.com/tdf/libcmis/issues/19 d6 1 a6 1 --- src/libcmis/xml-utils.cxx.orig 2016-03-01 16:14:26.000000000 +0000 d8 3 a10 3 @@@@ -31,7 +31,7 @@@@ #include #include d12 22 a33 3 -#include +#include #include a34 1 #include "xml-utils.hxx" @ 1.1 log @libcmis: fix build with boost-1.68.0 @ text @d1 1 a1 1 $NetBSD$ @