Update git submodules
[LibreOffice.git] / external / libcmis / factory-no-retry-ssl.patch.1
blobe549ca5e08c87a544b1f8ba70d7be9b9b80c1060
1 --- libcmis/src/libcmis/session-factory.cxx.orig        2024-06-19 18:43:56.244832053 +0200
2 +++ libcmis/src/libcmis/session-factory.cxx     2024-06-20 11:46:26.518263605 +0200
3 @@ -94,8 +94,13 @@
4                  {
5                      response = httpSession->httpGetRequest( bindingUrl );
6                  }
7 -                catch ( const CurlException& )
8 +                catch (const CurlException& e)
9                  {
10 +                    if (strcmp(e.what(), "Invalid SSL certificate") == 0)
11 +                    {
12 +                        // no point in trying other protocols
13 +                        throw e.getCmisException();
14 +                    }
15                      // Could be SharePoint - needs NTLM authentication
16                      session = new SharePointSession( bindingUrl, username,
17                                                        password, verbose );