Skip to content

Commit

Permalink
Merge pull request grpc#5847 from nicolasnoble/bad_ssl_certificate_path
Browse files Browse the repository at this point in the history
Adding an argument to bad_ssl_cert in order to override the location of the test certificate.
  • Loading branch information
jtattermusch committed Mar 25, 2016
2 parents 195fd84 + 0450410 commit 26cc708
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/core/bad_ssl/bad_ssl_test.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*
* Copyright 2015, Google Inc.
* Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -41,6 +41,7 @@
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include <grpc/support/subprocess.h>
#include "src/core/support/env.h"
#include "src/core/support/string.h"
#include "test/core/util/port.h"
#include "test/core/end2end/cq_verifier.h"
Expand Down Expand Up @@ -144,6 +145,9 @@ int main(int argc, char **argv) {
} else {
strcpy(root, ".");
}
if (argc == 2) {
gpr_setenv("GRPC_DEFAULT_SSL_ROOTS_FILE_PATH", argv[1]);
}
/* figure out our test name */
tmp = lunder - 1;
while (*tmp != '_') tmp--;
Expand Down

0 comments on commit 26cc708

Please sign in to comment.