Branch: Tag:

2002-01-31

2002-01-31 12:05:06 by Jens Larsson <jens@lysator.liu.se>

Applied patches from [bug 2722 (#2722)].
Thanks to Jens Larsson.

Rev: server/base_server/roxen.pike:1.775

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.774 2002/01/29 21:19:03 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.775 2002/01/31 12:05:06 grubba Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
1561: Inside #if constant(SSL.sslfile)
   report_error(LOC_M(13,"SSL3: Certificate not valid (DER).")+"\n");    return;    } -  if (tbs->public_key->rsa->public_key_equal (rsa)) +  if (tbs->public_key->rsa->public_key_equal (rsa)) {    key_matches++; -  else +  // DWIM: Make sure the main cert comes first in the cert list. +  ctx->certificates = ({ cert }) + ctx->certificates; +  } else { +  ctx->certificates += ctx->certificates;    continue;    } -  +  }    else if (part = msg->parts["DSA PRIVATE KEY"])    {    string key;
1593: Inside #if constant(SSL.sslfile)
   ctx->dhe_dss_mode();       // FIXME: Add cert <-> private key check. +  +  ctx->certificates = ({ cert }) + ctx->certificates;    }    else    {
1600: Inside #if constant(SSL.sslfile)
   return;    }    -  ctx->certificates = ({ cert }) + ctx->certificates; +     ctx->random = r;    }    if( !key_matches )