You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2002/09/13 23:55:31 UTC
cvs commit: httpd-2.0/modules/aaa auth_provider.c mod_auth.h mod_auth_basic.dsp mod_auth_digest.dsp
wrowe 2002/09/13 14:55:31
Modified: . Makefile.win Apache.dsw
modules/aaa auth_provider.c mod_auth.h mod_auth_basic.dsp
mod_auth_digest.dsp
Log:
A quick-n-dirty hack. Expose the auth_provider api from mod_auth_basic
alone, on Win32 only.
Requires mod_auth_basic be loaded prior to using mod_auth_digest or any
other mod_authn/z modules.
Win32 builds again.
Revision Changes Path
1.118 +0 -1 httpd-2.0/Makefile.win
Index: Makefile.win
===================================================================
RCS file: /home/cvs/httpd-2.0/Makefile.win,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -r1.117 -r1.118
--- Makefile.win 13 Sep 2002 16:39:03 -0000 1.117
+++ Makefile.win 13 Sep 2002 21:55:30 -0000 1.118
@@ -420,7 +420,6 @@
copy srclib\apr\$(LONG)\libapr.pdb "$(INSTDIR)\bin" <.y
copy srclib\apr-iconv\$(LONG)\libapriconv.pdb "$(INSTDIR)\bin" <.y
copy srclib\apr-util\$(LONG)\libaprutil.pdb "$(INSTDIR)\bin" <.y
- copy modules\aaa\$(LONG)\mod_access.pdb "$(INSTDIR)\modules" <.y
copy modules\aaa\$(LONG)\mod_auth_basic.pdb "$(INSTDIR)\modules" <.y
copy modules\aaa\$(LONG)\mod_auth_digest.pdb "$(INSTDIR)\modules" <.y
copy modules\aaa\$(LONG)\mod_authn_anon.pdb "$(INSTDIR)\modules" <.y
1.88 +30 -3 httpd-2.0/Apache.dsw
Index: Apache.dsw
===================================================================
RCS file: /home/cvs/httpd-2.0/Apache.dsw,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- Apache.dsw 13 Sep 2002 16:39:02 -0000 1.87
+++ Apache.dsw 13 Sep 2002 21:55:30 -0000 1.88
@@ -66,9 +66,6 @@
Project_Dep_Name mod_asis
End Project Dependency
Begin Project Dependency
- Project_Dep_Name mod_auth_basic
- End Project Dependency
- Begin Project Dependency
Project_Dep_Name mod_auth_digest
End Project Dependency
Begin Project Dependency
@@ -605,6 +602,9 @@
Begin Project Dependency
Project_Dep_Name libhttpd
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name mod_auth_basic
+ End Project Dependency
}}}
###############################################################################
@@ -626,6 +626,9 @@
Begin Project Dependency
Project_Dep_Name libhttpd
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name mod_auth_basic
+ End Project Dependency
}}}
###############################################################################
@@ -647,6 +650,9 @@
Begin Project Dependency
Project_Dep_Name libhttpd
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name mod_auth_basic
+ End Project Dependency
}}}
###############################################################################
@@ -668,6 +674,9 @@
Begin Project Dependency
Project_Dep_Name libhttpd
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name mod_auth_basic
+ End Project Dependency
}}}
###############################################################################
@@ -689,6 +698,9 @@
Begin Project Dependency
Project_Dep_Name libhttpd
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name mod_auth_basic
+ End Project Dependency
}}}
###############################################################################
@@ -710,6 +722,9 @@
Begin Project Dependency
Project_Dep_Name libhttpd
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name mod_auth_basic
+ End Project Dependency
}}}
###############################################################################
@@ -731,6 +746,9 @@
Begin Project Dependency
Project_Dep_Name libhttpd
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name mod_auth_basic
+ End Project Dependency
}}}
###############################################################################
@@ -752,6 +770,9 @@
Begin Project Dependency
Project_Dep_Name libhttpd
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name mod_auth_basic
+ End Project Dependency
}}}
###############################################################################
@@ -773,6 +794,9 @@
Begin Project Dependency
Project_Dep_Name libhttpd
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name mod_auth_basic
+ End Project Dependency
}}}
###############################################################################
@@ -793,6 +817,9 @@
End Project Dependency
Begin Project Dependency
Project_Dep_Name libhttpd
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name mod_auth_basic
End Project Dependency
}}}
1.2 +4 -4 httpd-2.0/modules/aaa/auth_provider.c
Index: auth_provider.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/aaa/auth_provider.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- auth_provider.c 10 Sep 2002 06:57:02 -0000 1.1
+++ auth_provider.c 13 Sep 2002 21:55:31 -0000 1.2
@@ -73,7 +73,7 @@
return APR_SUCCESS;
}
-AP_DECLARE(void) authn_register_provider(apr_pool_t *p, const char *name,
+AAA_DECLARE(void) authn_register_provider(apr_pool_t *p, const char *name,
const authn_provider *provider)
{
if (authn_repos_providers == NULL) {
@@ -86,7 +86,7 @@
apr_hash_set(authn_repos_providers, name, APR_HASH_KEY_STRING, provider);
}
-AP_DECLARE(const authn_provider *) authn_lookup_provider(const char *name)
+AAA_DECLARE(const authn_provider *) authn_lookup_provider(const char *name)
{
/* Better watch out against no registered providers */
if (authn_repos_providers == NULL) {
@@ -96,7 +96,7 @@
return apr_hash_get(authn_repos_providers, name, APR_HASH_KEY_STRING);
}
-AP_DECLARE(void) authz_register_provider(apr_pool_t *p, const char *name,
+AAA_DECLARE(void) authz_register_provider(apr_pool_t *p, const char *name,
const authz_provider *provider)
{
if (authz_repos_providers == NULL) {
@@ -109,7 +109,7 @@
apr_hash_set(authz_repos_providers, name, APR_HASH_KEY_STRING, provider);
}
-AP_DECLARE(const authz_provider *) authz_lookup_provider(const char *name)
+AAA_DECLARE(const authz_provider *) authz_lookup_provider(const char *name)
{
/* Better watch out against no registered providers */
if (authz_repos_providers == NULL) {
1.3 +21 -4 httpd-2.0/modules/aaa/mod_auth.h
Index: mod_auth.h
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/aaa/mod_auth.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mod_auth.h 10 Sep 2002 14:32:41 -0000 1.2
+++ mod_auth.h 13 Sep 2002 21:55:31 -0000 1.3
@@ -65,6 +65,23 @@
extern "C" {
#endif
+/* Create a set of AAA_DECLARE(type) and AAA_DECLARE_DATA with
+ * appropriate export and import tags for the platform
+ */
+#if !defined(WIN32)
+#define AAA_DECLARE(type) type
+#define AAA_DECLARE_DATA
+#elif defined(AAA_DECLARE_STATIC)
+#define AAA_DECLARE(type) type __stdcall
+#define AAA_DECLARE_DATA
+#elif defined(AAA_DECLARE_EXPORT)
+#define AAA_DECLARE(type) __declspec(dllexport) type __stdcall
+#define AAA_DECLARE_DATA __declspec(dllexport)
+#else
+#define AAA_DECLARE(type) __declspec(dllimport) type __stdcall
+#define AAA_DECLARE_DATA __declspec(dllimport)
+#endif
+
#define AUTHN_DEFAULT_PROVIDER "file"
typedef enum {
@@ -89,18 +106,18 @@
const char *realm, char **rethash);
} authn_provider;
-AP_DECLARE(void) authn_register_provider(apr_pool_t *p, const char *name,
+AAA_DECLARE(void) authn_register_provider(apr_pool_t *p, const char *name,
const authn_provider *provider);
-AP_DECLARE(const authn_provider *) authn_lookup_provider(const char *name);
+AAA_DECLARE(const authn_provider *) authn_lookup_provider(const char *name);
typedef struct {
/* For a given user, return a hash of all groups the user belongs to. */
apr_hash_t * (*get_user_groups)(request_rec *r, const char *user);
} authz_provider;
-AP_DECLARE(void) authz_register_provider(apr_pool_t *p, const char *name,
+AAA_DECLARE(void) authz_register_provider(apr_pool_t *p, const char *name,
const authz_provider *provider);
-AP_DECLARE(const authz_provider *) authz_lookup_provider(const char *name);
+AAA_DECLARE(const authz_provider *) authz_lookup_provider(const char *name);
#ifdef __cplusplus
}
#endif
1.2 +2 -2 httpd-2.0/modules/aaa/mod_auth_basic.dsp
Index: mod_auth_basic.dsp
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/aaa/mod_auth_basic.dsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mod_auth_basic.dsp 13 Sep 2002 16:39:03 -0000 1.1
+++ mod_auth_basic.dsp 13 Sep 2002 21:55:31 -0000 1.2
@@ -43,7 +43,7 @@
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /FD /c
-# ADD CPP /nologo /MD /W3 /O2 /I "../../include" /I "../../srclib/apr/include" /I "../../srclib/apr-util/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /Fd"Release\mod_auth_basic" /FD /c
+# ADD CPP /nologo /MD /W3 /O2 /I "../../include" /I "../../srclib/apr/include" /I "../../srclib/apr-util/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "AAA_DECLARE_EXPORT" /Fd"Release\mod_auth_basic" /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o /win32 "NUL"
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o /win32 "NUL"
# ADD BASE RSC /l 0x409 /d "NDEBUG"
@@ -69,7 +69,7 @@
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MDd /W3 /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FD /c
-# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../include" /I "../../srclib/apr/include" /I "../../srclib/apr-util/include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /Fd"Debug\mod_auth_basic" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /I "../../include" /I "../../srclib/apr/include" /I "../../srclib/apr-util/include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "AAA_DECLARE_EXPORT" /Fd"Debug\mod_auth_basic" /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o /win32 "NUL"
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o /win32 "NUL"
# ADD BASE RSC /l 0x409 /d "_DEBUG"
1.21 +0 -4 httpd-2.0/modules/aaa/mod_auth_digest.dsp
Index: mod_auth_digest.dsp
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/aaa/mod_auth_digest.dsp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- mod_auth_digest.dsp 13 Sep 2002 16:39:03 -0000 1.20
+++ mod_auth_digest.dsp 13 Sep 2002 21:55:31 -0000 1.21
@@ -93,10 +93,6 @@
# End Source File
# Begin Source File
-SOURCE=.\auth_provider.c
-# End Source File
-# Begin Source File
-
SOURCE=.\mod_auth_digest.rc
# End Source File
# Begin Source File