0002-fix-build-error.patch 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. diff --git "a/cmake/modules/QcaMacro.cmake" "b/cmake/modules/QcaMacro.cmake"
  2. index 5d86e4725..62568626b 100644
  3. --- "a/cmake/modules/QcaMacro.cmake"
  4. +++ "b/cmake/modules/QcaMacro.cmake"
  5. @@ -61,15 +61,6 @@ macro(add_qca_test TARGET DESCRIPTION)
  6. endmacro(add_qca_test)
  7. macro(install_pdb TARGET INSTALL_PATH)
  8. - if(MSVC)
  9. - get_target_property(LOCATION ${TARGET} LOCATION_DEBUG)
  10. - string(REGEX REPLACE "\\.[^.]*$" ".pdb" LOCATION "${LOCATION}")
  11. - install(FILES ${LOCATION} DESTINATION ${INSTALL_PATH} CONFIGURATIONS Debug)
  12. -
  13. - get_target_property(LOCATION ${TARGET} LOCATION_RELWITHDEBINFO)
  14. - string(REGEX REPLACE "\\.[^.]*$" ".pdb" LOCATION "${LOCATION}")
  15. - install(FILES ${LOCATION} DESTINATION ${INSTALL_PATH} CONFIGURATIONS RelWithDebInfo)
  16. - endif()
  17. endmacro(install_pdb)
  18. macro(normalize_path PATH)
  19. diff --git "a/plugins/qca-ossl/qca-ossl.cpp" "b/plugins/qca-ossl/qca-ossl.cpp"
  20. index ee872d721..fa3e2c414 100644
  21. --- "a/plugins/qca-ossl/qca-ossl.cpp"
  22. +++ "b/plugins/qca-ossl/qca-ossl.cpp"
  23. @@ -6910,6 +6910,7 @@ public:
  24. else if ( type == QLatin1String("aes256-ccm") )
  25. return new opensslCipherContext( EVP_aes_256_ccm(), 0, this, type);
  26. #endif
  27. +#ifndef OPENSSL_NO_BF
  28. else if ( type == QLatin1String("blowfish-ecb") )
  29. return new opensslCipherContext( EVP_bf_ecb(), 0, this, type);
  30. else if ( type == QLatin1String("blowfish-cfb") )
  31. @@ -6920,6 +6921,8 @@ public:
  32. return new opensslCipherContext( EVP_bf_cbc(), 0, this, type);
  33. else if ( type == QLatin1String("blowfish-cbc-pkcs7") )
  34. return new opensslCipherContext( EVP_bf_cbc(), 1, this, type);
  35. +#endif
  36. +#ifndef OPENSSL_NO_DES
  37. else if ( type == QLatin1String("tripledes-ecb") )
  38. return new opensslCipherContext( EVP_des_ede3(), 0, this, type);
  39. else if ( type == QLatin1String("tripledes-cbc") )
  40. @@ -6936,6 +6939,8 @@ public:
  41. return new opensslCipherContext( EVP_des_cfb(), 0, this, type);
  42. else if ( type == QLatin1String("des-ofb") )
  43. return new opensslCipherContext( EVP_des_ofb(), 0, this, type);
  44. +#endif
  45. +#ifndef OPENSSL_NO_CAST
  46. else if ( type == QLatin1String("cast5-ecb") )
  47. return new opensslCipherContext( EVP_cast5_ecb(), 0, this, type);
  48. else if ( type == QLatin1String("cast5-cbc") )
  49. @@ -6946,6 +6951,7 @@ public:
  50. return new opensslCipherContext( EVP_cast5_cfb(), 0, this, type);
  51. else if ( type == QLatin1String("cast5-ofb") )
  52. return new opensslCipherContext( EVP_cast5_ofb(), 0, this, type);
  53. +#endif
  54. else if ( type == QLatin1String("pkey") )
  55. return new MyPKeyContext( this );
  56. else if ( type == QLatin1String("dlgroup") )