On Wed, Feb 22, 2012 at 5:40 AM, Ludo Brands <ludo.bra...@free.fr> wrote: > > > With Cryptlib I get this same error 10091 (but instead of > > "Network subsystem is unusable" I see some squares (some > > charset problem). I debug into and problem is in function: > > > > TSSLCryptLib.Connect > > > > In line: > > if not SSLCheck(cryptSetAttribute(FCryptSession, > > CRYPT_SESSINFO_ACTIVE, 1)) then > > Exit; > > > > SSLCheck return False, because cryptSetAttribute return -22 > > (and in SSLCheck is error check if Value<>0 then error). I > > can't debug further because cryptSetAttribute is external function > > > > Are you getting more information in SSL.LastErrorDesc? You can trace into > SSLCheck and verify the value at the end. > > Without more info, the primary suspect is that there is something wrong with > the SSH authorization (wrong credentials, key mismatch,...). > > > > I am using latest stable synapse 39 and cryptlib 3.2.2 from > > synapse serwer. I tried with synapse snapshot but this same > > error, so I downloaded cryptlib 3.4.1 and ssl_cryptlib.pas > > (from synapse) is incompatible with cryptlib.pas (from > > crytplib). I can't compile it (Incompatible types Char and > > AnsiChar in function cryptKeysetOpen. I have Delphi 2010 32bit. > > > > Unfortunately, cryptlib versions aren't binary compatible and every cryptlib > release has to use new pascal bindings. AFAIK the pascal bindings from > cryptlib are generated by a script and sometimes some "fiddling" is required > to get it working with a particular Delphi version, or Freepascal in my > case. I've been using ssh with cryptlib 3.2.2 succesfully, so the cryptlib > version isn't my first suspect here.
Where I get the official cryptlib (unit and DLL) for FPC and Delphi? Thanks, Marcos Douglas ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public