gcontini
2020-10-13 cbb11cd88d985db033c744b59291a2cf03fd16be
src/library/os/windows/signature_verifier.cpp
@@ -124,7 +124,7 @@
                                    sizeof(pubk), 0))) {
      result = FUNC_RET_OK;
   } else {
#ifdef _DEBUG
#ifndef NDEBUG
      formatError(status, "error importing public key");
#endif
   }
@@ -152,7 +152,7 @@
            result = FUNC_RET_OK;
         } else {
            result = FUNC_RET_ERROR;
#ifdef _DEBUG
#ifndef NDEBUG
            formatError(status, "error verifying signature");
#endif
         }
@@ -162,7 +162,7 @@
   }
   else {
      result = FUNC_RET_NOT_AVAIL;
#ifdef _DEBUG
#ifndef NDEBUG
      formatError(status, "error opening RSA provider");
#endif
   }
@@ -207,13 +207,13 @@
               result = verifyHash(pbHashData, cbHashDataLenght, signatureB64);
            } else {
               result = FUNC_RET_NOT_AVAIL;
#ifdef _DEBUG
#ifndef NDEBUG
               formatError(status, "error hashing data");
#endif
            }
         } else {
            result = FUNC_RET_NOT_AVAIL;
#ifdef _DEBUG
#ifndef NDEBUG
            formatError(status, "error creating hash");
#endif
         }
@@ -223,7 +223,7 @@
      }
   } else {
      result = FUNC_RET_NOT_AVAIL;
#ifdef _DEBUG
#ifndef NDEBUG
      formatError(status, "**** Error returned by BCryptGetProperty");
#endif
   }