home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / protocol / kerberos / 871 next >
Encoding:
Internet Message Format  |  1992-11-18  |  3.2 KB

  1. Path: sparky!uunet!munnari.oz.au!metro!sequoia!kgi.uts.EDU.AU!patrick
  2. From: P.Herlihy@ccsd.uts.EDU.AU (Patrick Herlihy)
  3. Newsgroups: comp.protocols.kerberos
  4. Subject: Re: telnet encryption option vs. Clarkson TCP
  5. Date: 18 Nov 92 21:38:56 GMT
  6. Organization: University of Technology, Sydney
  7. Lines: 80
  8. Message-ID: <patrick.722122736@kgi.uts.EDU.AU>
  9. References: <CMM.0.90.0.721344901.alan@curta.cc.columbia.edu>
  10. NNTP-Posting-Host: kgispy.ccsd.uts.edu.au
  11. Originator: patrick@kgispy.ccsd.uts.EDU.AU
  12.  
  13. alan@CURTA.CC.COLUMBIA.EDU (Alan Crosswell) writes:
  14.  
  15. >I wonder if you have heard of any interoperability problems between
  16. >the Kerberized (version 4) telnetd that came with the first beta of
  17. >MIT Kerberos 5 and Clarkson TCP for the PC (CUTE-2.2TN-D).
  18.  
  19. >The problem I have is the telnet session "freezes" right around the
  20. >TELOPT_ENCRYPTION (option 38) negotiation.  Clarkson TCP is not
  21. >capable of doing the auth or encrypt options (boy do I wish!) so it is
  22. >just something messing up in the part where the unknown option is
  23. >supposed to be rejected.  If I recompile telnetd with -UENCRYPT then
  24. >Clarkson TCP is able to get in.  Other telnet clients like Unix and
  25. >Kermit can get in just fine.
  26.  
  27. I figured that Clarkson TCP just doesn't handle the encryption option
  28. properly:  telnetd says "WILL ENCRYPT", expecting a response from CUTCP
  29. if it won't encrypt; CUTCP just ignores the option altogether.
  30.  
  31. Telnetd then assumes that the option has been accepted, and waits in a loop
  32. expecting to get encryption key info.
  33.  
  34. If you make the initial telnetd option "DO ENCRYPT" instead of "WILL ENCRYPT",
  35. and put a "WILL ENCRYPT" later on, CUTCP will respond properly in the
  36. negative.
  37.  
  38. My diffs to telnetd/telnetd.c in the telnet.91.03.25 release follow:
  39.  
  40. *** telnetd.c.orig    Wed Nov 18 08:34:47 1992
  41. --- telnetd.c    Wed Nov 18 08:34:51 1992
  42. ***************
  43. *** 417,423 ****
  44.   #endif
  45.   
  46.   #if    defined(ENCRYPT)
  47. !     send_will(TELOPT_ENCRYPT, 1);
  48.   #endif
  49.       send_do(TELOPT_TTYPE, 1);
  50.       send_do(TELOPT_TSPEED, 1);
  51. --- 417,424 ----
  52.   #endif
  53.   
  54.   #if    defined(ENCRYPT)
  55. ! /*    send_will(TELOPT_ENCRYPT, 1); */
  56. !     send_do(TELOPT_ENCRYPT, 1);
  57.   #endif
  58.       send_do(TELOPT_TTYPE, 1);
  59.       send_do(TELOPT_TSPEED, 1);
  60. ***************
  61. *** 425,431 ****
  62.       send_do(TELOPT_ENVIRON, 1);
  63.       while (
  64.   #if    defined(ENCRYPT)
  65. !        his_do_dont_is_changing(TELOPT_ENCRYPT) ||
  66.   #endif
  67.          his_will_wont_is_changing(TELOPT_TTYPE) ||
  68.          his_will_wont_is_changing(TELOPT_TSPEED) ||
  69. --- 426,433 ----
  70.       send_do(TELOPT_ENVIRON, 1);
  71.       while (
  72.   #if    defined(ENCRYPT)
  73. ! /*        his_do_dont_is_changing(TELOPT_ENCRYPT) || */
  74. !        his_will_wont_is_changing(TELOPT_ENCRYPT) ||
  75.   #endif
  76.          his_will_wont_is_changing(TELOPT_TTYPE) ||
  77.          his_will_wont_is_changing(TELOPT_TSPEED) ||
  78. ***************
  79. *** 439,444 ****
  80. --- 441,447 ----
  81.        * send with.  If autoencrypt is not set, this will just return.
  82.        */
  83.       if (his_state_is_will(TELOPT_ENCRYPT)) {
  84. +         send_will(TELOPT_ENCRYPT, 1);
  85.       encrypt_wait();
  86.       }
  87.   #endif
  88. -- 
  89. Patrick John Herlihy,                            P.Herlihy@ccsd.uts.EDU.AU
  90. Communications Services Branch,                        Ph: +61 2 330 5162
  91. University of Technology, Sydney,                      Fax: +61 2 330 5562
  92. PO Box 123, Broadway, NSW, 2007, Australia.      
  93.