aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-02 10:21:17 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-02 10:21:17 -0700
commit678149022b84ce275489afef4edf84a34a3074c1 (patch)
tree0d72a8ea548675e6bf3dd0bbff172d2890ca7d73
parentdccaf36474ab55c6530d8fb5d8df07546d1f21f1 (diff)
downloadcryptography-678149022b84ce275489afef4edf84a34a3074c1.tar.gz
cryptography-678149022b84ce275489afef4edf84a34a3074c1.tar.bz2
cryptography-678149022b84ce275489afef4edf84a34a3074c1.zip
Added an explanatory comment
-rw-r--r--cryptography/bindings/openssl/api.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/cryptography/bindings/openssl/api.py b/cryptography/bindings/openssl/api.py
index f9c75e64..93863b31 100644
--- a/cryptography/bindings/openssl/api.py
+++ b/cryptography/bindings/openssl/api.py
@@ -43,6 +43,14 @@ class API(object):
functions.append(module.FUNCTIONS)
includes.append(module.INCLUDES)
+ # We include functions here so that if we got any of their definitions
+ # wrong, the underlying C compiler will explode. In C you are allowed
+ # to re-declare a function if it has the same signature. That is:
+ # int foo(int);
+ # int foo(int);
+ # is legal, but the following will fail to compile:
+ # int foo(int);
+ # int foo(short);
self.lib = self.ffi.verify(
source="\n".join(includes + functions),
libraries=["crypto"],