chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
copyright date
[disorder]
/
lib
/
cookies.c
diff --git
a/lib/cookies.c
b/lib/cookies.c
index 585fd7e7a08787979737190c9eb7f51a6bef76d5..bc8e9b087a3021388c420e0666aff60909f75d85 100644
(file)
--- a/
lib/cookies.c
+++ b/
lib/cookies.c
@@
-38,7
+38,7
@@
#include "mem.h"
#include "log.h"
#include "printf.h"
#include "mem.h"
#include "log.h"
#include "printf.h"
-#include "
mime
.h"
+#include "
base64
.h"
#include "configuration.h"
#include "kvp.h"
#include "rights.h"
#include "configuration.h"
#include "kvp.h"
#include "rights.h"
@@
-198,7
+198,7
@@
char *verify_cookie(const char *cookie, rights_type *rights) {
}
password = kvp_get(k, "password");
if(!password) password = "";
}
password = kvp_get(k, "password");
if(!password) password = "";
- if(parse_rights(kvp_get(k, "rights"), rights))
+ if(parse_rights(kvp_get(k, "rights"), rights
, 1
))
return 0;
/* construct the expected subject. We re-encode the timestamp and the
* password. */
return 0;
/* construct the expected subject. We re-encode the timestamp and the
* password. */