aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-16 14:52:54 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-16 14:52:54 -0700
commitb98118f59f1f6ba79f3b5cdd705ebc56f9ec9f34 (patch)
tree47c1ced584808b400bb687d8ce297f606c385027
parent1ab3aa47898b70f3329c17854c913e7511486787 (diff)
parent48ac3e60e27ddb41937872f151d340388d5ba803 (diff)
downloadcryptography-b98118f59f1f6ba79f3b5cdd705ebc56f9ec9f34.tar.gz
cryptography-b98118f59f1f6ba79f3b5cdd705ebc56f9ec9f34.tar.bz2
cryptography-b98118f59f1f6ba79f3b5cdd705ebc56f9ec9f34.zip
Merge pull request #105 from Ivoz/ssl-fix
Explicitly add ssl.h as dependency
-rw-r--r--cryptography/bindings/openssl/api.py7
-rw-r--r--cryptography/bindings/openssl/err.py1
-rw-r--r--cryptography/bindings/openssl/ssl.py26
3 files changed, 30 insertions, 4 deletions
diff --git a/cryptography/bindings/openssl/api.py b/cryptography/bindings/openssl/api.py
index 02ba8fd4..f1a2c087 100644
--- a/cryptography/bindings/openssl/api.py
+++ b/cryptography/bindings/openssl/api.py
@@ -26,17 +26,18 @@ class API(object):
"""
_modules = [
"bignum",
- "conf",
"bio",
+ "conf",
"crypto",
"dh",
"dsa",
"engine",
"err",
"evp",
+ "opensslv",
"rand",
"rsa",
- "opensslv",
+ "ssl",
]
def __init__(self):
@@ -71,7 +72,7 @@ class API(object):
# int foo(short);
self.lib = self.ffi.verify(
source="\n".join(includes + functions),
- libraries=["crypto"],
+ libraries=["crypto", "ssl"],
)
self.lib.OpenSSL_add_all_algorithms()
diff --git a/cryptography/bindings/openssl/err.py b/cryptography/bindings/openssl/err.py
index ffb6096a..76c34a03 100644
--- a/cryptography/bindings/openssl/err.py
+++ b/cryptography/bindings/openssl/err.py
@@ -24,7 +24,6 @@ typedef struct ERR_string_data_st ERR_STRING_DATA;
"""
FUNCTIONS = """
-void SSL_load_error_strings();
void ERR_load_crypto_strings();
void ERR_free_strings();
char* ERR_error_string(unsigned long, char *);
diff --git a/cryptography/bindings/openssl/ssl.py b/cryptography/bindings/openssl/ssl.py
new file mode 100644
index 00000000..8aca86e4
--- /dev/null
+++ b/cryptography/bindings/openssl/ssl.py
@@ -0,0 +1,26 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+INCLUDES = """
+#include <openssl/ssl.h>
+"""
+
+TYPES = """
+"""
+
+FUNCTIONS = """
+void SSL_load_error_strings();
+"""
+
+MACROS = """
+"""