⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shttpsvc_8h-source.html

📁 pwlib开发文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>shttpsvc.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>shttpsvc.h</h1><a href="shttpsvc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * shttpsvc.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Class for secure service applications using HTTPS as the user interface.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1993-2001 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: shttpsvc.h,v $</span>00027 <span class="comment"> * Revision 1.7  2004/04/24 03:58:15  rjongbloed</span>00028 <span class="comment"> * Allow for run time enable/disable of secure web access to HTTP process,</span>00029 <span class="comment"> *   changed from old debug only hack to "correct" usager. Thanks Ben Lear</span>00030 <span class="comment"> *</span>00031 <span class="comment"> * Revision 1.6  2002/09/16 01:08:59  robertj</span>00032 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00033 <span class="comment"> *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00034 <span class="comment"> *</span>00035 <span class="comment"> * Revision 1.5  2002/08/05 05:40:45  robertj</span>00036 <span class="comment"> * Fixed missing pragma interface/implementation</span>00037 <span class="comment"> *</span>00038 <span class="comment"> * Revision 1.4  2001/12/13 09:19:09  robertj</span>00039 <span class="comment"> * Added ability to create HTTP server certificate if one does not exist.</span>00040 <span class="comment"> *</span>00041 <span class="comment"> * Revision 1.3  2001/05/16 06:02:05  craigs</span>00042 <span class="comment"> * Changed to allow detection of non-SSL connection to SecureHTTPServiceProcess</span>00043 <span class="comment"> *</span>00044 <span class="comment"> * Revision 1.2  2001/03/27 03:56:01  craigs</span>00045 <span class="comment"> * Added hack to allow secure servers to act as non-secure servers</span>00046 <span class="comment"> *</span>00047 <span class="comment"> * Revision 1.1  2001/02/15 02:41:14  robertj</span>00048 <span class="comment"> * Added class to do secure HTTP based service process.</span>00049 <span class="comment"> *</span>00050 <span class="comment"> */</span>00051 00052 <span class="preprocessor">#ifndef SHTTPSVC_H</span>00053 <span class="preprocessor"></span><span class="preprocessor">#define SHTTPSVC_H</span>00054 <span class="preprocessor"></span>00055 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00056 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00057 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00058 <span class="preprocessor"></span>00059 00060 <span class="preprocessor">#include &lt;<a class="code" href="httpsvc_8h.html">ptclib/httpsvc.h</a>&gt;</span>00061 <span class="preprocessor">#include &lt;<a class="code" href="pssl_8h.html">ptclib/pssl.h</a>&gt;</span>00062 00063 00065 <a name="l00066"></a><a class="code" href="classPSecureHTTPServiceProcess.html">00066</a> <span class="keyword">class </span><a class="code" href="classPSecureHTTPServiceProcess.html">PSecureHTTPServiceProcess</a> : <span class="keyword">public</span> <a class="code" href="classPHTTPServiceProcess.html">PHTTPServiceProcess</a>00067 {00068   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPSecureHTTPServiceProcess.html">PSecureHTTPServiceProcess</a>, <a class="code" href="classPHTTPServiceProcess.html">PHTTPServiceProcess</a>)00069 00070   <span class="keyword">public</span>:00071     <a class="code" href="classPSecureHTTPServiceProcess.html#a0">PSecureHTTPServiceProcess</a>(<span class="keyword">const</span> Info &amp; inf);00072     <a class="code" href="classPSecureHTTPServiceProcess.html#a1">~PSecureHTTPServiceProcess</a>();00073 00074     <span class="keyword">virtual</span> <a class="code" href="classPHTTPServer.html">PHTTPServer</a> * <a class="code" href="classPSecureHTTPServiceProcess.html#a2">CreateHTTPServer</a>(<a class="code" href="classPTCPSocket.html">PTCPSocket</a> &amp; socket);00075 00076     BOOL <a class="code" href="classPSecureHTTPServiceProcess.html#a3">SetServerCertificate</a>(00077       <span class="keyword">const</span> <a class="code" href="classPFilePath.html">PFilePath</a> &amp; certFile,00078       BOOL create = FALSE,00079       <span class="keyword">const</span> <span class="keywordtype">char</span> * dn = NULL00080     );00081 00082     <span class="keyword">virtual</span> BOOL <a class="code" href="classPSecureHTTPServiceProcess.html#a4">OnDetectedNonSSLConnection</a>(<a class="code" href="classPChannel.html">PChannel</a> * chan, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; line);00083 00084     <span class="keyword">virtual</span> <a class="code" href="classPString.html">PString</a> <a class="code" href="classPSecureHTTPServiceProcess.html#a5">CreateNonSSLMessage</a>(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; url);00085     <span class="keyword">virtual</span> <a class="code" href="classPString.html">PString</a> <a class="code" href="classPSecureHTTPServiceProcess.html#a6">CreateRedirectMessage</a>(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; url);00086 00087   <span class="keyword">protected</span>:<a name="l00088"></a><a class="code" href="classPSecureHTTPServiceProcess.html#n0">00088</a>     <a class="code" href="classPSSLContext.html">PSSLContext</a> * <a class="code" href="classPSecureHTTPServiceProcess.html#n0">sslContext</a>;<a name="l00089"></a><a class="code" href="classPSecureHTTPServiceProcess.html#n1">00089</a>     BOOL          <a class="code" href="classPSecureHTTPServiceProcess.html#n1">disableSSL</a>;00090 };00091 00092 00093 <span class="preprocessor">#endif // SHTTPSVC_H</span></pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:12 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -