File strongswan_s390x-crash_64bit-fix.diff of Package strongswan
--- strongswan-4.2.8/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c
+++ strongswan-4.2.8/src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c 2009/08/07 11:35:36
@@ -78,6 +78,8 @@ static bool build_emsa_pkcs1_signature(p
{
bool success = FALSE;
const EVP_MD *hasher = EVP_get_digestbynid(type);
+ u_int len;
+
if (!hasher)
{
return FALSE;
@@ -107,7 +109,7 @@ static bool build_emsa_pkcs1_signature(p
*signature = chunk_alloc(RSA_size(this->rsa));
- if (!EVP_SignFinal(ctx, signature->ptr, &signature->len, key))
+ if (!EVP_SignFinal(ctx, signature->ptr, &len, key))
{
goto error;
}