aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-09-15 20:50:57 +0000
committerJustin Clarke Casey2008-09-15 20:50:57 +0000
commit2b9e115fd72ae7a014bbd8bd2911336fa6b9993e (patch)
tree6c0cb2f556a34458a9099d8f25820ccda2e2cb24 /OpenSim
parent* Add "reset user password" command to user server (diff)
downloadopensim-SC_OLD-2b9e115fd72ae7a014bbd8bd2911336fa6b9993e.zip
opensim-SC_OLD-2b9e115fd72ae7a014bbd8bd2911336fa6b9993e.tar.gz
opensim-SC_OLD-2b9e115fd72ae7a014bbd8bd2911336fa6b9993e.tar.bz2
opensim-SC_OLD-2b9e115fd72ae7a014bbd8bd2911336fa6b9993e.tar.xz
* minor: eat up some yummy warnings
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs6
-rw-r--r--OpenSim/Framework/Util.cs9
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs3
3 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index bde1f7e..264ffae 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -102,7 +102,7 @@ namespace OpenSim.Framework.Servers
102 m_port = port; 102 m_port = port;
103 if (m_ssl) 103 if (m_ssl)
104 { 104 {
105 bool result = SetupSsl((int)sslport, CN); 105 SetupSsl((int)sslport, CN);
106 m_sslport = sslport; 106 m_sslport = sslport;
107 } 107 }
108 } 108 }
@@ -155,7 +155,7 @@ namespace OpenSim.Framework.Servers
155 } 155 }
156 catch (Exception e) 156 catch (Exception e)
157 { 157 {
158 m_log.WarnFormat("[HTTPS]: Automatic HTTPS setup failed. Do you have httpcfg.exe in your path? If not, you can download it in the windowsXP Service Pack 2 Support Tools, here: http://www.microsoft.com/downloads/details.aspx?FamilyID=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en. When you get it installed type, httpcfg {0}", httpcfgparams); 158 m_log.WarnFormat("[HTTPS]: Automatic HTTPS setup failed. Do you have httpcfg.exe in your path? If not, you can download it in the windowsXP Service Pack 2 Support Tools, here: http://www.microsoft.com/downloads/details.aspx?FamilyID=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en. When you get it installed type, httpcfg {0} - {1}", httpcfgparams, e);
159 return false; 159 return false;
160 } 160 }
161 } 161 }
@@ -170,7 +170,7 @@ namespace OpenSim.Framework.Servers
170 } 170 }
171 catch (Exception e) 171 catch (Exception e)
172 { 172 {
173 m_log.WarnFormat("[HTTPS]: We didn't any certificates in your LocalMachine certificate store. Automatic HTTPS setup failed, you may have certificate errors. To fix this, make sure you generate a certificate request(CSR) using OpenSSL or the IIS snap-inwith the common name you specified in opensim.ini. Then get it signed by a certification authority or sign it yourself with OpenSSL and the junkCA. Finally, be sure to import the cert to the 'MY' store(StoreLocation.LocalMachine). The configured common name is {0}", searchCN); 173 m_log.WarnFormat("[HTTPS]: We didn't any certificates in your LocalMachine certificate store. Automatic HTTPS setup failed, you may have certificate errors. To fix this, make sure you generate a certificate request(CSR) using OpenSSL or the IIS snap-inwith the common name you specified in opensim.ini. Then get it signed by a certification authority or sign it yourself with OpenSSL and the junkCA. Finally, be sure to import the cert to the 'MY' store(StoreLocation.LocalMachine). The configured common name is {0} - {1}", searchCN, e);
174 return false; 174 return false;
175 } 175 }
176 finally 176 finally
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 333ab81..ec03d25 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -116,10 +116,6 @@ namespace OpenSim.Framework
116 116
117 # endregion 117 # endregion
118 118
119 public Util()
120 {
121 }
122
123 public static Random RandomClass 119 public static Random RandomClass
124 { 120 {
125 get { return randomClass; } 121 get { return randomClass; }
@@ -256,6 +252,11 @@ namespace OpenSim.Framework
256 return epoch.AddSeconds(seconds); 252 return epoch.AddSeconds(seconds);
257 } 253 }
258 254
255 /// <summary>
256 /// Return an md5 hash of the given string
257 /// </summary>
258 /// <param name="pass"></param>
259 /// <returns></returns>
259 public static string Md5Hash(string pass) 260 public static string Md5Hash(string pass)
260 { 261 {
261 MD5 md5 = MD5CryptoServiceProvider.Create(); 262 MD5 md5 = MD5CryptoServiceProvider.Create();
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs
index 6028179..a5afe00 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs
@@ -512,7 +512,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
512 //parameters.WarningLevel = 1; // Should be 4? 512 //parameters.WarningLevel = 1; // Should be 4?
513 parameters.TreatWarningsAsErrors = false; 513 parameters.TreatWarningsAsErrors = false;
514 514
515//Console.WriteLine(Script); 515Console.WriteLine(Script);
516 CompilerResults results; 516 CompilerResults results;
517 switch (lang) 517 switch (lang)
518 { 518 {
@@ -575,6 +575,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
575 ", '" + CompErr.ErrorText + "'\r\n"; 575 ", '" + CompErr.ErrorText + "'\r\n";
576 } 576 }
577 } 577 }
578
578 Console.WriteLine("[COMPILER MESSAGES]: " + errtext); 579 Console.WriteLine("[COMPILER MESSAGES]: " + errtext);
579 if (!File.Exists(OutFile)) 580 if (!File.Exists(OutFile))
580 { 581 {