aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-30 06:42:24 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-30 06:42:24 -0700
commitd598eafe2eedf7e077ad638612622a2b637fe959 (patch)
treea09a6b86b3007e3700dbd8141995b3bc694de5f0
parenteeb14fd91c117acb8138ce4e29323da367d8e2ef (diff)
parent147703e9db15f4fddf13afc354a52e9777eb2dae (diff)
downloadcryptography-d598eafe2eedf7e077ad638612622a2b637fe959.tar.gz
cryptography-d598eafe2eedf7e077ad638612622a2b637fe959.tar.bz2
cryptography-d598eafe2eedf7e077ad638612622a2b637fe959.zip
Merge branch 'master' into verify-interfaces
-rwxr-xr-x.travis/install.sh73
-rw-r--r--cryptography/hazmat/bindings/openssl/evp.py2
2 files changed, 33 insertions, 42 deletions
diff --git a/.travis/install.sh b/.travis/install.sh
index af4d8704..51d3097c 100755
--- a/.travis/install.sh
+++ b/.travis/install.sh
@@ -9,30 +9,13 @@ else
DARWIN=false
fi
-if [[ "${OPENSSL}" == "0.9.8" ]]; then
- if [[ "$DARWIN" = false ]]; then
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ lucid main"
- sudo apt-get -y update
- sudo apt-get install -y --force-yes libssl-dev/lucid
- fi
-else
- if [[ "$DARWIN" = true ]]; then
- brew update
- brew upgrade openssl
- fi
-fi
+if [[ "$DARWIN" = true ]]; then
+ brew update
-if [[ "${TOX_ENV}" == "docs" ]]; then
- if [[ "$DARWIN" = true ]]; then
- brew update
- brew install enchant
- else
- sudo apt-get -y update
- sudo apt-get install libenchant-dev
+ if [[ "${OPENSSL}" != "0.9.8" ]]; then
+ brew upgrade openssl
fi
-fi
-if [[ "$DARWIN" = true ]]; then
if which pyenv > /dev/null; then
eval "$(pyenv init -)"
fi
@@ -41,53 +24,58 @@ if [[ "$DARWIN" = true ]]; then
py26)
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
- sudo pip install virtualenv
;;
py27)
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
- sudo pip install virtualenv
- ;;
- pypy)
- brew update
- brew upgrade pyenv
- pyenv install pypy-2.4.0
- pyenv global pypy-2.4.0
- pip install virtualenv
;;
py32)
- brew update
brew upgrade pyenv
pyenv install 3.2.6
pyenv global 3.2.6
- pip install virtualenv
;;
py33)
- brew update
brew upgrade pyenv
pyenv install 3.3.6
pyenv global 3.3.6
- pip install virtualenv
;;
py34)
- brew update
brew upgrade pyenv
pyenv install 3.4.2
pyenv global 3.4.2
- pip install virtualenv
+ ;;
+ py3pep8)
+ sudo apt-get install python3.3 python3.3-dev
+ ;;
+ pypy)
+ brew upgrade pyenv
+ pyenv install pypy-2.4.0
+ pyenv global pypy-2.4.0
;;
docs)
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
- sudo pip install virtualenv
;;
esac
pyenv rehash
+
else
- # add mega-python ppa
sudo add-apt-repository -y ppa:fkrull/deadsnakes
+
+ if [[ "${TOX_ENV}" == "pypy" ]]; then
+ sudo add-apt-repository -y ppa:pypy/ppa
+ fi
+
+ if [[ "${OPENSSL}" == "0.9.8" ]]; then
+ sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ lucid main"
+ fi
+
sudo apt-get -y update
+ if [[ "${OPENSSL}" == "0.9.8" ]]; then
+ sudo apt-get install -y --force-yes libssl-dev/lucid
+ fi
+
case "${TOX_ENV}" in
py26)
sudo apt-get install python2.6 python2.6-dev
@@ -105,14 +93,15 @@ else
sudo apt-get install python3.3 python3.3-dev
;;
pypy)
- sudo add-apt-repository -y ppa:pypy/ppa
- sudo apt-get -y update
- sudo apt-get install -y --force-yes pypy pypy-dev
+ sudo apt-get install --force-yes pypy pypy-dev
+ ;;
+ docs)
+ sudo apt-get install libenchant-dev
;;
esac
- sudo pip install virtualenv
fi
+sudo pip install virtualenv
virtualenv ~/.venv
source ~/.venv/bin/activate
pip install tox coveralls
diff --git a/cryptography/hazmat/bindings/openssl/evp.py b/cryptography/hazmat/bindings/openssl/evp.py
index 11834509..033b083b 100644
--- a/cryptography/hazmat/bindings/openssl/evp.py
+++ b/cryptography/hazmat/bindings/openssl/evp.py
@@ -120,6 +120,8 @@ int EVP_PKEY_add1_attr_by_NID(EVP_PKEY *, int, int,
const unsigned char *, int);
int EVP_PKEY_add1_attr_by_txt(EVP_PKEY *, const char *, int,
const unsigned char *, int);
+
+int EVP_PKEY_cmp(const EVP_PKEY *, const EVP_PKEY *);
"""
MACROS = """