pike.git / lib / modules / Standards.pmod / X509.pmod

version» Context lines:

pike.git/lib/modules/Standards.pmod/X509.pmod:1761:    // is the issuer of this certificate the subject of the previous    // (more rootward) certificate?    if(tbs->issuer->get_der() != chain_obj[idx-1]->subject->get_der())    ERROR(CERT_CHAIN_BROKEN);       // the verifier for this certificate should be the public key of    // the previous certificate in the chain.    verifiers = ({ chain_obj[idx-1]->public_key });    }    +  m->verified = 0;    int verified;    foreach(verifiers || ({}), Verifier v) {    if( v->verify(chain_cert[idx][1],    chain_cert[idx][0]->get_der(),    chain_cert[idx][2]->value)    && tbs)    {    DBG("signature is verified..\n");    m->verified = verified = 1;