Branch: Tag:

2003-01-27

2003-01-27 01:41:17 by Martin Nilsson <mani@lysator.liu.se>

Error and debug code fixes.

Rev: lib/modules/SSL.pmod/alert.pike:1.8
Rev: lib/modules/SSL.pmod/cipher.pike:1.22
Rev: lib/modules/SSL.pmod/connection.pike:1.25
Rev: lib/modules/SSL.pmod/context.pike:1.17
Rev: lib/modules/SSL.pmod/handshake.pike:1.31
Rev: lib/modules/SSL.pmod/https.pike:1.14
Rev: lib/modules/SSL.pmod/packet.pike:1.13
Rev: lib/modules/SSL.pmod/session.pike:1.22
Rev: lib/modules/SSL.pmod/sslfile.pike:1.52
Rev: lib/modules/SSL.pmod/sslport.pike:1.11
Rev: lib/modules/SSL.pmod/state.pike:1.16

1:   #pike __REAL_VERSION__    - /* $Id: https.pike,v 1.13 2003/01/20 17:44:01 nilsson Exp $ + /* $Id: https.pike,v 1.14 2003/01/27 01:41:17 nilsson Exp $    *    * dummy https server    */
117:   int main()   {   #ifdef SSL3_DEBUG -  werror(sprintf("Cert: '%s'\n", Crypto.string_to_hex(my_certificate))); -  werror(sprintf("Key: '%s'\n", Crypto.string_to_hex(my_key))); - // werror(sprintf("Decoded cert: %O\n", SSL.asn1.ber_decode(my_certificate)->get_asn1())); +  werror("Cert: '%s'\n", Crypto.string_to_hex(my_certificate)); +  werror("Key: '%s'\n", Crypto.string_to_hex(my_key)); + // werror("Decoded cert: %O\n", SSL.asn1.ber_decode(my_certificate)->get_asn1());   #endif   #if 0    array key = SSL.asn1.ber_decode(my_key)->get_asn1()[1];   #ifdef SSL3_DEBUG -  werror(sprintf("Decoded key: %O\n", key)); +  werror("Decoded key: %O\n", key);   #endif    object n = key[1][1];    object e = key[2][1];
132: Inside #if 0
   object p = key[4][1];    object q = key[5][1];    -  werror(sprintf("n = %s\np = %s\nq = %s\npq = %s\n", -  n->digits(), p->digits(), q->digits(), (p*q)->digits())); +  werror("n = %s\np = %s\nq = %s\npq = %s\n", +  n->digits(), p->digits(), q->digits(), (p*q)->digits());       rsa = Crypto.rsa();    rsa->set_public_key(n, e);