[GH-ISSUE #2061] Support to compatible with OpenSSL 3.0 #1039

Closed
opened 2026-03-04 01:50:53 +03:00 by kerem · 0 comments
Owner

Originally created by @ggtakec on GitHub (Nov 21, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2061

Details about issue

Fedora:37 and RockyLinux:9 are based on OpenSSL 3.0.
Therefore, it outputs the following warning when compiling.(the build is successful.)

openssl_auth.cpp: In function 'bool s3fs_init_global_ssl()':
openssl_auth.cpp:54:25: warning: 'int ERR_load_BIO_strings()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   54 |     ERR_load_BIO_strings();
      |     ~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/openssl/cryptoerr.h:17,
                 from /usr/include/openssl/crypto.h:38,
                 from /usr/include/openssl/bio.h:30,
                 from /usr/include/openssl/evp.h:30,
                 from openssl_auth.cpp:27:
/usr/include/openssl/cryptoerr_legacy.h:31:27: note: declared here
   31 | OSSL_DEPRECATEDIN_3_0 int ERR_load_BIO_strings(void);
      |                           ^~~~~~~~~~~~~~~~~~~~
openssl_auth.cpp: In function 'unsigned char* s3fs_md5_fd(int, off_t, off_t)':
openssl_auth.cpp:263:13: warning: 'int MD5_Init(MD5_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  263 |     MD5_Init(&md5ctx);
      |     ~~~~~~~~^~~~~~~~~
In file included from openssl_auth.cpp:29:
/usr/include/openssl/md5.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
      |                           ^~~~~~~~
openssl_auth.cpp:278:19: warning: 'int MD5_Update(MD5_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  278 |         MD5_Update(&md5ctx, buf, bytes);
      |         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/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);
      |                           ^~~~~~~~~~
openssl_auth.cpp:282:14: warning: 'int MD5_Final(unsigned char*, MD5_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  282 |     MD5_Final(result, &md5ctx);
      |     ~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/openssl/md5.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
      |                           ^~~~~~~~~

We will need to take action in the future.

Originally created by @ggtakec on GitHub (Nov 21, 2022). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2061 ### Details about issue Fedora:37 and RockyLinux:9 are based on OpenSSL 3.0. Therefore, it outputs the following warning when compiling.(the build is successful.) ``` openssl_auth.cpp: In function 'bool s3fs_init_global_ssl()': openssl_auth.cpp:54:25: warning: 'int ERR_load_BIO_strings()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 54 | ERR_load_BIO_strings(); | ~~~~~~~~~~~~~~~~~~~~^~ In file included from /usr/include/openssl/cryptoerr.h:17, from /usr/include/openssl/crypto.h:38, from /usr/include/openssl/bio.h:30, from /usr/include/openssl/evp.h:30, from openssl_auth.cpp:27: /usr/include/openssl/cryptoerr_legacy.h:31:27: note: declared here 31 | OSSL_DEPRECATEDIN_3_0 int ERR_load_BIO_strings(void); | ^~~~~~~~~~~~~~~~~~~~ openssl_auth.cpp: In function 'unsigned char* s3fs_md5_fd(int, off_t, off_t)': openssl_auth.cpp:263:13: warning: 'int MD5_Init(MD5_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 263 | MD5_Init(&md5ctx); | ~~~~~~~~^~~~~~~~~ In file included from openssl_auth.cpp:29: /usr/include/openssl/md5.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); | ^~~~~~~~ openssl_auth.cpp:278:19: warning: 'int MD5_Update(MD5_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 278 | MD5_Update(&md5ctx, buf, bytes); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /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); | ^~~~~~~~~~ openssl_auth.cpp:282:14: warning: 'int MD5_Final(unsigned char*, MD5_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 282 | MD5_Final(result, &md5ctx); | ~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/openssl/md5.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); | ^~~~~~~~~ ``` We will need to take action in the future.
kerem closed this issue 2026-03-04 01:50:53 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1039
No description provided.