Reference.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // このコードはツールによって生成されました。
  4. // ランタイム バージョン:2.0.50727.5466
  5. //
  6. // このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
  7. // コードが再生成されるときに損失したりします。
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. // Comments: Tetsuo Sugiyama, Ph.D.
  11. //
  12. // This program is free software; you can redistribute it and/or
  13. // modify it under the terms of the GNU General Public License
  14. // version 2 as published by the Free Software Foundation.
  15. //
  16. // This program is distributed in the hope that it will be useful,
  17. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. // GNU General Public License for more details.
  20. //
  21. // You should have received a copy of the GNU General Public License version 2
  22. // along with this program; if not, write to the Free Software
  23. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  24. //
  25. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  26. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  27. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  28. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  29. // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  30. // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  31. // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  32. //
  33. // THE LICENSE AGREEMENT IS ATTACHED ON THE SOURCE-CODE PACKAGE
  34. // AS "LICENSE.TXT" FILE. READ THE TEXT FILE IN ADVANCE TO USE THE SOFTWARE.
  35. //
  36. //
  37. // THIS SOFTWARE IS DEVELOPED IN JAPAN, AND DISTRIBUTED FROM JAPAN,
  38. // UNDER JAPANESE LAWS. YOU MUST AGREE IN ADVANCE TO USE, COPY, MODIFY,
  39. // MERGE, PUBLISH, DISTRIBUTE, SUBLICENSE, AND/OR SELL COPIES OF THIS
  40. // SOFTWARE, THAT ANY JURIDICAL DISPUTES WHICH ARE CONCERNED TO THIS
  41. // SOFTWARE OR ITS CONTENTS, AGAINST US (SOFTETHER PROJECT, SOFTETHER
  42. // CORPORATION, DAIYUU NOBORI OR OTHER SUPPLIERS), OR ANY JURIDICAL
  43. // DISPUTES AGAINST US WHICH ARE CAUSED BY ANY KIND OF USING, COPYING,
  44. // MODIFYING, MERGING, PUBLISHING, DISTRIBUTING, SUBLICENSING, AND/OR
  45. // SELLING COPIES OF THIS SOFTWARE SHALL BE REGARDED AS BE CONSTRUED AND
  46. // CONTROLLED BY JAPANESE LAWS, AND YOU MUST FURTHER CONSENT TO
  47. // EXCLUSIVE JURISDICTION AND VENUE IN THE COURTS SITTING IN TOKYO,
  48. // JAPAN. YOU MUST WAIVE ALL DEFENSES OF LACK OF PERSONAL JURISDICTION
  49. // AND FORUM NON CONVENIENS. PROCESS MAY BE SERVED ON EITHER PARTY IN
  50. // THE MANNER AUTHORIZED BY APPLICABLE LAW OR COURT RULE.
  51. //
  52. // USE ONLY IN JAPAN. DO NOT USE THIS SOFTWARE IN ANOTHER COUNTRY UNLESS
  53. // YOU HAVE A CONFIRMATION THAT THIS SOFTWARE DOES NOT VIOLATE ANY
  54. // CRIMINAL LAWS OR CIVIL RIGHTS IN THAT PARTICULAR COUNTRY. USING THIS
  55. // SOFTWARE IN OTHER COUNTRIES IS COMPLETELY AT YOUR OWN RISK. THE
  56. // SOFTETHER VPN PROJECT HAS DEVELOPED AND DISTRIBUTED THIS SOFTWARE TO
  57. // COMPLY ONLY WITH THE JAPANESE LAWS AND EXISTING CIVIL RIGHTS INCLUDING
  58. // PATENTS WHICH ARE SUBJECTS APPLY IN JAPAN. OTHER COUNTRIES' LAWS OR
  59. // CIVIL RIGHTS ARE NONE OF OUR CONCERNS NOR RESPONSIBILITIES. WE HAVE
  60. // NEVER INVESTIGATED ANY CRIMINAL REGULATIONS, CIVIL LAWS OR
  61. // INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENTS IN ANY OF OTHER 200+
  62. // COUNTRIES AND TERRITORIES. BY NATURE, THERE ARE 200+ REGIONS IN THE
  63. // WORLD, WITH DIFFERENT LAWS. IT IS IMPOSSIBLE TO VERIFY EVERY
  64. // COUNTRIES' LAWS, REGULATIONS AND CIVIL RIGHTS TO MAKE THE SOFTWARE
  65. // COMPLY WITH ALL COUNTRIES' LAWS BY THE PROJECT. EVEN IF YOU WILL BE
  66. // SUED BY A PRIVATE ENTITY OR BE DAMAGED BY A PUBLIC SERVANT IN YOUR
  67. // COUNTRY, THE DEVELOPERS OF THIS SOFTWARE WILL NEVER BE LIABLE TO
  68. // RECOVER OR COMPENSATE SUCH DAMAGES, CRIMINAL OR CIVIL
  69. // RESPONSIBILITIES. NOTE THAT THIS LINE IS NOT LICENSE RESTRICTION BUT
  70. // JUST A STATEMENT FOR WARNING AND DISCLAIMER.
  71. //
  72. //
  73. // SOURCE CODE CONTRIBUTION
  74. // ------------------------
  75. //
  76. // Your contribution to SoftEther VPN Project is much appreciated.
  77. // Please send patches to us through GitHub.
  78. // Read the SoftEther VPN Patch Acceptance Policy in advance:
  79. // http://www.softether.org/5-download/src/9.patch
  80. //
  81. //
  82. // DEAR SECURITY EXPERTS
  83. // ---------------------
  84. //
  85. // If you find a bug or a security vulnerability please kindly inform us
  86. // about the problem immediately so that we can fix the security problem
  87. // to protect a lot of users around the world as soon as possible.
  88. //
  89. // Our e-mail address for security reports is:
  90. // softether-vpn-security [at] softether.org
  91. //
  92. // Please note that the above e-mail address is not a technical support
  93. // inquiry address. If you need technical assistance, please visit
  94. // http://www.softether.org/ and ask your question on the users forum.
  95. //
  96. // Thank you for your cooperation.
  97. //
  98. //
  99. // NO MEMORY OR RESOURCE LEAKS
  100. // ---------------------------
  101. //
  102. // The memory-leaks and resource-leaks verification under the stress
  103. // test has been passed before release this source code.
  104. //
  105. // このソース コードは Microsoft.VSDesigner、バージョン 2.0.50727.5466 によって自動生成されました。
  106. //
  107. #pragma warning disable 1591
  108. namespace BuildUtil.HvSignService {
  109. using System.Diagnostics;
  110. using System.Web.Services;
  111. using System.ComponentModel;
  112. using System.Web.Services.Protocols;
  113. using System;
  114. using System.Xml.Serialization;
  115. /// <remarks/>
  116. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.5420")]
  117. [System.Diagnostics.DebuggerStepThroughAttribute()]
  118. [System.ComponentModel.DesignerCategoryAttribute("code")]
  119. [System.Web.Services.WebServiceBindingAttribute(Name="SignSoap", Namespace="http://hvsigncode/")]
  120. public partial class Sign : System.Web.Services.Protocols.SoapHttpClientProtocol {
  121. private System.Threading.SendOrPostCallback HelloWorldOperationCompleted;
  122. private System.Threading.SendOrPostCallback ExecSignOperationCompleted;
  123. private bool useDefaultCredentialsSetExplicitly;
  124. /// <remarks/>
  125. public Sign() {
  126. this.Url = global::BuildUtil.Properties.Settings.Default.BuildUtilTmp_HvSignService_Sign;
  127. if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
  128. this.UseDefaultCredentials = true;
  129. this.useDefaultCredentialsSetExplicitly = false;
  130. }
  131. else {
  132. this.useDefaultCredentialsSetExplicitly = true;
  133. }
  134. }
  135. public new string Url {
  136. get {
  137. return base.Url;
  138. }
  139. set {
  140. if ((((this.IsLocalFileSystemWebService(base.Url) == true)
  141. && (this.useDefaultCredentialsSetExplicitly == false))
  142. && (this.IsLocalFileSystemWebService(value) == false))) {
  143. base.UseDefaultCredentials = false;
  144. }
  145. base.Url = value;
  146. }
  147. }
  148. public new bool UseDefaultCredentials {
  149. get {
  150. return base.UseDefaultCredentials;
  151. }
  152. set {
  153. base.UseDefaultCredentials = value;
  154. this.useDefaultCredentialsSetExplicitly = true;
  155. }
  156. }
  157. /// <remarks/>
  158. public event HelloWorldCompletedEventHandler HelloWorldCompleted;
  159. /// <remarks/>
  160. public event ExecSignCompletedEventHandler ExecSignCompleted;
  161. /// <remarks/>
  162. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://hvsigncode/HelloWorld", RequestNamespace="http://hvsigncode/", ResponseNamespace="http://hvsigncode/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  163. public string HelloWorld() {
  164. object[] results = this.Invoke("HelloWorld", new object[0]);
  165. return ((string)(results[0]));
  166. }
  167. /// <remarks/>
  168. public void HelloWorldAsync() {
  169. this.HelloWorldAsync(null);
  170. }
  171. /// <remarks/>
  172. public void HelloWorldAsync(object userState) {
  173. if ((this.HelloWorldOperationCompleted == null)) {
  174. this.HelloWorldOperationCompleted = new System.Threading.SendOrPostCallback(this.OnHelloWorldOperationCompleted);
  175. }
  176. this.InvokeAsync("HelloWorld", new object[0], this.HelloWorldOperationCompleted, userState);
  177. }
  178. private void OnHelloWorldOperationCompleted(object arg) {
  179. if ((this.HelloWorldCompleted != null)) {
  180. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  181. this.HelloWorldCompleted(this, new HelloWorldCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  182. }
  183. }
  184. /// <remarks/>
  185. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://hvsigncode/ExecSign", RequestNamespace="http://hvsigncode/", ResponseNamespace="http://hvsigncode/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  186. public string ExecSign(string src_filename, bool driver_mode, string description, int cert_id) {
  187. object[] results = this.Invoke("ExecSign", new object[] {
  188. src_filename,
  189. driver_mode,
  190. description,
  191. cert_id});
  192. return ((string)(results[0]));
  193. }
  194. /// <remarks/>
  195. public void ExecSignAsync(string src_filename, bool driver_mode, string description, int cert_id) {
  196. this.ExecSignAsync(src_filename, driver_mode, description, cert_id, null);
  197. }
  198. /// <remarks/>
  199. public void ExecSignAsync(string src_filename, bool driver_mode, string description, int cert_id, object userState) {
  200. if ((this.ExecSignOperationCompleted == null)) {
  201. this.ExecSignOperationCompleted = new System.Threading.SendOrPostCallback(this.OnExecSignOperationCompleted);
  202. }
  203. this.InvokeAsync("ExecSign", new object[] {
  204. src_filename,
  205. driver_mode,
  206. description,
  207. cert_id}, this.ExecSignOperationCompleted, userState);
  208. }
  209. private void OnExecSignOperationCompleted(object arg) {
  210. if ((this.ExecSignCompleted != null)) {
  211. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  212. this.ExecSignCompleted(this, new ExecSignCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  213. }
  214. }
  215. /// <remarks/>
  216. public new void CancelAsync(object userState) {
  217. base.CancelAsync(userState);
  218. }
  219. private bool IsLocalFileSystemWebService(string url) {
  220. if (((url == null)
  221. || (url == string.Empty))) {
  222. return false;
  223. }
  224. System.Uri wsUri = new System.Uri(url);
  225. if (((wsUri.Port >= 1024)
  226. && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
  227. return true;
  228. }
  229. return false;
  230. }
  231. }
  232. /// <remarks/>
  233. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.5420")]
  234. public delegate void HelloWorldCompletedEventHandler(object sender, HelloWorldCompletedEventArgs e);
  235. /// <remarks/>
  236. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.5420")]
  237. [System.Diagnostics.DebuggerStepThroughAttribute()]
  238. [System.ComponentModel.DesignerCategoryAttribute("code")]
  239. public partial class HelloWorldCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  240. private object[] results;
  241. internal HelloWorldCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  242. base(exception, cancelled, userState) {
  243. this.results = results;
  244. }
  245. /// <remarks/>
  246. public string Result {
  247. get {
  248. this.RaiseExceptionIfNecessary();
  249. return ((string)(this.results[0]));
  250. }
  251. }
  252. }
  253. /// <remarks/>
  254. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.5420")]
  255. public delegate void ExecSignCompletedEventHandler(object sender, ExecSignCompletedEventArgs e);
  256. /// <remarks/>
  257. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.5420")]
  258. [System.Diagnostics.DebuggerStepThroughAttribute()]
  259. [System.ComponentModel.DesignerCategoryAttribute("code")]
  260. public partial class ExecSignCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  261. private object[] results;
  262. internal ExecSignCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  263. base(exception, cancelled, userState) {
  264. this.results = results;
  265. }
  266. /// <remarks/>
  267. public string Result {
  268. get {
  269. this.RaiseExceptionIfNecessary();
  270. return ((string)(this.results[0]));
  271. }
  272. }
  273. }
  274. }
  275. #pragma warning restore 1591
  276. // Developed by SoftEther VPN Project at University of Tsukuba in Japan.
  277. // Department of Computer Science has dozens of overly-enthusiastic geeks.
  278. // Join us: http://www.tsukuba.ac.jp/english/admission/