Skip to content

Commit

Permalink
fix #664 (#665)
Browse files Browse the repository at this point in the history
* fix #664

bytes and strings are different things.

* update changelog

* let's just make the sentinel values byte strings

* flake8
  • Loading branch information
reaperhulk authored and alex committed Jul 19, 2017
1 parent 7f5610c commit a92a1a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Deprecations:
Changes:
^^^^^^^^

- Fixed a bug causing ``Context.set_default_verify_paths()`` to not work with
cryptography ``manylinux1`` wheels on Python 3.x.
`#665 </~https://github.com/pyca/pyopenssl/pull/665>`_

*none*


Expand Down
6 changes: 4 additions & 2 deletions src/OpenSSL/SSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ class _buffer(object):
"/etc/ssl/certs", # SLES10/SLES11
]

_CRYPTOGRAPHY_MANYLINUX1_CA_DIR = "/opt/pyca/cryptography/openssl/certs"
_CRYPTOGRAPHY_MANYLINUX1_CA_FILE = "/opt/pyca/cryptography/openssl/cert.pem"
# These values are compared to output from cffi's ffi.string so they must be
# byte strings.
_CRYPTOGRAPHY_MANYLINUX1_CA_DIR = b"/opt/pyca/cryptography/openssl/certs"
_CRYPTOGRAPHY_MANYLINUX1_CA_FILE = b"/opt/pyca/cryptography/openssl/cert.pem"


class Error(Exception):
Expand Down

0 comments on commit a92a1a7

Please sign in to comment.