zxid
view release on metacpan or search on metacpan
zxencdectest.c view on Meta::CPAN
read_all_alloc(cf->ctx, "test5d", 1, &outlen, "/impossible");
zx_prepare_dec_ctx(cf->ctx, zx_ns_tab, zx__NS_MAX, foobar, foobar+sizeof(foobar));
zx_format_parse_error(cf->ctx, buf, sizeof(buf), "test6");
printf("parse err(%s)\n", buf);
zx_xml_parse_err(cf->ctx, '?', __FUNCTION__, "test7");
printf("memmem(%s)\n", zx_memmem("foobar", 6, "oba", 3));
ss = zx_ref_str(cf->ctx, "abc");
zx_str_conv(ss, &outlen, &out);
zxid_wsp_decorate(cf, &sess, 0, "<foo/>");
#ifndef MINGW
setenv("HTTP_COOKIE", "_liberty_idp=\"test8\"", 1);
zxid_cdc_read(cf, &cgi);
#endif
cgi.cdc = "test9";
zxid_cdc_check(cf, &cgi);
zxid_new_cgi(cf, "=test10&ok=1&okx=2&s=S123&c=test11&e=abc&d=def&&l=x&l1=y&l1foo=z&inv=qwe&fg=1&fh=7&fr=RS&gu=1&gn=asa&ge=1&an=&aw=&at=&SAMLart=artti&SAMLResponse=respis");
printf("n=%s\n", zxid_saml2_map_nid_fmt("n"));
printf("p=%s\n", zxid_saml2_map_nid_fmt("p"));
printf("t=%s\n", zxid_saml2_map_nid_fmt("t"));
printf("u=%s\n", zxid_saml2_map_nid_fmt("u"));
zxencdectest.c view on Meta::CPAN
zxid_sigres_map(ZXSIG_BAD_CERT, &sigval, &sigmsg); printf("%s %s\n", sigval, sigmsg);
zxid_sigres_map(ZXSIG_VFY_FAIL, &sigval, &sigmsg); printf("%s %s\n", sigval, sigmsg);
zxid_sigres_map(ZXSIG_NO_SIG, &sigval, &sigmsg); printf("%s %s\n", sigval, sigmsg);
zxid_sigres_map(ZXSIG_TIMEOUT, &sigval, &sigmsg); printf("%s %s\n", sigval, sigmsg);
zxid_sigres_map(ZXSIG_AUDIENCE, &sigval, &sigmsg); printf("%s %s\n", sigval, sigmsg);
zxid_sigres_map(99, &sigval, &sigmsg); printf("%s %s (other)\n", sigval, sigmsg);
printf("fake_sso=%d\n", zxid_sp_anon_finalize(cf, &cgi, &sess));
#ifndef MINGW
setenv("HTTP_PAOS", SAML2_SSO_ECP, 1);
zxid_lecp_check(cf, &cgi); /* *** should test in realistic context */
#endif
meta = zxid_get_ent_file(cf, "N9zsU-AwbI1O-U3mvjLmOALtbtU", "covimp"); /* IBMIdP */
zxid_mk_art_deref(cf, 0, meta, "ART124121"); /* *** should test in realistic context */
zxid_mk_lu_Status(cf, 0, 0, "SC2-dummy", "MSG-dummy", "REF-dummy");
st = zxid_mk_tas3_status(cf, 0, 0, 0, "SC2-dummy", "MSG-dummy", "REF-dummy");
zxid_get_fault(cf, &sess);
zxid_get_tas3_status(cf, &sess);
zxidwspcgi.c view on Meta::CPAN
close(child_out_fds[0]);
close(child_in_fds[1]);
if (dup(child_in_fds[0]) != 0) {
perror("dup stdin");
return 1;
}
if (dup(child_out_fds[1]) != 1) {
perror("dup stdout");
return 1;
}
setenv("idpnid", nid, 1);
setenv("sid", sid, 1);
D("exec(%s)", cf->wspcgicmd);
execl(cf->wspcgicmd, cf->wspcgicmd); /* At least gcc-3.4.6 gives bogus "warning: not enough variable arguments to fit a sentinel [-Wformat]" on this line. AFAIK you can safely ignore the warning. --Sampo */
perror("exec");
ERR("Exec(%s) failed: errno=%d", cf->wspcgicmd, errno);
return 1;
}
return 0;
}
/*() Read from script using parent, and send resp. */
( run in 0.432 second using v1.01-cache-2.11-cpan-0a6323c29d9 )