[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

[GNU Crypto] exception on multiple SaslConnection.send() calls



Hello,

I see that SaslC.java calls SaslConnection.reconnect() between two calls
to SaslConnection.send().  Is it not possible to send multiple messages
on the same SaslConnection?  If I comment the SaslConnection.reconnect()
call in SaslC.java and add a corresponding second receive() call in
SaslS.java, I get the following exceptions:

----------
    [saslc] [SaslConnection] Connected!
    [saslc] [SaslConnection] Outgoing message (str): There is more than one way to do it
    [saslc] [SaslConnection] Incoming response (str): ok
    [saslc] [SaslConnection] Outgoing message (str): 1 if by land. 2 if by sea...
    [saslc] java.lang.IllegalStateException
    [saslc]     at gnu.crypto.assembly.Assembly.lastUpdate(Assembly.java:267)
    [saslc]     at gnu.crypto.sasl.srp.CALG.doFinal(CALG.java:270)
    [saslc]     at gnu.crypto.sasl.srp.SRPClient.engineWrap(SRPClient.java:328)
    [saslc]     at gnu.crypto.sasl.ClientMechanism.wrap(ClientMechanism.java:136)
    [saslc]     at gnu.crypto.sasl.SaslOutputStream.write(SaslOutputStream.java:168)
    [saslc]     at java.io.OutputStream.write(OutputStream.java:58)
    [saslc]     at gnu.crypto.tool.SaslConnection.send(SaslConnection.java:244)
    [saslc]     at gnu.crypto.tool.SaslC.run(SaslC.java:148)
    [saslc]     at java.lang.Thread.run(Thread.java:552)
    [saslc] Client C0 shutdown...
    [saslc] Exiting...
----------
    [sasls] ************** Connection authenticated....
    [sasls] Incoming request (str): There is more than one way to do it
    [sasls] Outgoing message (str): ok
    [sasls] Incoming request (str): ÿ
    [sasls] Outgoing message (str): ok
    [sasls] Exception while processing connection
    [sasls] Connection shutdown...
    [sasls] java.lang.IllegalStateException
    [sasls]     at gnu.crypto.assembly.Assembly.lastUpdate(Assembly.java:267)
    [sasls]     at gnu.crypto.sasl.srp.CALG.doFinal(CALG.java:270)
    [sasls]     at gnu.crypto.sasl.srp.SRPServer.engineWrap(SRPServer.java:363)
    [sasls]     at gnu.crypto.sasl.ServerMechanism.wrap(ServerMechanism.java:139)
    [sasls]     at gnu.crypto.sasl.SaslOutputStream.write(SaslOutputStream.java:170)
    [sasls]     at java.io.OutputStream.write(OutputStream.java:58)
    [sasls]     at gnu.crypto.tool.SaslS.send(SaslS.java:328)
    [sasls]     at gnu.crypto.tool.SaslS.run(SaslS.java:291)
    [sasls]     at java.lang.Thread.run(Thread.java:552)
----------

Am I doing something wrong?

-Jim


_______________________________________________
gnu-crypto-discuss mailing list
gnu-crypto-discuss@xxxxxxx
http://lists.gnu.org/mailman/listinfo/gnu-crypto-discuss


[Home]     [Gnu Classpath]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]     [Red Hat 9 Bible]     [Fedora Bible]     [Red Hat 9]     [Network Security Reading]

  Powered by Linux