Giter VIP home page Giter VIP logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Correct patch file for bcrypt.c

Original comment by [email protected] on 20 May 2013 at 11:27

Attachments:

from py-bcrypt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Built okay on CentOS 6.3 with gcc 4.4.6.

Original comment by [email protected] on 20 May 2013 at 2:14

from py-bcrypt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
There is a typo, I meant py-bcrypt 0.3 on Windows 7. MinGW is gcc 4.6.2.


Original comment by [email protected] on 20 May 2013 at 2:18

from py-bcrypt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Could you please try the current hg tip? It has a number of fixes for windows 
that seem roughly equivalent to these. Unfortunately, I don't have access to 
MSVC anymore to test on Windows.

Original comment by [email protected] on 28 Jul 2013 at 12:03

  • Changed state: Started

from py-bcrypt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
The u_int8_t, etc. typedefs are in pybc_blf.h but not bcrypt_python.c. Patch 
attached to remedy that.

I do not have MSVC either, this is tested with MinGW.

Original comment by [email protected] on 28 Jul 2013 at 10:26

Attachments:

from py-bcrypt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Thanks for the quick response. Sorry about that, I thought bcrypt_python 
included the header for some reason but it didn't. It does now :) 

Please give tip another try. There is some new code there that may have other 
problems on Windows.

Original comment by [email protected] on 29 Jul 2013 at 5:24

from py-bcrypt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Indeed it does. There are three problems, with fixes or advice.

1 u_int*_t missing in places:
Patch pre2 attached which creates pybc_types.h.

2 Various warnings about pointer signedness:
I have not addressed these, you should either fix the declarations or insert 
casts.

3 Error for BYTE_ORDER undefined in sha2.c:
That is tricky to deal with portably in the preprocessor. Patch pre3 uses a 
code snippet I have used in the past which determines endianness at compile 
time.

Original comment by [email protected] on 29 Jul 2013 at 9:26

Attachments:

from py-bcrypt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Thanks for your patience in testing.

I don't think pre2 is necessary - pybc_sha2.h is only ever included after 
pybc_blf.h which contains the type definitions. The definitions in pybc_blf.h 
were missing u_int64_t for windows systems without stdint.h, so I've added it 
now.

tip also has a slightly different endian test and fixes all the 
pointer-signedness warnings on the platforms I have available.

Could you give it another try?

Original comment by [email protected] on 29 Jul 2013 at 12:26

from py-bcrypt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
That has fixed the errors and warnings now, thanks. I have successfully built 
and run test/test.py, passing all 5 tests.

Python 2.7.5
Windows 7 64-bit (though using 32 bit Python and py-bcrypt)
MinGW gcc version 4.6.2


Original comment by [email protected] on 29 Jul 2013 at 1:15

from py-bcrypt.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Excellent - thanks for your help!

Original comment by [email protected] on 29 Jul 2013 at 10:00

  • Changed state: Fixed

from py-bcrypt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.