Skip to content

Commit

Permalink
Allow GSI-OpenSSH w/HPN 9.3p1 to compile with OpenSSL versions < 1.1.x
Browse files Browse the repository at this point in the history
Patch courtesy of @msalle
  • Loading branch information
fscheiner committed Dec 17, 2023
1 parent b39b70a commit 2c9ca0f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gsi_openssh/source/ssh-rsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,16 @@ ssh_rsa_deserialize_private(const char *ktype, struct sshbuf *b,
return r;
}

#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
static int RSA_bits(const RSA *r);

static int
RSA_bits(const RSA *r)
{
return BN_num_bits(r->n);
}
#endif

static const char *
rsa_hash_alg_ident(int hash_alg)
{
Expand Down

0 comments on commit 2c9ca0f

Please sign in to comment.