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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:388:    session->master_secret = hash_messages("extended master secret", 48);    break;    default:    error("Unexpected handshake state: %s\n",    fmt_constant(handshake_state, "STATE"));    break;    }    } else if (!sizeof(premaster_secret)) {    // Clear text mode.    session->master_secret = ""; +  } else if (session->extended_master_secret) { +  // Extended Master Secret Draft. +  session->master_secret = premaster_secret; +  session->master_secret = hash_messages("extended master secret", 48);    } else {    session->master_secret =    session->cipher_spec->prf(premaster_secret, "master secret",    client_random + server_random, 48);    }       new_cipher_states();       if ((version >= PROTOCOL_TLS_1_3) &&    (handshake_state == STATE_wait_for_finish)) {