Openssl 4.0#245
Conversation
|
Hi Mattias, Was anything also tested after those changes? |
I didn't do any additional testing other than running all the tests in Most of the changes are related to replacing direct access to the fields in ASN1_STRING (.data, .length, .type) with calls to ASN1_STRING_get0_data(), ASN1_STRING_length() and ASN1_STRING_type() since the type has been made opaque. And similarly using ASN1_STRING_set() to change the string instead of changing the fields directly. Other changes are declaring some things const to match changes in the OpenSSL headers, in a few instances conditionaly depending on the OpenSSL version where needed. |
|
Hi Mattias, |
I had some time in between and did some build and run-time checks using LCMAPS, which tests a few different globus libraries, see below. Globus packages tested by the lcas-lcmaps-gt4-interface: and in a different setup, using a run used by lcmaps in e.g. gLExec and the like (via llrun): |
|
Bugs have been filed in Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1138316 myproxy |
|
@msalle , @ellert : But GSI-OpenSSH won't build with OpenSSL 4.x, because of the use of @rapier1: Do you plan to support HPN-SSH builds with OpenSSL 4.x in the near future? :-) tl;dr Then I wanted to build our in-tree GSI-OpenSSH 10.0 on Debian Sid against OpenSSL 4.x to test its workings. But it looks like this needs some additional preprocessor configurations to allow building on Debian (e.g. there's no #ifdef OPENSSL_FIPS
#include <openssl/fips.h>
#endif...for example. This solves one issue with Debian. But there's also at least one issue with OpenSSL 4.x and the HPN patches - ...which comes from: void
cipher_free(struct sshcipher_ctx *cc)
{
[...]
#ifdef WITH_OPENSSL
EVP_CIPHER_CTX_free(cc->evp);
cc->evp = NULL;
/* if meth_ptr isn't null then we are using the aes_ctr_mt
* evp_cipher_meth_new() in cipher-ctr-mt.c under OSSL 1.1
* if we don't explicitly free it then, even though we free
* the ctx it is a part of it doesn't get freed. So...
* cjr 2/7/2023
*/
if (cc->meth_ptr != NULL) {
EVP_CIPHER_meth_free((void *)(EVP_CIPHER *)cc->meth_ptr);
cc->meth_ptr = NULL;
}
#endif
[...]
}HPN-SSH upstream also still has So I guess, GSI-OpenSSH won't build with OpenSSL 4.x for now. |
Fixes for compiling with OpenSSL 4.
The first commit only changes tabs and spaces (
git diff --ignore-all-spaceis empty). It just fixes inconsistent whitespace in the files that are modified in later commits.The secons commit contains the changes for OpenSSL 4.
The third commit fixes some compiler and doxygen warnings unrelated to the UpenSSL 4 update.
The last commit contains the version increase andcorresponding packaging file update.