Lines Matching refs:cred

535 static int add_username_password(struct hs20_svc *ctx, xml_node_t *cred,  in add_username_password()  argument
540 node = build_username_password(ctx, cred, user, pw); in add_username_password()
552 static void add_creation_date(struct hs20_svc *ctx, xml_node_t *cred) in add_creation_date() argument
563 xml_node_create_text(ctx->xml, cred, NULL, "CreationDate", str); in add_creation_date()
571 xml_node_t *cred; in build_credential_pw() local
573 cred = xml_node_create_root(ctx->xml, NULL, NULL, NULL, "Credential"); in build_credential_pw()
574 if (cred == NULL) { in build_credential_pw()
578 add_creation_date(ctx, cred); in build_credential_pw()
579 if (add_username_password(ctx, cred, user, pw) < 0) { in build_credential_pw()
580 xml_node_free(ctx->xml, cred); in build_credential_pw()
583 add_text_node(ctx, cred, "Realm", realm); in build_credential_pw()
585 return cred; in build_credential_pw()
604 xml_node_t *cred, *cert; in build_credential_cert() local
606 cred = xml_node_create_root(ctx->xml, NULL, NULL, NULL, "Credential"); in build_credential_cert()
607 if (cred == NULL) { in build_credential_cert()
611 add_creation_date(ctx, cred); in build_credential_cert()
612 cert = xml_node_create(ctx->xml, cred, NULL, "DigitalCertificate"); in build_credential_cert()
615 add_text_node(ctx, cred, "Realm", realm); in build_credential_cert()
617 return cred; in build_credential_cert()
683 xml_node_t *spp_node, *cred; in build_sub_rem_resp() local
703 cred = build_credential_cert(ctx, real_user ? real_user : user, in build_sub_rem_resp()
706 cred = build_credential(ctx, real_user ? real_user : user, in build_sub_rem_resp()
710 if (!cred) { in build_sub_rem_resp()
727 if (add_update_node(ctx, spp_node, ns, buf, cred) < 0) { in build_sub_rem_resp()
735 "user remediation", cred); in build_sub_rem_resp()
736 xml_node_free(ctx->xml, cred); in build_sub_rem_resp()
1219 xml_node_t *cred, *eap, *userpw; in build_pps() local
1255 cred = xml_node_create(ctx->xml, c, NULL, "Credential"); in build_pps()
1256 add_creation_date(ctx, cred); in build_pps()
1259 dc = xml_node_create(ctx->xml, cred, NULL, in build_pps()
1264 userpw = build_username_password(ctx, cred, user, pw); in build_pps()
1271 add_text_node(ctx, cred, "Realm", realm); in build_pps()
1449 xml_node_t *cred; in hs20_user_input_free_remediation() local
1463 cred = build_credential_pw(ctx, free_account, realm, pw); in hs20_user_input_free_remediation()
1466 if (!cred) { in hs20_user_input_free_remediation()
1467 xml_node_free(ctx->xml, cred); in hs20_user_input_free_remediation()
1481 if (add_update_node(ctx, spp_node, ns, buf, cred) < 0) { in hs20_user_input_free_remediation()
1487 "free/public remediation", cred); in hs20_user_input_free_remediation()
1488 xml_node_free(ctx->xml, cred); in hs20_user_input_free_remediation()