#include "form.h" #include "defs.h" #include int form_shortpwd(struct http_response *const r) { int ret; struct dynstr d; dynstr_init(&d); if (dynstr_append(&d, "Password is too short, minimum %d bytes", MINPWDLEN)) { fprintf(stderr, "%s: dynstr_append failed\n", __func__); return -1; } ret = form_badreq(d.str, r); dynstr_free(&d); return ret; }