Skip to content

avoid deprecated ERR_load_crypto_strings API#650

Open
vapier wants to merge 1 commit intoopenssh:masterfrom
vapier:openssl-1.1.1
Open

avoid deprecated ERR_load_crypto_strings API#650
vapier wants to merge 1 commit intoopenssh:masterfrom
vapier:openssl-1.1.1

Conversation

@vapier
Copy link
Copy Markdown
Contributor

@vapier vapier commented Apr 2, 2026

This function was deprecated in 1.1.0 which setting OpenSSL API compt to 0x10100000L disables the API. Trying to build with OpenSSL 1.1.1w fails now with:

ssherr-libcrypto.c:39:2: error:
  call to undeclared function 'ERR_load_crypto_strings';
  ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   39 |         ERR_load_crypto_strings();
      |         ^

From the OpenSSL CHANGES file:

However, applications are strongly advised to compile their source files with -DOPENSSL_API_COMPAT=0x10100000L, which hides the declarations of all interfaces deprecated in 0.9.8, 1.0.0 or the 1.1.0 releases.

Switch to the replacement API which is available in OpenSSL 1.1.1 (the oldest OpenSSH supports) and all current versions.

This function was deprecated in 1.1.0 which setting OpenSSL API compt
to 0x10100000L disables the API.  Trying to build with OpenSSL 1.1.1w
fails now with:
ssherr-libcrypto.c:39:2: error:
  call to undeclared function 'ERR_load_crypto_strings';
  ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   39 |         ERR_load_crypto_strings();
      |         ^

From the OpenSSL CHANGES file:
> However, applications are strongly advised to compile their source files with
> -DOPENSSL_API_COMPAT=0x10100000L, which hides the declarations of all interfaces
> deprecated in 0.9.8, 1.0.0 or the 1.1.0 releases.

Switch to the replacement API which is available in OpenSSL 1.1.1 (the
oldest OpenSSH supports) and all current versions.
@ddekob15-boop
Copy link
Copy Markdown

شكراً

@ddekob15-boop
Copy link
Copy Markdown

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants