Skip to content

Use OpenSSL-Win32#92

Merged
defunctzombie merged 1 commit intokelektiv:masterfrom
seanmonstar:windows
Aug 3, 2012
Merged

Use OpenSSL-Win32#92
defunctzombie merged 1 commit intokelektiv:masterfrom
seanmonstar:windows

Conversation

@seanmonstar
Copy link
Contributor

Then OpenSSL website suggests that the library be downloaded for Windows from http://slproweb.com/products/Win32OpenSSL.html. This should probably be the recommended method for all Windows users.

This expects that to have been downloaded, and installed in the default location, C:\OpenSSL-Win32.

@travisbot
Copy link

This pull request passes (merged 3b92160 into d96e100).

@crazycactuz
Copy link

Does this mean that i can get this working on windows?

@seanmonstar
Copy link
Contributor Author

It builds fine for me. Follow the intructions in up in the PR description, and it should work for you too.

@seanmonstar
Copy link
Contributor Author

@shtylman @ncb000gt does this seem sane?

@ncb000gt
Copy link
Member

Sorry, been busy so I haven't been able to look at it. And, I'm going away (omg no technology) this weekend, but will look at it when I get back.

@defunctzombie
Copy link
Collaborator

There are a few things I don't like about the code changes. I am not sure if it was ever made clear why we have to have the EncodeBinary method versus the current Encode method. There are also some other changes type to n which seem more serious than just for "compatibility" but I haven't looked closer at it.

@travisbot
Copy link

This pull request passes (merged 7fe2f35 into d96e100).

@defunctzombie
Copy link
Collaborator

No need to include the nodeunit change as I just pushed a change which does it in a slightly different way. (Don't like the rebuild for every npm test invocation if not needed)

@seanmonstar
Copy link
Contributor Author

@shtylman so, what is needed?

  1. @weareu explained the new EncodeBinary method
  2. npm test is in master, so that can be rebased out.

@defunctzombie
Copy link
Collaborator

@seanmonstar Would like the EncodeBinary method to go away. Encode is in the node.h header so I don't see why it can't be used. If you could check on windows that it works without that I think that would be quite swell.

@seanmonstar
Copy link
Contributor Author

@shtylman replacing EncodeBinary with Encode makes the compilation fail with unresolved external symbol ... node::Encode(...)

@defunctzombie
Copy link
Collaborator

@seanmonstar we shall see what is said about that: nodejs/node-v0.x-archive#3811

Ideally they will export it. Then the patch for windows will be even smaller :)

@seanmonstar
Copy link
Contributor Author

@shtylman that'd be great, but it would also make the minimum version of bcrypt be nodejs 0.8.6 or whenever it landed.

@defunctzombie
Copy link
Collaborator

Looks like that function is now marked as external in the latest master. If you could give that a shot without the EncodeBinary function I think the modified pull request will be good to go.

@seanmonstar
Copy link
Contributor Author

It's in the 0.8.5 branch, so alter the package.json to have "engines": { "node": ">=0.8.5" } ?

@defunctzombie
Copy link
Collaborator

No need for that. This is for windows only so I don't want to lock down the package.json this tightly for everyone. I realize it is an annoyance for windows testing, but it will at least begin to work :)

@seanmonstar
Copy link
Contributor Author

There's the updated and rebased PR, using Encode from 0.8.5.

@travisbot
Copy link

This pull request fails (merged 70c2fba into 0f43c88).

@seanmonstar
Copy link
Contributor Author

Eh, that's what I get for force pushing in short succession: travis-ci ran
a test against a now non-existent commit.

@travisbot
Copy link

This pull request fails (merged b8be6a5 into 0f43c88).

@travisbot
Copy link

This pull request passes (merged 55d3dd8 into 0f43c88).

@defunctzombie
Copy link
Collaborator

Please squash these commits. There is no need to have a commit which adds EncodeBinary and then one that removes it right away. Really all three of these commits can become one windows compat commit

@seanmonstar
Copy link
Contributor Author

OK, I converted all the changes into a single commit.

@travisbot
Copy link

This pull request fails (merged d8699d4 into 0f43c88).

- Win32 code
- updating binding.gyp to work with Windows

expects user to have downloaded OpenSSL-Win32 from
http://slproweb.com/products/Win32OpenSSL.html and installed
in default location, C:/OpenSSL-Win32
@travisbot
Copy link

This pull request passes (merged 0357a0e into 0f43c88).

defunctzombie added a commit that referenced this pull request Aug 3, 2012
windows support

Thank you to everyone who persisted and helped make this happen :)
@defunctzombie defunctzombie merged commit 2c34bc7 into kelektiv:master Aug 3, 2012
This was referenced Aug 3, 2012
@ncb000gt
Copy link
Member

ncb000gt commented Aug 3, 2012

Well, I never thought it would happen but the tests all pass on my version of windows. BUT, windows support requires v0.8.5+ of nodeJS.

Still, this is great. I'll add some docs and stuff either tonight or tomorrow and get a release out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants