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

OpenSSL 1.1 compatibility #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pollolobo
Copy link

@pollolobo pollolobo commented Mar 6, 2017

Resolves tg issue #1248 / #1256 by accessing opaque structures as advised in https://wiki.openssl.org/index.php/1.1_API_Changes

@BenWiederhake
Copy link
Contributor

Thanks! I vaguely remember having to hack together a lot of things so that all structures end up being opaque to the rest of tgl. Most of the changes are pretty reasonable and look like they're exclusively due to the API change.

I'd like to ask a few things though:

  • This repo is mostly dead. For telegram-purple, which depends on tgl, we kinda-maintain a fork, so could you please open a PR there, too?
  • Why retain #define RSA_GETTER(M)? That was just there to remove code duplication.
  • Why the empty lines? (Specifically, lines 82, 96, 100, 107, 121.) Is it a typo, or is there some black magic going on?

Other than that, it looks good to me. Again, thanks for the effort and sharing!

@pollolobo
Copy link
Author

Thank you!
I have removed the commented out lines and the spaces and I'm opening the PR in a minute.

Copy link

@regalstreak regalstreak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great. Thanks! +2

@matthiasbock
Copy link

@vysheng This PR has been open for a while now and fixes a problem, that is still relevant. Is there a reason, why it has not been merged yet? I'm just curious, if I can maybe help out.

@BenWiederhake
Copy link
Contributor

Have you seen @vysheng around this year? Anywhere? Me neither. That's why.

He's busy with life, he has the right to do that :P
And to make sure tgp can continue to use it, we forked it.

@greg-benner-klick-sensei
Copy link

greg-benner-klick-sensei commented Aug 27, 2018

@BenWiederhake I tried the fork with the same

error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'
   ret->e = unwrap_bn (TGLC_bn_new ());

in Ubuntu. Looks like an OpenSSL issue still.

@BenWiederhake
Copy link
Contributor

The quoted line does not exist on the patched branch. Are you sure <ou tested branch "dev-1.4.0"? (Named after the telegram-purple version.)

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.

5 participants