Lines Matching defs:pw
58 const char *sessionid, const char *pw,
71 operation, pw ? pw : "",
88 const char *pw)
94 pw, sessionid, user, realm);
475 const char *realm, const char *pw, int dmacc)
482 pw, dmacc ? "osu_user" : "identity",
514 const char *user, const char *pw)
525 b64 = (char *) base64_encode((unsigned char *) pw, strlen(pw), NULL);
536 const char *user, const char *pw)
540 node = build_username_password(ctx, cred, user, pw);
569 const char *pw)
579 if (add_username_password(ctx, cred, user, pw) < 0) {
989 char *pw;
990 pw = db_get_val(ctx, user, realm, "osu_password", use_dmacc);
991 if (pw == NULL ||
992 build_username_password(ctx, node, user, pw) == NULL) {
995 free(pw);
999 free(pw);
1215 const char *pw, const char *cert,
1264 userpw = build_username_password(ctx, cred, user, pw);
1331 char *user, *realm, *pw, *type, *mm;
1339 pw = db_get_session_val(ctx, NULL, NULL, session_id, "password");
1341 if (!user || !realm || !pw) {
1346 free(pw);
1367 free(pw);
1371 if (!cert && strlen(pw) == 0) {
1373 free(pw);
1374 pw = malloc(11);
1375 if (pw == NULL || new_password(pw, 11) < 0) {
1378 free(pw);
1390 pps = build_pps(ctx, user, realm, pw,
1397 free(pw);
1404 db_update_session_password(ctx, user, realm, session_id, pw);
1413 free(pw);
1452 char *free_account, *pw;
1457 pw = db_get_val(ctx, free_account, realm, "password", 0);
1458 if (pw == NULL) {
1463 cred = build_credential_pw(ctx, free_account, realm, pw);
1465 free(pw);
1895 char *user, *realm, *pw, *pw_mm, *pps, *str;
1906 pw = db_get_session_val(ctx, NULL, NULL, session_id, "password");
1917 if (!user || !realm || !pw) {
1974 ret = update_password(ctx, user, realm, pw, 0);
2009 free(pw);