Branch: Tag:

2015-01-24

2015-01-24 12:45:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

SSL.ServerConnection: Reduced code duplication somewhat.

All server-side derivation of the master secret is now done by
SSL.Connection::derive_master_secret().

341:    fmt_constant(handshake_state, "STATE"));    break;    } +  } else if (!sizeof(premaster_secret)) { +  // Clear text mode. +  session->master_secret = "";    } else {    session->master_secret =    session->cipher_spec->prf(premaster_secret, "master secret",