summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.c8
-rw-r--r--icclient/client.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/client.c b/client.c
index 608b7e5..9a3857c 100644
--- a/client.c
+++ b/client.c
@@ -29,6 +29,14 @@ bool icclient_init(const char *url, const char *certificate)
return (bool)curl;
}
+void icclient_newaccount(const char *username, const char *password
+ , const char *verify, const char *successpage, const char *nextpage
+ , const char *failpage)
+{
+ login(username, password, verify, "NewAccount", successpage, nextpage
+ , failpage);
+}
+
void icclient_login(const char *username, const char *password
, const char *successpage, const char *nextpage
, const char *failpage)
diff --git a/icclient/client.h b/icclient/client.h
index 53d5d77..40fdfda 100644
--- a/icclient/client.h
+++ b/icclient/client.h
@@ -6,6 +6,9 @@ extern "C" {
#endif
bool icclient_init(const char *url, const char *certificate);
+ void icclient_user_newaccount(const char *username, const char *password
+ , const char *verify, const char *successpage
+ , const char *nextpage, const char *failpage);
void icclient_login(const char *username, const char *password
, const char *successpage, const char *nextpage
, const char *failpage);