diff options
-rw-r--r-- | external/libcmis/UnpackedTarball_libcmis.mk | 1 | ||||
-rw-r--r-- | external/libcmis/factory-no-retry-ssl.patch.1 | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/external/libcmis/UnpackedTarball_libcmis.mk b/external/libcmis/UnpackedTarball_libcmis.mk index d13b8cd463b1..4a0a1a5e9e03 100644 --- a/external/libcmis/UnpackedTarball_libcmis.mk +++ b/external/libcmis/UnpackedTarball_libcmis.mk @@ -19,6 +19,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libcmis,\ external/libcmis/0001-cid-1545775-COPY_INSTEAD_OF_MOVE.patch \ external/libcmis/0001-Fix-warning-C4589-when-building-with-MSVC.patch \ external/libcmis/http-session-cleanup.patch.1 \ + external/libcmis/factory-no-retry-ssl.patch.1 \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libcmis/factory-no-retry-ssl.patch.1 b/external/libcmis/factory-no-retry-ssl.patch.1 new file mode 100644 index 000000000000..e549ca5e08c8 --- /dev/null +++ b/external/libcmis/factory-no-retry-ssl.patch.1 @@ -0,0 +1,17 @@ +--- libcmis/src/libcmis/session-factory.cxx.orig 2024-06-19 18:43:56.244832053 +0200 ++++ libcmis/src/libcmis/session-factory.cxx 2024-06-20 11:46:26.518263605 +0200 +@@ -94,8 +94,13 @@ + { + response = httpSession->httpGetRequest( bindingUrl ); + } +- catch ( const CurlException& ) ++ catch (const CurlException& e) + { ++ if (strcmp(e.what(), "Invalid SSL certificate") == 0) ++ { ++ // no point in trying other protocols ++ throw e.getCmisException(); ++ } + // Could be SharePoint - needs NTLM authentication + session = new SharePointSession( bindingUrl, username, + password, verbose ); |