Lines Matching defs:realm
125 static void add_password(const char *user, const char *realm, apr_file_t *f)
147 apr_file_printf(f, "%s:%s:", user, realm);
150 apr_snprintf(string, sizeof(string), "%s:%s:%s", user, realm, pw);
167 apr_file_printf(errfile, "Usage: htdigest [-c] passwordfile realm username\n");
193 char realm[MAX_STRING_LEN];
226 apr_cpystrn(realm, argv[3], sizeof(realm));
227 apr_file_printf(errfile, "Adding password for %s in realm %s.\n",
228 user, realm);
229 add_password(user, realm, f);
255 apr_cpystrn(realm, argv[2], sizeof(realm));
266 if (strcmp(user, w) || strcmp(realm, x)) {
271 apr_file_printf(errfile, "Changing password for user %s in realm %s\n",
272 user, realm);
273 add_password(user, realm, tfp);
278 apr_file_printf(errfile, "Adding user %s in realm %s\n", user, realm);
279 add_password(user, realm, tfp);