File definitions-ERR_GET.patch of Package saltbundlepy-cryptography
--- a/src/_cffi_src/openssl/err.py +++ b/src/_cffi_src/openssl/err.py @@ -38,12 +38,10 @@ unsigned long ERR_peek_error(void); void ERR_clear_error(void); void ERR_put_error(int, int, int, const char *, int); - -int ERR_GET_LIB(unsigned long); -int ERR_GET_FUNC(unsigned long); -int ERR_GET_REASON(unsigned long); - """ CUSTOMIZATIONS = """ +# define ERR_GET_LIB(l) (int)(((l) >> 24L) & 0x0FFL) +# define ERR_GET_FUNC(l) (int)(((l) >> 12L) & 0xFFFL) +# define ERR_GET_REASON(l) (int)( (l) & 0xFFFL) """