<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:baron@caesar.elte.hu" title="Aron Budea <baron@caesar.elte.hu>"> <span class="fn">Aron Budea</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Password protection doesn't work (Win 7 only)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140234">bug 140234</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Component</td>
           <td>Calc
           </td>
           <td>LibreOffice
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>baron@caesar.elte.hu
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Severity</td>
           <td>normal
           </td>
           <td>major
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>Password protection doesn't work in Calc
           </td>
           <td>Password protection doesn't work (Win 7 only)
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Password protection doesn't work (Win 7 only)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140234#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Password protection doesn't work (Win 7 only)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140234">bug 140234</a>
              from <span class="vcard"><a class="email" href="mailto:baron@caesar.elte.hu" title="Aron Budea <baron@caesar.elte.hu>"> <span class="fn">Aron Budea</span></a>
</span></b>
        <pre>I can confirm on Windows 7, and have encountered likely the same issue recently
when running unit tests, CppunitTest_services failed when trying to instantiate
com.sun.star.security.CertificateContainer, because loading xmlsecurity.dll
failed.

As far as I can see, the problem is with a call to LoadPackagedLibrary in
libxmlsec, which only exists since Windows 8:
<a href="https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-loadpackagedlibrary">https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-loadpackagedlibrary</a>

The call is here:
<a href="https://github.com/lsh123/xmlsec/blob/21bbcb04b62352331a15a0b8463ebb27a9b858bc/src/dl.c#L160">https://github.com/lsh123/xmlsec/blob/21bbcb04b62352331a15a0b8463ebb27a9b858bc/src/dl.c#L160</a>

And was added with the following commit:
<a href="https://github.com/lsh123/xmlsec/commit/3ecf7d2ad4fd8017cd803b98962872799def621a">https://github.com/lsh123/xmlsec/commit/3ecf7d2ad4fd8017cd803b98962872799def621a</a>

Commenting out the added lines, and rebuilding xmlsec and LO fixes both the
unit test failure, and the issue reported here.
Btw, not just Calc is affected, password protection of files doesn't work in
the other apps, either.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>