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

version» Context lines:

pike.git/lib/modules/Standards.pmod/testsuite.in:260:   ]])   test_any_equal([[    object rsa = Crypto.RSA();    rsa->set_public_key(Gmp.mpz(10091719133288484609038014264477683817475840711323254929480453433408142690559279434827127011542800608968367637399409601909209406663819557863705925738798431), 65537);       array attrs = ({    ([ "organizationName" : Standards.ASN1.Types.PrintableString("Test") ]),    ([ "commonName" : Standards.ASN1.Types.PrintableString("*") ]),    });    -  string c = Standards.X509.make_selfsigned_rsa_certificate(rsa, 3600*24*365, attrs, 0, 5); +  string c = Standards.X509.make_selfsigned_certificate(rsa, 3600*24*365, attrs, 0, 5);       object t = Standards.X509.decode_certificate(c);    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":t->extensions, "public_key":(int)t->public_key->rsa->public_key_equal(rsa) ])   ]],[[ ([    "version" : 1,    "serial" : "5",    "algorithm": "Standards.ASN1.Types.Identifier(1.2.840.113549.1.1.5)",    "issuer" : "Test",    "subject" : "Test",    "extensions" : 0,    "public_key": 1,   ]) ]])      END_MARKER