Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/base/tlsutility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@

InitializeOpenSSL();

RSA *rsa = RSA_new();

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / amazonlinux:2023

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:13

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:41

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:42

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:43

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:15.6

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:44

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:16.0

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux:9

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux/rockylinux:10

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.6

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.7

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/bci/bci-base:16.0

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:22.04

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:24.04

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.04

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.10

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:26.04

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 497 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12 (linux/386)

'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
BIGNUM *e = BN_new();

if (!rsa || !e) {
Expand All @@ -508,7 +508,7 @@

BN_set_word(e, RSA_F4);

if (!RSA_generate_key_ex(rsa, 4096, e, nullptr)) {

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / amazonlinux:2023

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:13

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:41

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:42

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:43

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:15.6

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:44

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:16.0

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux:9

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux/rockylinux:10

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.6

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.7

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/bci/bci-base:16.0

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:22.04

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:24.04

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.04

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.10

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:26.04

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 511 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12 (linux/386)

'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_peek_error(), errbuf, sizeof errbuf);
Log(LogCritical, "SSL")
<< "Error while creating RSA key: " << ERR_peek_error() << ", \"" << errbuf << "\"";
Expand All @@ -534,7 +534,7 @@
<< boost::errinfo_file_name(keyfile));
}

if (!PEM_write_bio_RSAPrivateKey(bio, rsa, nullptr, nullptr, 0, nullptr, nullptr)) {

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / amazonlinux:2023

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:13

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:41

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:42

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:43

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:15.6

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:44

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:16.0

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux:9

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux/rockylinux:10

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.6

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.7

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/bci/bci-base:16.0

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:22.04

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:24.04

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.04

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.10

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:26.04

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 537 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12 (linux/386)

'int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_peek_error(), errbuf, sizeof errbuf);
Log(LogCritical, "SSL")
<< "Error while writing private RSA key to file '" << keyfile << "': " << ERR_peek_error() << ", \"" << errbuf << "\"";
Expand Down Expand Up @@ -675,7 +675,7 @@
SHA_CTX context;
unsigned char digest[SHA_DIGEST_LENGTH];

if (!SHA1_Init(&context)) {

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / amazonlinux:2023

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:13

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:41

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:42

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:43

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:15.6

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:44

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:16.0

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux:9

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux/rockylinux:10

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.6

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.7

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/bci/bci-base:16.0

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:22.04

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:24.04

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.04

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.10

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:26.04

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 678 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12 (linux/386)

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_peek_error(), errbuf, sizeof errbuf);
Log(LogCritical, "SSL")
<< "Error on SHA1 Init: " << ERR_peek_error() << ", \"" << errbuf << "\"";
Expand All @@ -684,7 +684,7 @@
<< errinfo_openssl_error(ERR_peek_error()));
}

if (!SHA1_Update(&context, (unsigned char*)id.CStr(), id.GetLength())) {

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / amazonlinux:2023

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:13

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:41

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:42

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:43

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:15.6

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:44

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:16.0

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux:9

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux/rockylinux:10

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.6

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.7

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/bci/bci-base:16.0

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:22.04

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:24.04

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.04

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.10

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:26.04

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 687 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12 (linux/386)

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_peek_error(), errbuf, sizeof errbuf);
Log(LogCritical, "SSL")
<< "Error on SHA1 Update: " << ERR_peek_error() << ", \"" << errbuf << "\"";
Expand All @@ -693,7 +693,7 @@
<< errinfo_openssl_error(ERR_peek_error()));
}

if (!SHA1_Final(digest, &context)) {

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / amazonlinux:2023

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:13

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:41

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:42

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:43

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:15.6

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:44

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:16.0

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux:9

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux/rockylinux:10

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.6

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/suse/sle15:15.7

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/bci/bci-base:16.0

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:22.04

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:24.04

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.04

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.10

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:26.04

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 696 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12 (linux/386)

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_peek_error(), errbuf, sizeof errbuf);
Log(LogCritical, "SSL")
<< "Error on SHA1 Final: " << ERR_peek_error() << ", \"" << errbuf << "\"";
Expand Down Expand Up @@ -765,7 +765,7 @@
return std::shared_ptr<X509>();
}

rsa = PEM_read_bio_RSAPrivateKey(cakeybio, nullptr, nullptr, nullptr);

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / amazonlinux:2023

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:13

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:41

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:42

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:43

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:44

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:16.0

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux:9

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux/rockylinux:10

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/bci/bci-base:16.0

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:22.04

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:24.04

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.04

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.10

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:26.04

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 768 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12 (linux/386)

'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

if (!rsa) {
ERR_error_string_n(ERR_peek_error(), errbuf, sizeof errbuf);
Expand Down Expand Up @@ -937,7 +937,7 @@
SHA_CTX context;
unsigned char digest[SHA_DIGEST_LENGTH];

if (!SHA1_Init(&context)) {

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / amazonlinux:2023

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:13

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:41

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:42

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:43

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:16.0

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux:9

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux/rockylinux:10

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/bci/bci-base:16.0

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:22.04

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:24.04

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.04

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.10

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 940 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12 (linux/386)

'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_peek_error(), errbuf, sizeof errbuf);
Log(LogCritical, "SSL")
<< "Error on SHA Init: " << ERR_peek_error() << ", \"" << errbuf << "\"";
Expand All @@ -946,7 +946,7 @@
<< errinfo_openssl_error(ERR_peek_error()));
}

if (!SHA1_Update(&context, (unsigned char*)s.CStr(), s.GetLength())) {

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / amazonlinux:2023

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:13

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:41

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:42

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:43

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:16.0

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux:9

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux/rockylinux:10

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/bci/bci-base:16.0

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:22.04

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:24.04

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.04

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.10

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 949 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12 (linux/386)

'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_peek_error(), errbuf, sizeof errbuf);
Log(LogCritical, "SSL")
<< "Error on SHA Update: " << ERR_peek_error() << ", \"" << errbuf << "\"";
Expand All @@ -955,7 +955,7 @@
<< errinfo_openssl_error(ERR_peek_error()));
}

if (!SHA1_Final(digest, &context)) {

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / amazonlinux:2023

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:13

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:41

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:42

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / fedora:43

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / opensuse/leap:16.0

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux:9

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / rockylinux/rockylinux:10

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / registry.suse.com/bci/bci-base:16.0

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:22.04

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:24.04

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.04

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / ubuntu:25.10

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Check warning on line 958 in lib/base/tlsutility.cpp

View workflow job for this annotation

GitHub Actions / debian:12 (linux/386)

'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_peek_error(), errbuf, sizeof errbuf);
Log(LogCritical, "SSL")
<< "Error on SHA Final: " << ERR_peek_error() << ", \"" << errbuf << "\"";
Expand Down Expand Up @@ -1049,7 +1049,7 @@
static const char hexdigits[] = "0123456789abcdef";

String output(2*length, 0);
for (int i = 0; i < SHA_DIGEST_LENGTH; i++) {
for (size_t i = 0; i < length; i++) {
output[2 * i] = hexdigits[data[i] >> 4];
output[2 * i + 1] = hexdigits[data[i] & 0xf];
}
Expand Down
22 changes: 22 additions & 0 deletions test/base-tlsutility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,26 @@ BOOST_FIXTURE_TEST_CASE(create_verify_leaf_certs, CertificateFixture,
ASSERT_SIGNATURE_FAILURE(cacert, StringToCertificate(CertificateToString(newCert)));
}

BOOST_AUTO_TEST_CASE(binary_to_hex)
{
using namespace std::string_view_literals;

// Helper to call with string_view and to cast from char to unsigned char.
auto f = [](std::string_view s) {
return BinaryToHex(reinterpret_cast<const unsigned char*>(s.data()), s.length());
};

// Hint: test data can be generated/verified with commands like this: printf ICINGA | xxd -p -c 0
BOOST_CHECK_EQUAL(f(""sv), "");
BOOST_CHECK_EQUAL(f("ICINGA"sv), "4943494e4741");
BOOST_CHECK_EQUAL(f("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"sv),
"6162636465666768696a6b6c6d6e6f707172737475767778797a4142434445464748494a4b4c4d4e4f505152535455565758595a");
BOOST_CHECK_EQUAL(f("handles\0correctly"sv), "68616e646c657300636f72726563746c79");
BOOST_CHECK_EQUAL(f("\0\0\0\0\0"sv), "0000000000");

// Long string of 10000 * 'D' (= 0x44) should become 10000 * '44' = 20000 * '4':
BOOST_CHECK_EQUAL(f(std::string(10000, 0x44)), std::string(20000, '4'));

}

BOOST_AUTO_TEST_SUITE_END()
Loading