Branch: Tag:

2002-10-21

2002-10-21 16:17:35 by Marcus Agehall <agehall@gmail.com>

The #ifdef constant(SSL.sslfile) was never true. The #if statement is true when SSL is present.

Rev: lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1.45

2:      // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.44 2002/09/05 17:08:50 bill Exp $ + // $Id: client.pike,v 1.45 2002/10/21 16:17:35 agehall Exp $   //   // Honza Petrous, hop@unibase.cz   //
360:    void create(string|void url, object|void context)    {    -  info = ([ "code_revision" : ("$Revision: 1.44 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.45 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;
406:    THROW(({"Failed to connect to LDAP server.\n",backtrace()}));    }    - #ifdef constant(SSL.sslfile) + #if constant(SSL.sslfile)    if(lauth->scheme == "ldaps") {    context->random = Crypto.randomness.reasonably_random()->read;    ::create(SSL.sslfile(::_fd, context, 1,1));