Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding test for the Visual Studio compile, plus some fixes #53

Merged
merged 8 commits into from
Jun 28, 2017
Merged

Adding test for the Visual Studio compile, plus some fixes #53

merged 8 commits into from
Jun 28, 2017

Conversation

huitema
Copy link
Collaborator

@huitema huitema commented Jun 26, 2017

The Visual Studio project includes a basic test: a console application that performs a handshake "in memory", thus exercising both server and client functions.

@kazuho
Copy link
Member

kazuho commented Jun 28, 2017

Thank you very much for working on this. I think that I can merge this.

OTOH, have you looked at (or is the windows port already) building and running t/openssl.c? It runs a series of unit tests including TLS handshakes in various modes (e.g., full handshake, abbreviated, 0-RTT). IMO running that as well would help us find issues at an early stage.

@huitema
Copy link
Collaborator Author

huitema commented Jun 28, 2017

Yes, I should try running the tests. But I also wanted to do something very simple to check that I understand the way to use the libraries. I plan to use it in my implementation of QUIC, https://github.com/private-octopus/picoquic, and so I am actually interested in the "in memory configuration".

@kazuho kazuho merged commit 8e5b62e into h2o:master Jun 28, 2017
kazuho added a commit that referenced this pull request Jun 28, 2017
@kazuho
Copy link
Member

kazuho commented Jun 28, 2017

Thank you for the clarification! That makes sense, and I am looking forward to seeing picotls used in picoquic!

I have merged the PR with little tweaks.

Regarding the changes, I saw static in array size specifiers (i.e. [static NN]) being removed from header files but not from the source files. Is your intention to improve C89 compatibility with your code, while compiling picotls using C99?

I am fine with the PR (hence merged), but would like to understand the requirements so that we could have less issues when adding new features.

@huitema
Copy link
Collaborator Author

huitema commented Jun 28, 2017 via email

@kazuho
Copy link
Member

kazuho commented Jun 28, 2017

You are right, this is inconsistent. I will investigate further in due time -- although right now my priority is to get picoquic in shape for the hackathon at the Prague IETF.

Thank you for the response. No need to hurry. I am perfectly fine with fixing things as issues arise; we have no need to ship code that successfully compiles everywhere.

I should write a paper about this porting issues. That would be good for everybody...

I would appreciate that. OTOH I wonder if we could have a CI running on Windows. Having that would help me (or any other people with no access to Visual Studio) see and fix the issues myself.

@huitema
Copy link
Collaborator Author

huitema commented Jun 28, 2017 via email

@kazuho
Copy link
Member

kazuho commented Jun 28, 2017

Thank you for the response.

I was considering of something like Travis CI that supports running tests on Windows.

We currently run Travis for every commit we make (either by directly pushing it to the repo or through pull requests; please refer to https://travis-ci.org/h2o/picotls/). However Travis only supports running tests on Linux or Mac.

Doing some googling tells me that AppVeyor might be providing such service. But I am not sure if actually usable in our use-case or not.

kazuho added a commit that referenced this pull request Jun 29, 2017
@huitema
Copy link
Collaborator Author

huitema commented Jun 29, 2017 via email

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.

2 participants