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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:180:    }       return handshake_packet(HANDSHAKE_certificate_verify, struct);   }      int(-1..0) validate_certificate_verify(Buffer input,    string(8bit) signature_context)   {    int(0..1) verification_ok;    string(8bit) signed = handshake_messages; -  if (version < PROTOCOL_TLS_1_3) { -  signature_context = ""; -  } else { -  signed = session->cipher_spec->hash->hash(signed); -  } +  if (version >= PROTOCOL_TLS_1_3) +  signed = signature_context + session->cipher_spec->hash->hash(signed); +     mixed err = catch {    verification_ok = session->cipher_spec->verify( -  session, signature_context, Buffer(signed), input); +  session, signed, input);    };   #ifdef SSL3_DEBUG    if (err) {    master()->handle_error(err);    }   #endif    err = UNDEFINED; // Get rid of warning.    COND_FATAL(!verification_ok, ALERT_unexpected_message,    "Validation of CertificateVerify failed.\n");    return 0;