Julien Boeuf
8931cc1dd5
Adding a test to check the openssl version we are using.
10 years ago
David Klempner
a4ac78c8ce
Make metadata_test test_things_stick_around use fewer strings
...
This test is quadratic in nstr and times out under tsan.
10 years ago
Julien Boeuf
9835cf0234
Adding refresh token credentials.
...
- The google default credentials now work with the cloud SDK.
- Verified end to end with print_default_credentials and fetch_oauth2
tools.
10 years ago
Julien Boeuf
3371cdf918
Fixing !strcmp in the tests.
10 years ago
Chilledheart
ca767c0d9e
Add method grp_slice_buffer_pop to remove the last element for grp_slice_buffer
10 years ago
Julien Boeuf
75516068fa
Adding refresh token parsing
...
This is the first step for refresh token credentials.
10 years ago
Ronnie Sahlberg
2ad8d21158
strcmp: change all !str[n]cmp to str[n]cmp == 0
...
Change all !str[n]cmp to be str[n]cmp == 0 consistently across the codebase.
Issue #231
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years ago
Nicolas "Pixel" Noble
061690d497
Don't merge OpenSSL into C++ upper layer libraries; only C.
10 years ago
David Klempner
a4ac16cdc3
Fix signed comparison warnings in low_level_ping_pong
10 years ago
Craig Tiller
93f80f001c
Formatting
10 years ago
Craig Tiller
c9f660daf8
Add a test that bad hostnames fail
10 years ago
Craig Tiller
1a138c34ed
Dont add new requests when shutting down
10 years ago
Craig Tiller
479f2b25fb
Speed up test, reduce flakiness
10 years ago
Nicolas "Pixel" Noble
1ff52d5278
Guard headers tool.
10 years ago
Craig Tiller
f5065c5b65
Enable asan for C core
...
Also speed up a test, and disable some rarely touched but long running tests
10 years ago
Craig Tiller
8451e87ced
Extend timeouts for Travis 2x
10 years ago
Craig Tiller
f6901be8cd
Allow machine and build type tuning of slowdown
10 years ago
Craig Tiller
7b5eb7193c
Increment 'try' variable
...
To ensure that we actually probe different ports
10 years ago
Craig Tiller
73509a5d53
Better port picker
10 years ago
Craig Tiller
e2d795a27b
Fix max_concurrent_streams test
10 years ago
David Klempner
57c0061d78
Deflake dualstack socket test
...
The test currently allocates a single port and reuses it through the
test. Given the timeouts in this test this leaves substantial race
windows where other processes on the same machine could steal the port
between subcases.
Instead, as a simple hack, allocate a new port before each test.
10 years ago
Craig Tiller
deb49dd1aa
Strip port in peer name check
...
This string comes from an authority field, which is allowed to contain a
':' port (see https://tools.ietf.org/html/rfc3986#section-3.2 ).
We need to strip it before performing host name verification.
10 years ago
Craig Tiller
c1f1162787
Drastic speed up
10 years ago
Craig Tiller
4b5c4dbbb8
Drastic speed up
10 years ago
Craig Tiller
8ad8a41a84
Introduce slowdown factor for unit test deadlines
...
Dramatically lowers (eliminates maybe?) false negatives from ?SAN runs.
10 years ago
Julien Boeuf
9fff77e4f8
Addressing comments.
10 years ago
Craig Tiller
2d0f36c84b
Driver to client/server kind of works
10 years ago
Julien Boeuf
597a4f2273
Verifying the peer name on the X509 Certs correctly.
...
- The SANs take precedence over the CN.
- The CN is only checked if there are no SANs.
- Fixing the tests as the test cert did not list *.test.google.com in
the SANs. Will fix the test cert another time...
10 years ago
Nicolas Noble
65b0759653
Addressing a first batch of feedback.
10 years ago
Julien Boeuf
c66f2a816e
Addressing iniitial feedback.
...
- Renaming default credentials -> google default credentials.
- Various other things in cpp:
- Adding Cpp wrapping for JWT Tokens.
- Renaming ComposeCredentials -> CompositeCredentials.
10 years ago
Nicolas Noble
a7b8b69d23
Addressing security concerns.
...
-) 0x7f (Backspace) isn't a printable character.
-) use sizeof(var) instead of sizeof(type).
10 years ago
Craig Tiller
42bc87c097
Update C++ server with new core API
...
And reflects the C++ API in ServerBuilder.
10 years ago
Craig Tiller
759026cbf0
Server API simplification
...
Remove 'secure_serer_create', and instead attach credentials to ports, meaning different ports can serve different credentials.
10 years ago
Julien Boeuf
cd9b1c850d
Added support for default credentials.
...
- Tested with new tool (print_default_creds_token) on:
- workstation for env var and well known place.
- GCE for compute engine default creds.
- I'd prefer the grpc_default_credentials_create() API to remain
synchronous even though there may be an async call for gce detection
on which we block.
10 years ago
Craig Tiller
54f9a65f1e
32 bit compilation fixes for core
10 years ago
Julien Boeuf
25380de72d
Adding tool for generating JWTs on the command line.
10 years ago
Julien Boeuf
f47a5cb93d
Implementing JWT credentials (a.k.a JWT ID Tokens).
...
- Not tested end to end yet
10 years ago
Yang Gao
0d1e2f2ad9
remove prod_roots_certs.c since it is not used anywhere
10 years ago
Julien Boeuf
90bd7c4c4d
Fixing sprintf and a few other things.
10 years ago
Craig Tiller
0fcd53c701
Fix a TSAN reported error
...
We now pass down pointers to closures instead of (callback, arg) pair
elements separately. This allows us to store one word atomically, fixing
a race condition.
All call sites have been updated to the new API. No new allocations are
incurred. grpc_fd_state is deleted to avoid any temptation to ever add
anything there again.
10 years ago
Craig Tiller
9be83eec1d
Fix use-after-free.
...
Transport and channel have different lifetimes, but share a metadata
context.
Make the metadata context ref counted, and have transport take a ref.
10 years ago
Craig Tiller
efad8fadd3
Spam cleanup, test speedup
10 years ago
Craig Tiller
190d360def
Add missing new-lines at end of file
10 years ago
Craig Tiller
0605995e55
Update copyright to 2015
10 years ago
Craig Tiller
aea2fc053d
Fix shutdown semantics.
...
Document what they should be, ensure they're triggered, and fix what was broken.
10 years ago
Craig Tiller
2d9c51242a
Add mixed shutdown/init test
10 years ago
Craig Tiller
35108f6527
Allow grpc_init to be called multiple times
10 years ago
Craig Tiller
32223cf5e1
Fix fling test leaks
10 years ago
Craig Tiller
c2c792113e
Add copyrights to Python code
10 years ago
Craig Tiller
8f9aaa9206
Accidental change fixed
10 years ago