comparison Plugins/Engine/OrthancPlugins.cpp @ 2019:9c9332e486ca

HTTPS client certificates can be associated with Orthanc peers to enhance security over Internet
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 14 Jun 2016 17:53:23 +0200
parents 50b9bc19dc62
children fefbe71c2272
comparison
equal deleted inserted replaced
2018:300599489cab 2019:9c9332e486ca
1791 p.password != NULL) 1791 p.password != NULL)
1792 { 1792 {
1793 client.SetCredentials(p.username, p.password); 1793 client.SetCredentials(p.username, p.password);
1794 } 1794 }
1795 1795
1796 if (p.certificateFile != NULL)
1797 {
1798 std::string certificate(p.certificateFile);
1799 std::string key, password;
1800
1801 if (p.certificateKeyFile)
1802 {
1803 key.assign(p.certificateKeyFile);
1804 }
1805
1806 if (p.certificateKeyPassword)
1807 {
1808 password.assign(p.certificateKeyPassword);
1809 }
1810
1811 client.SetClientCertificate(certificate, key, password);
1812 }
1813
1796 for (uint32_t i = 0; i < p.headersCount; i++) 1814 for (uint32_t i = 0; i < p.headersCount; i++)
1797 { 1815 {
1798 if (p.headersKeys[i] == NULL || 1816 if (p.headersKeys[i] == NULL ||
1799 p.headersValues[i] == NULL) 1817 p.headersValues[i] == NULL)
1800 { 1818 {