Bugzilla – Attachment 1938 Details for
Bug 1830
Patch to get py-bcrypt to build for Python 2.6 on Windows
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for building on Win32
win32-fixes.patch (text/plain), 774 bytes, created by
Rasjid
on 2010-10-19 12:08:46 AEDT
(
hide
)
Description:
Patch for building on Win32
Filename:
MIME Type:
Creator:
Rasjid
Created:
2010-10-19 12:08:46 AEDT
Size:
774 bytes
patch
obsolete
>diff -ur py-bcrypt-0.2/bcrypt/bcrypt_python.c py-bcrypt-0.2-winfixes/bcrypt/bcrypt_python.c >--- py-bcrypt-0.2/bcrypt/bcrypt_python.c 2009-10-01 23:09:52.000000000 +1000 >+++ py-bcrypt-0.2-winfixes/bcrypt/bcrypt_python.c 2010-10-05 17:50:25.000000000 +1100 >@@ -68,13 +68,15 @@ > static char *keywords[] = { "password", "salt", NULL }; > char *password = NULL, *salt = NULL; > char *ret; >+ char *password_copy; >+ char *salt_copy; > > if (!PyArg_ParseTupleAndKeywords(args, kw_args, "ss:hashpw", keywords, > &password, &salt)) > return NULL; > >- char *password_copy = strdup(password); >- char *salt_copy = strdup(salt); >+ password_copy = strdup(password); >+ salt_copy = strdup(salt); > > Py_BEGIN_ALLOW_THREADS; > ret = pybc_bcrypt(password_copy, salt_copy);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1830
: 1938 |
1941