pike.git / lib / modules / SSL.pmod / Connection.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:343:    verify_certificate_chain(certs);    if( !decoded )    {    send_packet(alert(ALERT_fatal, ALERT_bad_certificate,    "Bad server certificate chain.\n"));    return 0;    }    if( !sizeof(certs) )    return 1;    +  // This data isn't actually used internally.    session->peer_certificate_chain = certs;       session->peer_public_key = decoded[-1]->public_key->pkc;   #if constant(Crypto.ECC.Curve)    if (session->peer_public_key->get_curve) {    session->curve =    ([object(Crypto.ECC.Curve.ECDSA)]session->peer_public_key)->    get_curve();    }   #endif