WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: HELP: Client-Server code for anonymous authentication NOT working

HELP: Client-Server code for anonymous authentication NOT working

by Mihir Kulkarni :: Rate this Message:

| View in Thread

Hello,
I am part of a team at University of California, Irvine who are trying our hand at GNUTLS. We installed the package and all its dependencies. But when trying with the example code given in the documentation, it throws up an error. The details are:
I tried running the server and client with anonymous authentication. The exact error that it gives is:

CLIENT:
mihir@GNU-Linux:~/GNUTLS/gnutls-2.8.6/client$ ./a.out 
*** Handshake failed
GNUTLS ERROR: A TLS packet with unexpected length was received.

SERVER:
mihir@GNU-Linux:~/GNUTLS/gnutls-2.8.6/server$ ./a.out 
Server ready. Listening to port '5556'.

- connection from 127.0.0.1, port 48108
*** Handshake has failed (A TLS packet with unexpected length was received.)

What is figured out so far is that the server goes into an infinite loop on line 120 for the statements:
       do
        {
           ret = gnutls_handshake (session);
           printf("Do...\n");
         }
       while (gnutls_error_is_fatal (ret) == 0);


Can someone please tell me what might be going wrong?
Thank you for your help.

regards,
Mihir Kulkarni
Graduate Student
University of California, Irvine
http://goo.gl/CvRcG

_______________________________________________
Help-gnutls mailing list
Help-gnutls@...
https://lists.gnu.org/mailman/listinfo/help-gnutls

 « Return to Thread: HELP: Client-Server code for anonymous authentication NOT working