Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
2757fa8b
Commit
2757fa8b
authored
9 years ago
by
Julien Boeuf
Browse files
Options
Downloads
Patches
Plain Diff
fixing test and clang-format.
parent
434eda48
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/grpc/grpc_security.h
+0
-1
0 additions, 1 deletion
include/grpc/grpc_security.h
test/core/security/security_connector_test.c
+3
-1
3 additions, 1 deletion
test/core/security/security_connector_test.c
with
3 additions
and
2 deletions
include/grpc/grpc_security.h
+
0
−
1
View file @
2757fa8b
...
@@ -150,7 +150,6 @@ typedef enum {
...
@@ -150,7 +150,6 @@ typedef enum {
GRPC_SSL_ROOTS_OVERRIDE_FAIL
GRPC_SSL_ROOTS_OVERRIDE_FAIL
}
grpc_ssl_roots_override_result
;
}
grpc_ssl_roots_override_result
;
/* Callback for getting the SSL roots override from the application.
/* Callback for getting the SSL roots override from the application.
In case of success, *pem_roots_certs must be set to a NULL terminated string
In case of success, *pem_roots_certs must be set to a NULL terminated string
containing the list of PEM encoded root certificates. The ownership is passed
containing the list of PEM encoded root certificates. The ownership is passed
...
...
This diff is collapsed.
Click to expand it.
test/core/security/security_connector_test.c
+
3
−
1
View file @
2757fa8b
...
@@ -323,7 +323,9 @@ static void test_default_ssl_roots(void) {
...
@@ -323,7 +323,9 @@ static void test_default_ssl_roots(void) {
fwrite
(
roots_for_env_var
,
1
,
strlen
(
roots_for_env_var
),
roots_env_var_file
);
fwrite
(
roots_for_env_var
,
1
,
strlen
(
roots_for_env_var
),
roots_env_var_file
);
fclose
(
roots_env_var_file
);
fclose
(
roots_env_var_file
);
/* First let's get the root through the override (no env are set). */
/* First let's get the root through the override: set the env to an invalid
value. */
gpr_setenv
(
GRPC_DEFAULT_SSL_ROOTS_FILE_PATH_ENV_VAR
,
""
);
grpc_set_ssl_roots_override_callback
(
override_roots_success
);
grpc_set_ssl_roots_override_callback
(
override_roots_success
);
gpr_slice
roots
=
grpc_get_default_ssl_roots_for_testing
();
gpr_slice
roots
=
grpc_get_default_ssl_roots_for_testing
();
char
*
roots_contents
=
gpr_dump_slice
(
roots
,
GPR_DUMP_ASCII
);
char
*
roots_contents
=
gpr_dump_slice
(
roots
,
GPR_DUMP_ASCII
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment