diff options
author | Julien Boeuf <jboeuf@google.com> | 2015-07-21 23:02:16 -0700 |
---|---|---|
committer | Julien Boeuf <jboeuf@google.com> | 2015-07-21 23:02:16 -0700 |
commit | 5029b30d1ce8509a4b2f7c17e88bddb8a5206f56 (patch) | |
tree | b586799ce95e506d9cb5311d7bf5e751bf26226f /src/cpp/server | |
parent | d1408e71636f7ec74839a9bcff0429fb7e2caeb0 (diff) |
Adding option to force client auth on the server SSL creds.
Diffstat (limited to 'src/cpp/server')
-rw-r--r-- | src/cpp/server/secure_server_credentials.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpp/server/secure_server_credentials.cc b/src/cpp/server/secure_server_credentials.cc index 3e262dd74f..32c45e2280 100644 --- a/src/cpp/server/secure_server_credentials.cc +++ b/src/cpp/server/secure_server_credentials.cc @@ -51,7 +51,8 @@ std::shared_ptr<ServerCredentials> SslServerCredentials( } grpc_server_credentials* c_creds = grpc_ssl_server_credentials_create( options.pem_root_certs.empty() ? nullptr : options.pem_root_certs.c_str(), - &pem_key_cert_pairs[0], pem_key_cert_pairs.size()); + &pem_key_cert_pairs[0], pem_key_cert_pairs.size(), + options.force_client_auth); return std::shared_ptr<ServerCredentials>( new SecureServerCredentials(c_creds)); } |