Skip to content

OpenSSL 1.1.0 support - #2826

Merged
alex merged 16 commits into
pyca:masterfrom
reaperhulk:110-works
Aug 26, 2016
Merged

alex merged 16 commits into
pyca:masterfrom
reaperhulk:110-works

Conversation

@reaperhulk

Copy link
Copy Markdown
Member

This PR makes the final changes required to compile against OpenSSL 1.1.0. It must not be merged until after the thirteenth release to avoid breaking pyOpenSSL.

@reaperhulk reaperhulk added this to the 1.1.0 Support milestone Mar 14, 2016
@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @cyli, @alex and @MiWCryptAnalytics to be potential reviewers

@reaperhulk reaperhulk changed the title 1.1.0 support OpenSSL 1.1.0 support Mar 14, 2016
@codecov-io

Copy link
Copy Markdown

Current coverage is 100.00%

Merging #2826 into master will not affect coverage as of f6b791d

@@            master   #2826   diff @@
======================================
  Files          129     129       
  Stmts        14201   14201       
  Branches      1493    1493       
  Methods          0       0       
======================================
  Hit          14201   14201       
  Partial          0       0       
  Missed           0       0       

Review entire Coverage Diff as of f6b791d

Powered by Codecov. Updated on successful CI builds.

@alex

alex commented Mar 19, 2016

Copy link
Copy Markdown
Member

@reaperhulk Does pyOpenSSL 16 work ok with this PR, or do other things need to land there first?

@reaperhulk

Copy link
Copy Markdown
Member Author

We need to opaque the SSL structs still, so pyOpenSSL 16.0.0 will break with this PR. I'm going to start doing that shortly so we can potentially do a 16.1.0 that will be fully compatible with this.

@alex

alex commented Mar 19, 2016

Copy link
Copy Markdown
Member

Sounds like a plan 👍

@alex

alex commented May 30, 2016

Copy link
Copy Markdown
Member

needs more rebase

@reaperhulk
reaperhulk force-pushed the 110-works branch 2 times, most recently from 8f71d73 to 798e665 Compare May 31, 2016 18:31
@alex

alex commented May 31, 2016

Copy link
Copy Markdown
Member

The final "remove old bindings" PR should be in a seperate PR from the "use new 1.1.0 APIs" PR.

@reaperhulk
reaperhulk force-pushed the 110-works branch 4 times, most recently from c5e911f to a7b71c6 Compare June 4, 2016 17:30
@alex

alex commented Jun 4, 2016

Copy link
Copy Markdown
Member

@reaperhulk We can start landing parts of this as soon as pyOpenSSL releases 16.1.0 right?

@reaperhulk

Copy link
Copy Markdown
Member Author

Yes

@Ayrx Ayrx mentioned this pull request Jun 11, 2016
2 of 5 tasks
alex added a commit to alex/cryptography that referenced this pull request Jun 26, 2016
MACROS = """
/* CRYPTO_cleanup_all_ex_data became a macro in 1.1.0 */
void CRYPTO_cleanup_all_ex_data(void);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since this is a noop, can you remove it from this PR?

@alex

alex commented Aug 25, 2016

Copy link
Copy Markdown
Member

This needs a rebase now.

Comment thread src/_cffi_src/openssl/x509.py Outdated
void X509_CRL_get0_signature(const X509_CRL *, const ASN1_BIT_STRING **,
const X509_ALGOR **);
void X509_CRL_get0_signature(const X509_CRL *crl, const ASN1_BIT_STRING **psig,
const X509_ALGOR **palg);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

(This is a mistake in rebase, but I'll fix it when we squash this whole thing for the final PR review)

Comment thread .travis/install.sh
fi
if [[ "${OPENSSL}" == "1.1.0" ]]; then
OPENSSL_VERSION_NUMBER="1.1.0"
OPENSSL_DIR="ossl-110"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This dir should be added to the cache

@alex

alex commented Aug 26, 2016

Copy link
Copy Markdown
Member

Please add a changelog entry

@reaperhulk

Copy link
Copy Markdown
Member Author

jenkins, retest this please.


static const int CRYPTOGRAPHY_OPENSSL_LESS_THAN_101;

static const int CRYPTOGRAPHY_OPENSSL_110_OR_GREATER;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit, can you organize this below CRYPTOGRAPHY_OPENSSL_101_OR_GREATER (same structure as the previous section)

@alex
alex merged commit 07ea3cd into pyca:master Aug 26, 2016
@reaperhulk
reaperhulk deleted the 110-works branch August 26, 2016 13:50
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

4 participants