--- libwww/Library/src/HTAAUtil.html 1995/05/19 02:04:08 2.18 +++ libwww/Library/src/HTAAUtil.html 1995/06/12 04:14:51 2.19 @@ -45,8 +45,8 @@ Library of Common Code.
 #ifndef HTAAUTIL_H
 #define HTAAUTIL_H
-
 #include "HTList.h"
+#include "HTAccess.h"
 

Default filenames

@@ -99,24 +99,6 @@ typedef enum { HTAA_NOT_FOUND, /* 404 Not found, or read protected */ HTAA_MULTI_FAILED /* 404 No suitable presentation found */ } HTAAFailReason; - - - -

Datatype definitions

-

HTAAScheme

The enumeration HTAAScheme represents -the possible authentication schemes -used by the WWW Access Authorization. -
-typedef enum {
-    HTAA_UNKNOWN,
-    HTAA_NONE,
-    HTAA_BASIC,
-    HTAA_PUBKEY,
-    HTAA_KERBEROS_V4,
-    HTAA_KERBEROS_V5,
-    HTAA_MAX_SCHEMES /* THIS MUST ALWAYS BE LAST! Number of schemes */
-} HTAAScheme;
-
 

Authentication Schemes

@@ -145,6 +127,32 @@ extern HTAAScheme HTAAScheme_enum PARAMS extern char *HTAAScheme_name PARAMS((HTAAScheme scheme)); +/* extern HTAA_templateMatch() +** STRING COMPARISON FUNCTION FOR FILE NAMES +** WITH ONE WILDCARD * IN THE TEMPLATE +** NOTE: +** This is essentially the same code as in HTRules.c, but it +** cannot be used because it is embedded in between other code. +** (In fact, HTRules.c should use this routine, but then this +** routine would have to be more sophisticated... why is life +** sometimes so hard...) +** +** ON ENTRY: +** tmplate is a template string to match the file name +** agaist, may contain a single wildcard +** character * which matches zero or more +** arbitrary characters. +** filename is the filename (or pathname) to be matched +** agaist the template. +** +** ON EXIT: +** returns YES, if filename matches the template. +** NO, otherwise. +*/ +extern BOOL HTAA_templateMatch PARAMS((CONST char * tmplate, + CONST char * filename)); + + /* PUBLIC HTAA_templateCaseMatch() ** STRING COMPARISON FUNCTION FOR FILE NAMES ** WITH ONE WILDCARD * IN THE TEMPLATE (Case Insensitive)