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

📄 psasl_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>psasl.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>psasl.h</h1><a href="psasl_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * sasl.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Simple Authentication Security Layer interface classes</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) 2004 Reitek S.p.A.</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 Post Increment</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: psasl.h,v $</span>00027 <span class="comment"> * Revision 1.2  2004/04/28 11:26:42  csoutheren</span>00028 <span class="comment"> * Hopefully fixed SASL and SASL2 problems</span>00029 <span class="comment"> *</span>00030 <span class="comment"> * Revision 1.1  2004/04/18 12:02:31  csoutheren</span>00031 <span class="comment"> * Added classes for SASL authentication</span>00032 <span class="comment"> * Thanks to Federico Pinna and Reitek S.p.A.</span>00033 <span class="comment"> *</span>00034 <span class="comment"> *</span>00035 <span class="comment"> */</span>00036 00037 <span class="preprocessor">#if P_SASL2</span>00038 <span class="preprocessor"></span><span class="preprocessor">#ifndef _PSASL</span>00039 <span class="preprocessor"></span><span class="preprocessor">#define _PSASL</span>00040 <span class="preprocessor"></span>00041 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00042 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00043 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00044 <span class="preprocessor"></span>00045 00046 <span class="keyword">class </span>PSASLClient : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a>00047 {00048     <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(PSASLClient, <a class="code" href="classPObject.html">PObject</a>);00049 00050 <span class="keyword">public</span>:00051     <span class="keyword">enum</span>  PSASLResult {00052         Continue = 1,00053         OK = 0,00054         Fail = -100055     };00056 00057 <span class="keyword">protected</span>:00058     <span class="keyword">static</span> <a class="code" href="classPString.html">PString</a>  s_Realm;00059     <span class="keyword">static</span> <a class="code" href="classPString.html">PString</a>  s_Path;00060 00061     <span class="keywordtype">void</span> *          m_CallBacks;00062     <span class="keywordtype">void</span> *          m_ConnState;00063     <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>   m_Service;00064     <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>   m_UserID;00065     <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>   m_AuthID;00066     <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>   m_Password;00067 00068     BOOL            Start(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp; mechanism, <span class="keyword">const</span> <span class="keywordtype">char</span> ** output, <span class="keywordtype">unsigned</span>&amp; len);00069     PSASLResult     Negotiate(<span class="keyword">const</span> <span class="keywordtype">char</span> * input, <span class="keyword">const</span> <span class="keywordtype">char</span> ** output);00070 00071 <span class="keyword">public</span>:00072     PSASLClient(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp; service, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp; uid, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp; auth, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp; pwd);00073     ~PSASLClient();00074 00075     <span class="keyword">static</span> <span class="keywordtype">void</span>     SetRealm(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp; realm)  { s_Realm = realm; }00076     <span class="keyword">static</span> <span class="keywordtype">void</span>     SetPath(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp; path)    { s_Path = path; }00077 00078     <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp;  GetRealm()               { <span class="keywordflow">return</span> s_Realm; }00079     <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp;  GetPath()                { <span class="keywordflow">return</span> s_Path; }00080 00081     <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp;  GetService()<span class="keyword"> const  </span>{ <span class="keywordflow">return</span> m_Service; }00082     <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp;  GetUserID()<span class="keyword"> const   </span>{ <span class="keywordflow">return</span> m_UserID; }00083     <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp;  GetAuthID()<span class="keyword"> const   </span>{ <span class="keywordflow">return</span> m_AuthID; }00084     <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp;  GetPassword()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Password; }00085 00086     BOOL            Init(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp; fqdn, <a class="code" href="classPStringSet.html">PStringSet</a>&amp; supportedMechanisms);00087     BOOL            Start(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp; mechanism, <a class="code" href="classPString.html">PString</a>&amp; output);00088     PSASLResult     Negotiate(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a>&amp; input, <a class="code" href="classPString.html">PString</a>&amp; output);00089     BOOL            End();00090 };00091 00092 <span class="preprocessor">#endif  // _PSASL</span>00093 <span class="preprocessor"></span><span class="preprocessor">#endif  // P_SASL2</span>00094 <span class="preprocessor"></span>00095 <span class="comment">// End of File ///////////////////////////////////////////////////////////////</span></pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:11 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 + -