chiark / gitweb /
client.c make-cookie support
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 22 Dec 2007 13:59:19 +0000 (13:59 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 22 Dec 2007 13:59:19 +0000 (13:59 +0000)
lib/client.c
lib/client.h

index 8096ee7..c18ca56 100644 (file)
@@ -710,6 +710,11 @@ int disorder_confirm(disorder_client *c, const char *confirm) {
   return disorder_simple(c, 0, "confirm", confirm, (char *)0);
 }
 
   return disorder_simple(c, 0, "confirm", confirm, (char *)0);
 }
 
+int disorder_make_cookie(disorder_client *c, char **cookiep) {
+  return dequote(disorder_simple(c, cookiep, "make-cookie", (char *)0),
+                cookiep);
+}
+
 /*
 Local Variables:
 c-basic-offset:2
 /*
 Local Variables:
 c-basic-offset:2
index 88a86f4..0d7d597 100644 (file)
@@ -202,6 +202,7 @@ int disorder_register(disorder_client *c, const char *user,
                      const char *password, const char *email,
                      char **confirmp);
 int disorder_confirm(disorder_client *c, const char *confirm);
                      const char *password, const char *email,
                      char **confirmp);
 int disorder_confirm(disorder_client *c, const char *confirm);
+int disorder_make_cookie(disorder_client *c, char **cookiep);
 
 #endif /* CLIENT_H */
 
 
 #endif /* CLIENT_H */