-
Notifications
You must be signed in to change notification settings - Fork 173
async signing #422
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
Merged
Merged
async signing #422
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
ded17f2
add PTLS_ERROR_ASYNC_OPERATION application error
sharksforarms aa4f09a
add async capabilities to openssl implementation
sharksforarms 4d6f6cd
fix minicrypto and uecc impls
sharksforarms 2b4aff9
test async api
sharksforarms f7ea678
internally buffer the write buffer
sharksforarms 621509b
Revert "internally buffer the write buffer"
sharksforarms 4ab5ba7
internally buffer the asynchronous data
sharksforarms a55938b
fix: openssl copies the data from ptr, send a pointer instead
sharksforarms 04aa8cf
fix: don't clobber job ptr
sharksforarms b9a0040
fix header decl for `ptls_openssl_get_async_fd`
sharksforarms 7c6707a
allocate sign_ctx when we know siglen
sharksforarms 2792654
rename `ptls_get_sign_ctx` to `ptls_get_sign_context`
sharksforarms c931aef
move `ASYNC_WAIT_CTX_new` to `sign_ctx_alloc`
sharksforarms 83607a8
add a callback to signing api to free resources
sharksforarms a58b7e3
define `PTLS_OPENSSL_HAVE_ASYNC`
sharksforarms cc5a20e
support synchronous client signing
sharksforarms 10472b5
coverity
sharksforarms ec6e099
add `async_handshake` flag to ptls context
sharksforarms e1148cd
improve docs
sharksforarms b4ab91a
rename cb to cancel_cb
sharksforarms d2ffef1
rename server_complete_handshake to server_finish_handshake
sharksforarms 6f558cf
move async toggle to st_ptls_openssl_sign_certificate_t
sharksforarms 6b71b99
check the value
sharksforarms 5c0a108
async by default
sharksforarms 8fcc793
remove excess empty line
kazuho 98db233
no relational operator for a boolean value
kazuho 21c5f0a
use offsetof to obtain accurate result, avoid duplicated code
kazuho b9045b6
maybe alloc <-> free is better in picotls
kazuho 6ceb6f9
clang-format
kazuho 2ca326e
`cancel_cb` is set iff async is used
kazuho 8c9a17d
let it build
kazuho 20aeccb
minimize diff from master, turning async mode into an optional path
kazuho 2224ab5
set and clear attributes
kazuho 6f44511
clang-format
kazuho a419451
Merge branch 'master' into kazuho/async-sign
kazuho 6ba2a0d
simplify the #ifdefs
kazuho 2b539ab
rename now that the context is specifically for async operation
kazuho c311ed5
remove excess empty line
kazuho 97fab0c
return error if scheme lookup fails
kazuho 163504b
return error when matching algo is not found
kazuho 1649016
libressl compatibility
kazuho a7dfa26
use "async(_ctx)" throughout, to better reflect the fact that the var…
kazuho b2b96bb
ptr is guaranteed to be non-null
kazuho 3f84111
update function name
kazuho f11a78e
use compound init
kazuho a09cdeb
use OO-style context for consistency
kazuho 28c3212
update test following prev. commit
kazuho f267a4e
remove stale comment
kazuho 2a87d5e
update comment
kazuho eb337de
we do not need this
kazuho cac3a7b
add test code that runs multiple handshakes in parallel (which also t…
kazuho 54f9bc9
for Windows compatibility use OSSL_ASYNC_FD
kazuho 98d4bad
union member `ptls_t::server` is only available when running as a server
kazuho 7f83d94
simply make the async task non-cancellable
kazuho 39cd815
our convention is `#define ... 1` then use `#if`
kazuho dc8c0e5
disable async tests on windows, as sys/select.h and sys/time.h are un…
kazuho 9cf089f
Merge branch 'kazuho/async-sign' into kazuho/async-sign-non-cancellable
kazuho 3d61919
the name can be generic
kazuho b814413
amend
kazuho 24b6b6f
Merge branch 'kazuho/async-sign' into kazuho/async-sign-non-cancellable
kazuho 63d2e80
doc comment
kazuho 04f44c1
avoid desynchronization
kazuho 4c1d03f
oops
kazuho a3d3590
it can be explained at one place
kazuho 3eaddfb
reduce diff from master
kazuho 10ddbac
Merge branch 'kazuho/async-sign' into kazuho/async-sign-non-cancellable
kazuho ee8f1ff
Merge pull request #424 from h2o/kazuho/async-sign-non-cancellable
kazuho 259f8a3
Update lib/openssl.c
kazuho 35bf9ee
confirm that the response generated asynchronously looks okay
kazuho 770a665
use aes128gcmsha256 in the benchmark code
kazuho d3dbe69
Merge branch 'master' into kazuho/async-sign
kazuho 6656a3a
Merge branch 'master' into kazuho/async-sign
kazuho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.