Skip to content
Snippets Groups Projects
Commit cfe12455 authored by Martin Nilsson's avatar Martin Nilsson
Browse files

Don't werror without SSL3_DEBUG

Rev: lib/modules/SSL.pmod/connection.pike:1.36
Rev: lib/modules/SSL.pmod/handshake.pike:1.48
parent b266b0fc
No related branches found
No related tags found
No related merge requests found
//
// $Id: connection.pike,v 1.35 2004/04/19 23:01:03 agehall Exp $
// $Id: connection.pike,v 1.36 2004/06/05 17:21:15 nilsson Exp $
#pike __REAL_VERSION__
//#pragma strict_types
......@@ -236,8 +236,10 @@ int handle_alert(string s)
return -1;
}
}
#ifdef SSL3_DEBUG
else
werror("SSL.connection: Received warning alert %d\n", description);
#endif
return 0;
}
......
#pike __REAL_VERSION__
#pragma strict_types
/* $Id: handshake.pike,v 1.47 2004/02/29 02:56:04 nilsson Exp $
/* $Id: handshake.pike,v 1.48 2004/06/05 17:21:15 nilsson Exp $
*
*/
......@@ -233,7 +233,9 @@ Packet client_key_exchange_packet()
case KE_dhe_dss:
case KE_dhe_rsa:
case KE_dh_anon:
#ifdef SSL3_DEBUG
werror("FIXME: Not handled yet\n");
#endif
send_packet(Alert(ALERT_fatal, ALERT_unexpected_message, version[1],
"SSL.session->handle_handshake: unexpected message\n",
backtrace()));
......@@ -442,8 +444,10 @@ string server_derive_master_secret(string data)
* Finished-message (or some other invalid message) has been *
* received. */
#ifdef SSL3_DEBUG
werror("SSL.handshake: Invalid premaster_secret! "
"A chosen ciphertext attack?\n");
#endif
premaster_secret = context->random(48);
rsa_message_was_bad = 1;
......@@ -1081,7 +1085,9 @@ int(-1..1) handle_handshake(int type, string data, string raw)
}
else
{
werror("Other certificates than rsa not supported!\n");
#ifdef SSL3_DEBUG
werror("Other certificates than RSA not supported!\n");
#endif
send_packet(Alert(ALERT_fatal, ALERT_unexpected_message, version[1],
"SSL.session->handle_handshake: unexpected message\n",
backtrace()));
......@@ -1091,7 +1097,9 @@ int(-1..1) handle_handshake(int type, string data, string raw)
if(error)
{
#ifdef SSL3_DEBUG
werror("Failed to decode certificate!\n");
#endif
send_packet(Alert(ALERT_fatal, ALERT_unexpected_message, version[1],
"SSL.session->handle_handshake: unexpected message\n",
backtrace()));
......@@ -1129,7 +1137,9 @@ int(-1..1) handle_handshake(int type, string data, string raw)
case HANDSHAKE_certificate_request:
{
#ifdef SSL3_DEBUG
werror("Certificate request not yet implemented.\n");
#endif
array(int) cert_types = input->get_var_uint_array(1, 1);
// int num_distinguished_names = input->get_uint(2);
// array(string) distinguished_names =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment