+* Thu Feb 15 2007 Andrew McNab <Andrew.McNab@man.ac.uk>
+- Final preparations for 1.4.x
* Fri Sep 22 2006 Andrew McNab <Andrew.McNab@man.ac.uk>
- Transfer htproxyinfo utility functions into
grst_x509.c (GRSTx509ChainLoadCheck etc)
.IP "GridSiteEditable [ext1 [ext2 [ext3] ...]]]"
A space-separated list of file extensions which can safely be edited
by the GridSite Text/HTML editor. The extensions are given without the
-initial dot.
+initial dot. This directive must apply to the gridsite-admin.cgi
+executable, rather than just to the files it manages. This is most
+easily achieved by placing GridSiteEditable in the main section of
+the virtual host, outside any Directory or Location containers.
(Default: GridSiteEditable txt shtml html htm css js php jsp)
.IP "GridSiteHelpURI uri"
-o gridsite-copy.cgi gridsite-copy.c -L. \
-I/usr/kerberos/include \
`curl-config --cflags` `curl-config --libs` \
- -lgridsite
+ $(MYFCGILIBS) -lgridsite
mod_gridsite.so: mod_gridsite.c mod_ssl-private.h libgridsite.so.$(VERSION)
gcc -g $(MYCFLAGS) -shared -Wl,-soname=gridsite_module \
// script COPY /cgi-bin/gridsite-copy.cgi
//
///////////////////////////////////////////////////////////////////
+#ifdef GRST_USE_FASTCGI
#include <fcgi_stdio.h>
+#endif
#include <stdio.h>
#include <time.h>
#include <string.h>
int main( void )
{
-
- while(FCGI_Accept() >= 0){
+#ifdef GRST_USE_FASTCGI
+ while(FCGI_Accept() >= 0)
+#endif
+ {
gridsite_copy();
}
}
-
void uploadfile(char *dn, GRSTgaclPerm perm, char *help_uri, char *dir_path,
char *dir_uri, char *admin_file)
{
- char *boundary, *p, oneline[200], *filename = NULL,
- tmpfilename[256], *filebuffer = NULL, *filepath,
+ char *boundary, *p, oneline[1086], *filename = NULL,
+ tmpfilename[1025], *filebuffer = NULL, *filepath,
*vfile, *dir_path_vfile;
int mimestate, bufferused = 0, itworked = 0;
FILE *fp;
#include "gridsite.h"
-#define GRST_KEYSIZE 512
-#define GRST_PROXYCACHE "/../proxycache/"
-#define GRST_MAX_CHAIN_LEN 9
+#define GRST_KEYSIZE 512
+#define GRST_PROXYCACHE "/../proxycache/"
+#define GRST_MAX_CHAIN_LEN 9
+#define GRST_BACKDATE_SECONDS 300
/// Compare X509 Distinguished Name strings
int GRSTx509NameCmp(char *a, char *b)
}
/* set duration for the certificate */
- if (!(X509_gmtime_adj (X509_get_notBefore(certs[0]), 0)))
+ if (!(X509_gmtime_adj (X509_get_notBefore(certs[0]), -GRST_BACKDATE_SECONDS)))
{
mpcerror(debugfp,
"GRSTx509MakeProxyCert(): error setting beginning time of the certificate\n");