fixing test and clang-format.

pull/4934/head
Julien Boeuf 9 years ago
parent 434eda48be
commit 2757fa8b39
  1. 1
      include/grpc/grpc_security.h
  2. 4
      test/core/security/security_connector_test.c

@ -150,7 +150,6 @@ typedef enum {
GRPC_SSL_ROOTS_OVERRIDE_FAIL
} grpc_ssl_roots_override_result;
/* 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
containing the list of PEM encoded root certificates. The ownership is passed

@ -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);
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);
gpr_slice roots = grpc_get_default_ssl_roots_for_testing();
char *roots_contents = gpr_dump_slice(roots, GPR_DUMP_ASCII);

Loading…
Cancel
Save