Branch: Tag:

2007-01-03

2007-01-03 12:31:37 by Marcus Wellhardh <wellhard@roxen.com>

Fixed [Bug 4290 (#4290)]. Updated the page.ssl-strength entity to work with the new SSLFile implementation.

Rev: server/etc/modules/Roxen.pmod:1.220

1:   // This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS.   // - // $Id: Roxen.pmod,v 1.219 2006/10/30 15:56:47 grubba Exp $ + // $Id: Roxen.pmod,v 1.220 2007/01/03 12:31:37 wellhard Exp $      #include <roxen.h>   #include <config.h>
3704:    case "self": return ENCODE_RXML_TEXT( (c->id->not_query/"/")[-1], type);    case "ssl-strength":    NOCACHE(c->id); -  if (!c->id->my_fd || !c->id->my_fd->session) return ENCODE_RXML_INT(0, type); -  return ENCODE_RXML_INT(c->id->my_fd->session->cipher_spec->key_bits, type); +  if (!c->id->my_fd || !c->id->my_fd->SSLConnection || +  !c->id->my_fd->query_connection()) +  return ENCODE_RXML_INT(0, type); +  return ENCODE_RXML_INT(c->id->my_fd->query_connection()-> +  session->cipher_spec->key_bits, type);    case "dir":    array parts = c->id->not_query/"/";    return ENCODE_RXML_TEXT( parts[..sizeof(parts)-2]*"/"+"/", type);