Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MD5 cryptography call usage. #143

Closed
fangfufu opened this issue May 11, 2024 · 1 comment
Closed

Update MD5 cryptography call usage. #143

fangfufu opened this issue May 11, 2024 · 1 comment
Labels
updates Update deprecated code

Comments

@fangfufu
Copy link
Owner

Right now when httpdirfs is compiled, I get the following error messages:

src/util.c: In function ‘generate_md5sum’:
src/util.c:122:5: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  122 |     MD5_Init(&c);
      |     ^~~~~~~~
In file included from src/util.c:6:
/usr/include/openssl/md5.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
      |                           ^~~~~~~~
src/util.c:123:5: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  123 |     MD5_Update(&c, str, len);
      |     ^~~~~~~~~~
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
src/util.c:124:5: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  124 |     MD5_Final(md5, &c);
      |     ^~~~~~~~~
/usr/include/openssl/md5.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
      |                           ^~~~~~~~~

These API usages need to be updated.

@fangfufu fangfufu added the updates Update deprecated code label May 11, 2024
@fangfufu fangfufu pinned this issue May 11, 2024
@fangfufu fangfufu unpinned this issue May 11, 2024
@fangfufu fangfufu mentioned this issue May 11, 2024
13 tasks
@fangfufu
Copy link
Owner Author

Completed via 3514889

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
updates Update deprecated code
Projects
None yet
Development

No branches or pull requests

1 participant