commit | 9e4eeae807667e5ee5e5175f05ee3cea8e1beb7f | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@divmod.com> | Sun Aug 22 21:32:52 2010 -0400 |
committer | Jean-Paul Calderone <exarkun@divmod.com> | Sun Aug 22 21:32:52 2010 -0400 |
tree | 94925e83135334061032a9eaa3b1f909836eb245 | |
parent | b894fe16ee7607cd4e51bc445c51f3cc8a06d986 [diff] [blame] |
Fix the import_crypto_module helper and factor some str/unicode helpers into the test util module
diff --git a/OpenSSL/ssl/context.c b/OpenSSL/ssl/context.c index d4cae75..d6c844b 100644 --- a/OpenSSL/ssl/context.c +++ b/OpenSSL/ssl/context.c
@@ -376,7 +376,7 @@ name_attr = asciiname; } #endif - right_name = (PyText_CheckExact(name_attr) && + right_name = (PyBytes_CheckExact(name_attr) && strcmp(name, PyBytes_AsString(name_attr)) == 0); Py_DECREF(name_attr); res = (PyTypeObject *)type;