head	1.2;
access;
symbols
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2005.09.09.14.00.10;	author lawrance;	state dead;
branches;
next	1.1;

1.1
date	2002.04.19.22.23.32;	author kris;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Update to 0.9.6
- Add rcng startup
- No longer touch pksd.conf, only pksd.conf.sample
- Ensure the port builds against db2 from ports by deleting the included
  version.  Add post-patch bits to help this happen.
- Submitter takes maintainership

PR:		ports/85802
Submitted by:	Graham Todd <gtodd@@bellanet.org> (new maintainer)
Approved by:	Jason Harris <jharris@@widomaker.com> (maintainer)
@
text
@===================================================================
RCS file: www.c,v
retrieving revision 1.25
diff -u -r1.25 www.c
--- www.c	1999/06/02 06:08:16	1.25
+++ www.c	2001/09/02 04:26:28
@@@@ -21,6 +21,7 @@@@
 #include "www.h"
 #include "globals.h"
 #include "parse.h"
+#include "pks_www.h"
 
 static const long hexchar[] = {
    256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,
@@@@ -140,6 +141,7 @@@@
 typedef struct _hh_state {
    httphandler h;
    xbuffer xb;
+  unsigned int readonly;
    void *c;
    long ptr;
    long method, uri, method_len, uri_len;
@@@@ -148,10 +150,12 @@@@
 
 static void reader(int fd, unsigned char *input, long len, int done, void *c)
 {
-   hh_state *s = (hh_state *) c;
 
+   hh_state *s = (hh_state *) c;
    long ptr, cnt;
    long dummy, dummy_len;
+   unsigned int readonly = s->readonly;
+
 
    if (done < 0) {
       xbuffer_free(&(s->xb));
@@@@ -360,7 +364,7 @@@@
 	 }
       }
    } else if (is_token(input+s->method, s->method_len, post, post_len, 0)) {
-      if (s->content_length == 0) {
+      if ((s->content_length == 0) || readonly) {
 	 www_reply(fd, 1000, 400, bad_request, NULL, 0);
 	 mp_delete_read(fd);
 	 xbuffer_free(&(s->xb));
@@@@ -484,6 +488,7 @@@@
 
    hhs->h = h;
    hhs->c = c;
+   hhs->readonly = ((pks_www_conf *)c)->readonly;
    xbuffer_alloc(&(hhs->xb));
    hhs->ptr = 0;
    hhs->uri = -1;
@


1.1
log
@Patches from maintainer:

* HKP (WWW) key submissions disabled by default, enabled via
  configuration file
* nicer formatting of long (SHA-1) fingerprints
* pksdctl usage() shows available commands/arguments
* manual page fixes

Bump PORTREVISION.

PR:		ports/34970
Submitted by:	Jason Harris <jharris@@widomaker.com>
@
text
@@

