pike.git / lib / modules / Standards.pmod / testsuite.in

version» Context lines:

pike.git/lib/modules/Standards.pmod/testsuite.in:223:   YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN   ADCBiQKBgQDlGb9to1ZhLZlIcfZn3rmN67eehoAKkQ76OCWvRoiC5XOooJskXQ0f   zGVuDLDQVoQYh5oGmxChc9+0WDlrbsH2FdWoqD+qEgaNMax/sDTXjzRniAnNFBHi   TkVWaR94AoDa3EeRKbs2yWNcxeDXLYd7obcysHswuiovMaruo2fa2wIDAQABMA0G   CSqGSIb3DQEBBQUAA4GBAFgVKTk8d6PaXCUDfGD67gmZPCcQcMgMCeazh88K4hiW   NWLMv5sneYlfycQJ9M61Hd8qveXbhpxoJeUwfLaJFf5n0a3hUKw8fGJLj7qE1xIV   Gx/KXQ/BUpQqEZnae88MNhPVNdwQGVnqlMEAv3WP2fr9dgTbYruQagPZRjXZ+Hxb   -----END CERTIFICATE-----";    object o = Standards.PEM.Message(pem);    object t = Standards.X509.decode_certificate(o->body); -  return ([ "der" : stringp(t->der), "version" : t->version, "serial":t->serial->digits(16), "algorithm":sprintf("%O",t->algorithm[0]), "issuer":t->issuer[2][0][1]->value, "not_after":t->not_after, "not_before":t->not_before, "subject":t->subject[2][0][1]->value, "extensions":t->extensions]) +  return ([ "der" : stringp(t->der), "version" : t->version, "serial":t->serial->digits(16), "algorithm":t->algorithm[0], "issuer":t->issuer[2][0][1]->value, "not_after":t->not_after, "not_before":t->not_before, "subject":t->subject[2][0][1]->value, "extensions":t->extensions])   ]],[[   ([ /* 9 elements */ -  "algorithm": "Standards.ASN1.Types.Identifier(1.2.840.113549.1.1.5)", +  "algorithm": Standards.ASN1.Types.Identifier(1,2,840,113549,1,1,5),    "der": 1,    "issuer": "Class 1 Public Primary Certification Authority",    "extensions": ([]),    "not_after": 1848873599,    "not_before": 822873600,    "serial": "3f691e819cf09a4af373ffb948a2e4dd",    "subject": "Class 1 Public Primary Certification Authority",    "version": 1   ])   ]])
pike.git/lib/modules/Standards.pmod/testsuite.in:251:    array attrs = ({    ([ "organizationName" : Standards.ASN1.Types.PrintableString("Test") ]),    ([ "commonName" : Standards.ASN1.Types.PrintableString("*") ]),    });       string c = Standards.X509.make_selfsigned_certificate(rsa, 3600*24*365, attrs, 0, 0, 5);       object t = Standards.X509.decode_certificate(c);    mapping ext = t->extensions;    foreach(ext; string id; object value) ext[id]=value->get_der(); -  return ([ "version" : t->version, "serial":t->serial->digits(16), "algorithm":sprintf("%O",t->algorithm[0]), "issuer":t->issuer[0][0][1]->value, "subject":t->subject[0][0][1]->value, "extensions":ext, "public_key":(int)t->public_key->rsa->public_key_equal(rsa) ]) +  return ([ "version" : t->version, "serial":t->serial->digits(16), "algorithm":t->algorithm[0], "issuer":t->issuer[0][0][1]->value, "subject":t->subject[0][0][1]->value, "extensions":ext, "public_key":(int)t->public_key->rsa->public_key_equal(rsa) ])   ]],[[ ([    "version" : 3,    "serial" : "5", -  "algorithm": "Standards.ASN1.Types.Identifier(1.2.840.113549.1.1.11)", +  "algorithm": Standards.ASN1.Types.Identifier(1,2,840,113549,1,1,11),    "issuer" : "Test",    "subject" : "Test",    "extensions" : ([ -  "\6\3U\35\16": "\4\24\214\366\177.l>\273\345\317\361z\262""4\366.\264\346B|K", -  "\6\3U\35\17": "\3\2\0\206", -  "\6\3U\35\23": "0\3\1\1\377" +  Standards.ASN1.Types.Identifier(2,5,29,14): "\4\24\214\366\177.l>\273\345\317\361z\262""4\366.\264\346B|K", +  Standards.ASN1.Types.Identifier(2,5,29,15): "\3\2\0\206", +  Standards.ASN1.Types.Identifier(2,5,29,19): "0\3\1\1\377"    ]),    "public_key": 1,   ]) ]])      test_any([[    Crypto.DSA dsa = Crypto.DSA();    dsa->generate_key(1024,160);       foreach( ({ 0, Crypto.SHA1,   #if constant(Crypto.SHA224)