Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to openssl-1-1-1 #16

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

gwbres
Copy link

@gwbres gwbres commented Feb 27, 2021

@ggreer,

Hello,

This is my attempt at upgrading your library to comply with (at least) openssl-1-1-1d (because that's the current version I have here).

We're facing problems only in ssh.c and sshcrypto.c, the problem is the access to ''bignumbers'' contained in *RSA structure is not public anymore, we need to use the new API.

*RSA->key->e and *RSA->key->n are not accessible, we must use RSA_get0_key(), see https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes. This is what I did in ssh.c

In ssh.c->connect() an RSA context is created, we need to use the new API (BN_new() is not available anymore),
good infos here https://stackoverflow.com/questions/16437475/openssl-bn-ctx-usage

@gwbres gwbres marked this pull request as ready for review February 27, 2021 18:50
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.

1 participant