LCOV - code coverage report
Current view: directory - extensions/auth - nsHttpNegotiateAuth.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /* vim:set ts=4 sw=4 et cindent: */
       2                 : /* ***** BEGIN LICENSE BLOCK *****
       3                 :  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
       4                 :  *
       5                 :  * The contents of this file are subject to the Mozilla Public License Version
       6                 :  * 1.1 (the "License"); you may not use this file except in compliance with
       7                 :  * the License. You may obtain a copy of the License at
       8                 :  * http://www.mozilla.org/MPL/
       9                 :  *
      10                 :  * Software distributed under the License is distributed on an "AS IS" basis,
      11                 :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12                 :  * for the specific language governing rights and limitations under the
      13                 :  * License.
      14                 :  *
      15                 :  * The Original Code is the Negotiateauth
      16                 :  *
      17                 :  * The Initial Developer of the Original Code is Daniel Kouril.
      18                 :  * Portions created by the Initial Developer are Copyright (C) 2003
      19                 :  * the Initial Developer. All Rights Reserved.
      20                 :  *
      21                 :  * Contributor(s):
      22                 :  *   Daniel Kouril <kouril@ics.muni.cz> (original author)
      23                 :  *   Wyllys Ingersoll <wyllys.ingersoll@sun.com>
      24                 :  *   Christopher Nebergall <cneberg@sandia.gov>
      25                 :  *   Darin Fisher <darin@meer.net>
      26                 :  *
      27                 :  * Alternatively, the contents of this file may be used under the terms of
      28                 :  * either the GNU General Public License Version 2 or later (the "GPL"), or
      29                 :  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
      30                 :  * in which case the provisions of the GPL or the LGPL are applicable instead
      31                 :  * of those above. If you wish to allow use of your version of this file only
      32                 :  * under the terms of either the GPL or the LGPL, and not to allow others to
      33                 :  * use your version of this file under the terms of the MPL, indicate your
      34                 :  * decision by deleting the provisions above and replace them with the notice
      35                 :  * and other provisions required by the GPL or the LGPL. If you do not delete
      36                 :  * the provisions above, a recipient may use your version of this file under
      37                 :  * the terms of any one of the MPL, the GPL or the LGPL.
      38                 :  *
      39                 :  * ***** END LICENSE BLOCK ***** */
      40                 : 
      41                 : #ifndef nsHttpNegotiateAuth_h__
      42                 : #define nsHttpNegotiateAuth_h__
      43                 : 
      44                 : #include "nsIHttpAuthenticator.h"
      45                 : #include "nsIURI.h"
      46                 : #include "nsSubstring.h"
      47                 : 
      48                 : // The nsHttpNegotiateAuth class provides responses for the GSS-API Negotiate method
      49                 : // as specified by Microsoft in draft-brezak-spnego-http-04.txt
      50                 : 
      51                 : class nsHttpNegotiateAuth : public nsIHttpAuthenticator
      52               0 : {
      53                 : public:
      54                 :     NS_DECL_ISUPPORTS
      55                 :     NS_DECL_NSIHTTPAUTHENTICATOR
      56                 : 
      57                 : private:
      58                 :     // returns the value of the given boolean pref
      59                 :     bool TestBoolPref(const char *pref);
      60                 : 
      61                 :     // tests if the host part of an uri is fully qualified
      62                 :     bool TestNonFqdn(nsIURI *uri);
      63                 : 
      64                 :     // returns true if URI is accepted by the list of hosts in the pref
      65                 :     bool TestPref(nsIURI *, const char *pref);
      66                 : 
      67                 :     bool MatchesBaseURI(const nsCSubstring &scheme,
      68                 :                           const nsCSubstring &host,
      69                 :                           PRInt32             port,
      70                 :                           const char         *baseStart,
      71                 :                           const char         *baseEnd);
      72                 : };
      73                 : #endif /* nsHttpNegotiateAuth_h__ */

Generated by: LCOV version 1.7