In what ways can authentication (to server) fail?

Neale Pickett <[email protected]> Thu, 24 Feb 2011 12:08:26 -0700
Newsgroups gmane.network.silc.devel
Organization Advanced Computing Solutions; Los Alamos National Laboratory
Message-ID <[email protected]>
--===============0015932865==
Content-Type: multipart/signed; protocol="application/pgp-signature";
	micalg="PGP-SHA1";
	boundary="Signature=_Thu__24_Feb_2011_12_08_26_-0700_N/UEWOfNZ.TMWftl"

--Signature=_Thu__24_Feb_2011_12_08_26_-0700_N/UEWOfNZ.TMWftl
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I'm trying to write a simple client to connect to a private silc server whi=
ch does client authentication, somehow.  I'm able to get in with irssi, whi=
ch I believe to be using /home/neale/.irssi/public_key.pub and /home/neale/=
.irssi/private_key.prv.

I try to connect with a very slightly modified version of the example bot t=
hat comes with libsilc.  I load keys like this:

      if (! silc_load_key_pair("/home/neale/.irssi/public_key.pub",
                           "/home/neale/.irssi/private_key.prv",
                           PASSWORD,
                           &public_key, &private_key)) {

And here's the call to connect (happens in the silc running callback):

    silc_client_connect_to_server(client, NULL,
                                  public_key, private_key,
                                  SERVER_HOSTNAME, 706,
                                  silc_connected, NULL);

And then the bot code tells me "Authentication failed".  Here's the debug o=
utput:

12:06:24 silc_schedule_task_add:584: New timeout task 0xb6d11d00: sec=3D360=
0, usec=3D0
12:06:24 silc_packet_send_raw:1544: Sending packet CONNECTION AUTH (1) flag=
s 0, src 2 dst 1, data len 4
12:06:24 silc_packet_send_raw:1665: Encrypting packet
12:06:24 silc_socket_stream_write:187: Writing data to socket 6
12:06:24 silc_socket_stream_write:203: Wrote data 60 bytes
12:06:24 silc_fsm_run:440: State wait 0xb6d10f58
12:06:24 silc_schedule_select_timeout:190: timeout: sec=3D3597, usec=3D9722=
61
12:06:24 silc_schedule_iterate:442: Select
12:06:25 silc_schedule_iterate:454: Running fd tasks
12:06:25 silc_packet_stream_io:427: Reading data from stream 0x89cf8e8, ps =
0xb6d004e8
12:06:25 silc_socket_stream_read:74: Reading data from socket 6
12:06:25 silc_socket_stream_read:95: Read 88 bytes
12:06:25 silc_packet_stream_ref:1166: Stream 0xb6d004e8, refcnt 2->3
12:06:25 silc_packet_check_mac:1825: Verifying MAC
12:06:25 silc_packet_check_mac:1845: MAC is Ok
12:06:25 silc_packet_alloc:471: Packet pool count 5
12:06:25 silc_packet_alloc:499: Get packet 0x89ce278
12:06:25 silc_packet_decrypt:1896: Decrypting the packet
12:06:25 silc_packet_parse:1943: Parsing incoming packet
12:06:25 silc_packet_parse:2002: Incoming packet type: 3 (FAILURE), flags 0

Clearly I'm invoking something incorrectly since irssi linked against the v=
ery same library.  But there's no information in that debug output about wh=
y it failed.  Any ideas?

--=20
Neale Pickett <[email protected]>
Advanced Computing Solutions; Los Alamos National Laboratory

--Signature=_Thu__24_Feb_2011_12_08_26_-0700_N/UEWOfNZ.TMWftl
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk1mrKoACgkQz8wTPTBN9iiGdQCfa5v/ASGpmg8hOKFLsbLQcC5/
57QAoKVPNr7R8F4EQdsQEmefSl8uuZBa
=76yN
-----END PGP SIGNATURE-----

--Signature=_Thu__24_Feb_2011_12_08_26_-0700_N/UEWOfNZ.TMWftl--

--===============0015932865==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________________________________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce
Archive: https://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/support/faq/
--===============0015932865==--