Commit Graph

119 Commits

Author SHA1 Message Date
Matthew Stevenson b2f1510dd7 Fix load TLS server credentials 1. 2020-01-23 13:44:18 -08:00
matthewstevenson88 26d50f726a
Revert "Collect TLS-specific changes from PR 20568." 2020-01-23 12:34:43 -08:00
Matthew Stevenson 5cfff04ce9 Collect TLS-specific changes from PR 2-568. 2020-01-22 13:06:22 -08:00
Akshay Kumar db11b94f25 FullChainExperimental-01-200103 2020-01-03 22:37:18 -08:00
Yihua Zhang a6dbc7adb5 rename spiffe to tls 2019-12-05 16:03:37 -08:00
Esun Kim da3a1d3e6d
Merge pull request #20982 from veblush/memory-legacy-2
Fix the memory new/delete mismatch for unique_ptr<char>
2019-11-08 08:38:51 -08:00
Esun Kim e8863d0064 Fix new & delete match 2019-11-07 22:29:21 -08:00
Esun Kim e45b60d1fe Fix unique_ptr<char> memory allocation mismatch 2019-11-07 17:53:59 -08:00
Esun Kim b2b7fc9af8 Replaced grpc_core::UniquePtr with std::unique_ptr 2019-11-07 13:05:39 -08:00
Esun Kim 3a519a0b64 Replaced grpc_core New & Delete with C++ new & delete 2019-11-06 17:52:26 -08:00
Moiz Haidry d874a260bb Fix unused variable error 2019-10-10 11:52:02 -07:00
Matthew Stevenson c7802d488a Fixed a small typos from previous commit. 2019-10-08 21:36:52 -07:00
Matthew Stevenson 313bb5848e Remove some unnecessary comments. 2019-10-08 21:25:46 -07:00
Matthew Stevenson ed198f5a54 Changed delete per Yang's comment. 2019-10-08 21:07:29 -07:00
Matthew Stevenson 00cce90adf Changes requested by Yihua. 2019-10-01 16:06:01 -07:00
Matthew Stevenson fba2fc2dba Fourth 2019-09-27 14:30:49 -07:00
Matthew Stevenson d866d09b5c Second round of small changes from e2e tests. 2019-09-26 21:26:57 -07:00
Matthew Stevenson a7f9d943d5 First set of small changes from development of e2e tests. 2019-09-26 18:13:59 -07:00
Matthew Stevenson 10a39b77c6 Implemented changes outlined in addendum to design doc. 2019-09-25 10:46:13 -07:00
Matthew Stevenson 5639867c2b Clang changes. 2019-09-20 16:09:32 -07:00
Matthew Stevenson 8e09d8745d Implementing further comments by Yang. 2019-09-20 16:01:10 -07:00
Matthew Stevenson 0a054cc6ea Implementing Yang's secound round of comments. 2019-09-20 08:59:34 -07:00
Matthew Stevenson 96c24347f7 Refactored the configs, per Yang's suggestions. 2019-09-19 11:36:37 -07:00
Matthew Stevenson 282aef6031 Minor fixes revealed from developping the end-to-end tests. 2019-09-16 13:51:31 -07:00
Matthew Stevenson 9457917ed1 Autogenerated files and clang format/tidy code 2019-08-27 15:19:43 -07:00
Matthew Stevenson c942282abc Implemented Yihua's review comments 2019-08-27 14:57:02 -07:00
Matthew Stevenson 1735135b27 Deleted extra xml file, removed server authorization check memory leaks 2019-08-26 14:54:45 -07:00
Matthew Stevenson 5d9297d0bc Fixed some memory leaks 2019-08-26 14:31:16 -07:00
Matthew Stevenson c2fd3844dc Implemented Yihua's comments 2019-08-23 16:20:19 -07:00
Matthew Stevenson 94d3e95e8d Small changes to/for unit tests. 2019-08-23 11:22:12 -07:00
Matthew Stevenson 4c26cc402f Removed free statement from TlsCredentialReloadConfigCppToC test 2019-08-22 10:27:48 -07:00
Matthew Stevenson 9da9c0786d Added a line in build.yaml and starting to clean up memory leaks in unit tests 2019-08-22 09:50:09 -07:00
Matthew Stevenson e8b28dd27b Autogenerated files 2019-08-21 15:28:15 -07:00
Matthew Stevenson 3b9e7d9a3a Fixed credential options unit test 2019-08-21 12:27:33 -07:00
Matthew Stevenson 967b911f85 Add forgotten callback function for server authorization check. 2019-08-21 09:08:15 -07:00
Matthew Stevenson e37836b0c7 Fixed a few typos in unit tests 2019-08-21 08:46:02 -07:00
Matthew Stevenson d761619484 Finished unit tests 2019-08-20 16:08:10 -07:00
Matthew Stevenson 6189d34724 Revert "Forgot to autogenerate files and run clang_format/tidy_code"
This reverts commit 9295e4ebb3.
2019-08-20 14:50:35 -07:00
Matthew Stevenson 9295e4ebb3 Forgot to autogenerate files and run clang_format/tidy_code 2019-08-20 14:41:38 -07:00
Matthew Stevenson 52b72c00f1 Debugging after restores 2019-08-20 14:23:08 -07:00
Matthew Stevenson 78e8fb731d Restored credentials_test.cc 2019-08-20 13:42:53 -07:00
Matthew Stevenson 1e46b38d66 Hid some key materials API's and refactored credential reload arg wrapper. 2019-08-14 13:11:27 -07:00
Matthew Stevenson f3f8bf05b2 Fix conflicts with ssl_utils.h 2019-08-13 12:18:31 -07:00
Matthew Stevenson f169b4b28e Update CredentialReloadArg unit test 2019-08-09 09:37:27 -07:00
Matthew Stevenson 094c35f872 Small changes to ssl_util.h, added comments, fixed error in key materials unit test 2019-08-08 22:54:06 -07:00
Matthew Stevenson aa207510ce Finished implementation of API's. 2019-08-07 15:53:26 -07:00
Matthew Stevenson c5acf9e3c7 Fixed undeclared dependency and added std::move in setter functions 2019-08-02 10:31:53 -07:00
Matthew Stevenson 5980d0d10d Added unit tests and fixed some build problems 2019-08-02 09:38:35 -07:00
yang-g 5779dd935a Qualify the error code with StatusCode:: 2019-07-10 13:52:31 -07:00
Julien Boeuf 109edca971 Adding C++ API and implementation for STS credentials:
- marked as experimental.
- also changed the name of a field in the options struct.
2019-07-09 22:28:44 -07:00
Vijay Pai c90a85649b Change grpc++ references in names to grpcpp 2018-03-08 22:04:59 -08:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Noah Eisen 89371914c9 Fix error refcount bug
Added a missing ref in httpcli.c. Also added a test to avoid
regression
2017-05-02 23:26:05 -07:00
Julien Boeuf e5adc0eb67 Fixing Cpp tests. 2015-10-12 14:09:13 -07:00
Julien Boeuf 5be92a316d Shuffling headers around. 2015-08-28 16:28:18 -07:00
Julien Boeuf 510a920c75 Credentials cleanup:
- Removing service_accounts credentials. These credentials just have
  drawbacks compared to service_account_jwt_access credentials, notably
  in terms for security.
- Renaming Google specific credentials with a Google prefix for C and
  C++. This should be done as well for wrapped languages.
2015-08-25 21:51:07 -07:00
Craig Tiller b256faa353 Merge github.com:grpc/grpc into sometimes-its-good-just-to-check-in-with-each-other 2015-07-23 11:28:16 -07:00
Vijay Pai c4af224970 Remove one range-based for and do appropriate static casts on nullptr 2015-07-21 18:44:20 +00:00
Yang Gao a89389283f support per call credentials in c++ 2015-05-14 11:51:07 -07:00
Nicolas "Pixel" Noble fd2bf675f7 Merge branch 'master' of github.com:grpc/grpc into the-purge-2
Conflicts:
	include/grpc++/completion_queue.h
2015-04-24 23:24:44 +02:00
Yang Gao c4b6ffb1b6 Add a GrpcLibrary class to wrap grpc_init and grpc_shutdown and convert all the tests to init/shutdown free. 2015-04-24 13:09:40 -07:00
Nicolas Noble 89219162dd Refactoring std::chrono out. 2015-04-08 05:42:08 +02:00
Yang Gao 6baa9b67ad clang-format c++ code 2015-03-17 10:49:39 -07:00
Craig Tiller 47c83fdaf7 Credentials prototyping
- Remove CredentialsFactory as it's unnecessary
- Effectively make Credentials a channel factory, allowing different credential types to create different channel types - this gives us a hook so that InsecureCredentials can at runtime instantiate a different kind of channel as required - giving us a way of generating an openssl free version of grpc++.
- Server credentials not touched yet, but they'll need to be updated.
2015-02-23 09:58:22 -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
Julien Boeuf 8fbcc4391e Changing the SSL (Server) Credentials API.
- Changed the unsigned char * + size to NULL terminated strings which
  makes sense for the PEM format. I may change TSI later (but the impact
  will hopefully be much more limited).
- Added a way to pass multiple key/cert pairs to servers which is needed
  when hosting more than one domain.
- Removed the C++ SSL credentials tests as we are going to have an
  option to not specify the roots which will then be derived from the
  environment (well-known platform dependent locations and/or
  environment variable).
- Fixed the php build which is the only one added in the run_test.py.
  This change will certainly break node, python and ruby.
2015-01-20 22:18:15 -08:00
Craig Tiller de990f9155 Initialize gtest correctly 2015-01-12 17:07:23 -08:00
yangg 4105e2b86c Add ServiceAccount Credentials wrapping and handle credentials creation
failure.
	Change on 2015/01/09 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83634736
2015-01-12 11:22:01 -08:00