diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-03-15 20:08:30 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-03-15 20:08:30 +0000 |
commit | 5a1ed017e6c926344fd754b5a651db46ecfaf0a9 (patch) | |
tree | d52b819ac6989a49d863bdcec7c7a96ad82716a5 /cpp/src | |
parent | no need to copy strings since they are immutable. (diff) | |
download | ice-5a1ed017e6c926344fd754b5a651db46ecfaf0a9.tar.bz2 ice-5a1ed017e6c926344fd754b5a651db46ecfaf0a9.tar.xz ice-5a1ed017e6c926344fd754b5a651db46ecfaf0a9.zip |
Fixed a docbook error (typo) and a bug with a numeric to string data
conversion in GlacierI.cpp.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Glacier/GlacierI.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/Glacier/GlacierI.cpp b/cpp/src/Glacier/GlacierI.cpp index ca2846ec2fb..2023968f788 100644 --- a/cpp/src/Glacier/GlacierI.cpp +++ b/cpp/src/Glacier/GlacierI.cpp @@ -32,7 +32,8 @@ Glacier::StarterI::StarterI(const CommunicatorPtr& communicator) : _traceLevel = atoi(_properties->getProperty("Glacier.Trace.Starter").c_str()); // Set up the Certificate Generation context - string defSecondsValid = IceSSL::OpenSSL::RSACertificateGenContext::daysToSeconds(1);
+ ostringstream defSecondsValid; + defSecondsValid << dec << IceSSL::OpenSSL::RSACertificateGenContext::daysToSeconds(1);
string country = _properties->getPropertyWithDefault("Glacier.Starter.Certificate.Country", "US");
string stateProv = _properties->getPropertyWithDefault("Glacier.Starter.Certificate.StateProvince", "Washington");
string locality = _properties->getPropertyWithDefault("Glacier.Starter.Certificate.Locality", "DC");
@@ -41,7 +42,7 @@ Glacier::StarterI::StarterI(const CommunicatorPtr& communicator) : string commonName = _properties->getPropertyWithDefault("Glacier.Starter.Certificate.CommonName", "John Doe");
string bitStrength = _properties->getPropertyWithDefault("Glacier.Starter.Certificate.BitStrength", "1024");
string secondsValid = _properties->getPropertyWithDefault("Glacier.Starter.Certificate.SecondsValid",
- defSecondsValid); + defSecondsValid.str()); _certContext.setCountry(country); _certContext.setStateProvince(stateProv); |