Skip to content

'SHA256_Update' is deprecated [-Wdeprecated-declarations] #50

@ClausKlein

Description

@ClausKlein
bash-5.2$ ninja -C build                 
ninja: Entering directory `build'
[113/195] Building CXX object chapter05/find_package_example/CMakeFiles/ch5_find_package_example.dir/src/main.cpp.o
/Users/clausklein/Workspace/cmake/CMake-Best-Practices/chapter05/find_package_example/src/main.cpp:12:5: warning: 'SHA256_Init' is deprecated [-Wdeprecated-declarations]
   12 |     SHA256_Init(&sha256);
      |     ^
/usr/local/Cellar/openssl@3/3.3.2/include/openssl/sha.h:73:1: note: 'SHA256_Init' has been explicitly marked deprecated here
   73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
      | ^
/usr/local/Cellar/openssl@3/3.3.2/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
  194 | #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
      |                                                 ^
/usr/local/Cellar/openssl@3/3.3.2/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
   62 | #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
      |                                                    ^
/Users/clausklein/Workspace/cmake/CMake-Best-Practices/chapter05/find_package_example/src/main.cpp:13:5: warning: 'SHA256_Update' is deprecated [-Wdeprecated-declarations]
   13 |     SHA256_Update(&sha256, message.c_str(), message.size());
      |     ^
/usr/local/Cellar/openssl@3/3.3.2/include/openssl/sha.h:74:1: note: 'SHA256_Update' has been explicitly marked deprecated here
   74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
      | ^
/usr/local/Cellar/openssl@3/3.3.2/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
  194 | #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
      |                                                 ^
/usr/local/Cellar/openssl@3/3.3.2/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
   62 | #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
      |                                                    ^
/Users/clausklein/Workspace/cmake/CMake-Best-Practices/chapter05/find_package_example/src/main.cpp:14:5: warning: 'SHA256_Final' is deprecated [-Wdeprecated-declarations]
   14 |     SHA256_Final(hash, &sha256);
      |     ^
/usr/local/Cellar/openssl@3/3.3.2/include/openssl/sha.h:76:1: note: 'SHA256_Final' has been explicitly marked deprecated here
   76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
      | ^
/usr/local/Cellar/openssl@3/3.3.2/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
  194 | #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
      |                                                 ^
/usr/local/Cellar/openssl@3/3.3.2/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
   62 | #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
      |                                                    ^
3 warnings generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions