Lines Matching refs:cred
513 static int add_username_password(struct hs20_svc *ctx, xml_node_t *cred, in add_username_password() argument
518 node = build_username_password(ctx, cred, user, pw); in add_username_password()
530 static void add_creation_date(struct hs20_svc *ctx, xml_node_t *cred) in add_creation_date() argument
541 xml_node_create_text(ctx->xml, cred, NULL, "CreationDate", str); in add_creation_date()
549 xml_node_t *cred; in build_credential_pw() local
551 cred = xml_node_create_root(ctx->xml, NULL, NULL, NULL, "Credential"); in build_credential_pw()
552 if (cred == NULL) { in build_credential_pw()
556 add_creation_date(ctx, cred); in build_credential_pw()
557 if (add_username_password(ctx, cred, user, pw) < 0) { in build_credential_pw()
558 xml_node_free(ctx->xml, cred); in build_credential_pw()
561 add_text_node(ctx, cred, "Realm", realm); in build_credential_pw()
563 return cred; in build_credential_pw()
582 xml_node_t *cred, *cert; in build_credential_cert() local
584 cred = xml_node_create_root(ctx->xml, NULL, NULL, NULL, "Credential"); in build_credential_cert()
585 if (cred == NULL) { in build_credential_cert()
589 add_creation_date(ctx, cred); in build_credential_cert()
590 cert = xml_node_create(ctx->xml, cred, NULL, "DigitalCertificate"); in build_credential_cert()
593 add_text_node(ctx, cred, "Realm", realm); in build_credential_cert()
595 return cred; in build_credential_cert()
661 xml_node_t *spp_node, *cred; in build_sub_rem_resp() local
681 cred = build_credential_cert(ctx, real_user ? real_user : user, in build_sub_rem_resp()
684 cred = build_credential(ctx, real_user ? real_user : user, in build_sub_rem_resp()
688 if (!cred) { in build_sub_rem_resp()
705 if (add_update_node(ctx, spp_node, ns, buf, cred) < 0) { in build_sub_rem_resp()
713 "user remediation", cred); in build_sub_rem_resp()
714 xml_node_free(ctx->xml, cred); in build_sub_rem_resp()
1197 xml_node_t *cred, *eap, *userpw; in build_pps() local
1233 cred = xml_node_create(ctx->xml, c, NULL, "Credential"); in build_pps()
1234 add_creation_date(ctx, cred); in build_pps()
1237 dc = xml_node_create(ctx->xml, cred, NULL, in build_pps()
1242 userpw = build_username_password(ctx, cred, user, pw); in build_pps()
1249 add_text_node(ctx, cred, "Realm", realm); in build_pps()
1422 xml_node_t *cred; in hs20_user_input_free_remediation() local
1436 cred = build_credential_pw(ctx, free_account, realm, pw); in hs20_user_input_free_remediation()
1439 if (!cred) { in hs20_user_input_free_remediation()
1440 xml_node_free(ctx->xml, cred); in hs20_user_input_free_remediation()
1454 if (add_update_node(ctx, spp_node, ns, buf, cred) < 0) { in hs20_user_input_free_remediation()
1460 "free/public remediation", cred); in hs20_user_input_free_remediation()
1461 xml_node_free(ctx->xml, cred); in hs20_user_input_free_remediation()