Merge pull request #181 from reaperhulk/error-handling
Add some error parsing macros
diff --git a/cryptography/bindings/openssl/err.py b/cryptography/bindings/openssl/err.py
index 76c34a0..39ae315 100644
--- a/cryptography/bindings/openssl/err.py
+++ b/cryptography/bindings/openssl/err.py
@@ -51,4 +51,9 @@
"""
MACROS = """
+unsigned long ERR_PACK(int, int, int);
+int ERR_GET_LIB(unsigned long);
+int ERR_GET_FUNC(unsigned long);
+int ERR_GET_REASON(unsigned long);
+int ERR_FATAL_ERROR(unsigned long);
"""