Commit Graph

63 Commits

Author SHA1 Message Date
Nicolas Noble 6ab0de15ea Merge pull request #2216 from jboeuf/unpadded_base64
Base64 decode improvements
2015-07-01 09:26:21 -07:00
Craig Tiller 991edad25c SSL refcounting fixes
Handle the case where we recreate an auth context.

Add (opt-in) debugging for refcounts on auth contexts.
2015-06-30 11:40:41 -07:00
Julien Boeuf 3e55b9fe62 Base64 decode improvements.
- Allow ablity to specify the length for decoding.
- Allow for non-padded encodings to be decoded properly.
2015-06-25 18:11:44 +02:00
Julien Boeuf 5b1fdc5c3d Merge branch 'master' of https://github.com/grpc/grpc into ssl_auth_context_fix 2015-06-22 16:47:01 +02:00
Craig Tiller 7552f0f958 Ensure tests are built during run_tests runs
The issue remains that we don't test our tools, but at least we test
that they compile.
2015-06-19 17:46:20 -07:00
Julien Boeuf a701ade70a Fixing ssl auth context. 2015-06-18 15:23:40 +02:00
Craig Tiller 9a57633233 clang-format affected files 2015-06-17 10:21:49 -07:00
Craig Tiller 2c42ef3eb3 Merge github.com:grpc/grpc into we-dont-need-no-backup 2015-06-05 07:09:56 -07:00
Masood Malekghassemi 701af6031f Expose gpr_asprintf and gpr_strdup 2015-06-03 15:24:24 -07:00
Craig Tiller 14556ecf8c Merge branch 'count-the-things' into we-dont-need-no-backup
Conflicts:
	Makefile
	src/core/iomgr/pollset_posix.c
	src/core/surface/call.c
	src/core/surface/channel.c
	src/core/surface/server.c
	src/python/src/grpc/_adapter/_low_test.py
	tools/doxygen/Doxyfile.core.internal
2015-06-01 20:31:27 -07:00
Craig Tiller 3d67c7cf45 Merge github.com:grpc/grpc into count-the-things
Conflicts:
	src/core/iomgr/fd_posix.h
	src/core/iomgr/iomgr.c
2015-06-01 20:10:13 -07:00
Craig Tiller 8e0b08a33d Merge branch 'count-the-things' into we-dont-need-no-backup 2015-06-01 17:04:17 -07:00
Nicolas "Pixel" Noble 8535263b94 Fixing tools compilation. 2015-06-02 02:01:51 +02:00
Craig Tiller fa275a97b9 Label all iomgr objects
This allows a list of them to be dumped to isolate where memory leaks
are occuring.
2015-06-01 13:55:54 -07:00
Craig Tiller 06bac34df0 Properly integrate credentials metadata delivery 2015-06-01 12:55:57 -07:00
Craig Tiller e5cacfa296 Merge branch 'you-complete-me' into we-dont-need-no-backup 2015-06-01 08:49:01 -07:00
David Garcia Quintas 7978a04d50 Removed non-ISO usage of __FUNCTION__.
Fixes #1843
2015-05-31 16:07:45 -07:00
Craig Tiller f29a6c107d Merge branch 'but-maybe-i-want-to-poll' into we-dont-need-no-backup
Conflicts:
	Makefile
	build.json
	src/core/security/credentials.c
	src/core/security/credentials.h
	src/core/surface/call.c
	test/core/end2end/tests/request_response_with_payload_and_call_creds.c
	tools/doxygen/Doxyfile.c++
	tools/doxygen/Doxyfile.core
2015-05-30 11:11:05 -07:00
Julien Boeuf 3824209a49 Merge branch 'master' of github.com:grpc/grpc into server_auth_context 2015-05-29 22:00:44 -07:00
Julien Boeuf 75c9b6f495 Removing mdctx from the credentials. 2015-05-29 13:12:12 -07:00
Julien Boeuf 83b029726b Addressing comments. 2015-05-20 22:50:34 -07:00
Julien Boeuf 84d964a8df API for auth context and server-side secure transport only impl.
Still TODO:
- a way to plug a metadata processing (somewhat elsewhere but did not
  one to overload this already large PR).
- plug-in the auth context on the client side.
- Better end to end testing.
2015-05-20 07:48:48 +02:00
Craig Tiller 9d9735f7d9 Port endpoint tests to pollsets 2015-05-13 10:46:01 -07:00
Nicolas Noble 2e3639302a Making the gRPC C tests building under Windows. 2015-05-09 08:25:26 +02:00
Julien Boeuf 7d1d9ca7fa Refactoring of core security to remove the factories.
- Renamed security_context -> security_connector.
- Credentials are now responsible for creating their own connectors.
2015-04-17 23:41:46 -07:00
Julien Boeuf 28d75d9349 Adding option to add a null terminator when loading a file.
- This will take care of a potential issue with default credentials
  where the slice pointer is casted as const char * for APIs that need a
  null terminated string.
2015-04-15 15:56:38 -07:00
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.
2015-03-09 16:56:44 -07:00
Julien Boeuf 3371cdf918 Fixing !strcmp in the tests. 2015-03-09 10:32:19 -07:00
Julien Boeuf 75516068fa Adding refresh token parsing
This is the first step for refresh token credentials.
2015-03-09 10:20:40 -07:00
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>
2015-03-07 08:39:22 -08:00
Craig Tiller 8ad8a41a84 Introduce slowdown factor for unit test deadlines
Dramatically lowers (eliminates maybe?) false negatives from ?SAN runs.
2015-02-25 08:36:40 -08:00
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.
2015-02-23 13:00:36 -08:00
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.
2015-02-21 21:57:42 -08:00
Julien Boeuf 25380de72d Adding tool for generating JWTs on the command line. 2015-02-19 19:17:32 -08:00
Julien Boeuf f47a5cb93d Implementing JWT credentials (a.k.a JWT ID Tokens).
- Not tested end to end yet
2015-02-19 17:29:41 -08:00
Julien Boeuf 90bd7c4c4d Fixing sprintf and a few other things. 2015-02-18 18:53:18 -08:00
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.
2015-02-18 14:16:15 -08:00
Craig Tiller 190d360def Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
Craig Tiller 0605995e55 Update copyright to 2015 2015-02-18 08:34:56 -08:00
Nicolas "Pixel" Noble 213ed91850 Re-enabling errors on warning, disabling unused parameter warning, and fixing all subsequent errors. 2015-01-30 02:11:35 +01:00
Nicolas Noble 9574132019 Merge branch 'master' of github.com:google/grpc into json
Conflicts:
	Makefile
	build.json
	vsprojects/vs2013/grpc.vcxproj
	vsprojects/vs2013/grpc.vcxproj.filters
	vsprojects/vs2013/grpc_unsecure.vcxproj
	vsprojects/vs2013/grpc_unsecure.vcxproj.filters
2015-01-27 19:14:11 -08:00
Nicolas Noble 8c2be9bbff Addressing latest comments. 2015-01-28 01:11:24 +01:00
Yang Gao 3ed874c861 sync up with master 2015-01-27 11:39:14 -08:00
Nicolas Noble f66ccc44d7 Merge branch 'master' of github.com:google/grpc into json 2015-01-26 17:03:08 -08:00
Nicolas Noble e04455a7ff Addressing comments. 2015-01-26 17:02:45 -08:00
Nicolas Noble fee065c1c7 Merge branch 'master' of github.com:google/grpc into json
Conflicts:
	src/core/security/credentials.c
2015-01-26 11:41:12 -08:00
Yang Gao 5fd0d29dfe run clang-format 2015-01-26 00:19:48 -08:00
Craig Tiller 82df7446ae Remove use of sprintf 2015-01-23 15:06:44 -08:00
Craig Tiller 485d77628d Move string.h to internal code 2015-01-23 12:54:05 -08:00
Nicolas Noble 614c2bf99b Replacing cJSON with our own code instead. 2015-01-22 15:32:02 -08:00