home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Eudora 1.3.1 / source / kerberos_glue.cp < prev    next >
Encoding:
Text File  |  1993-03-16  |  434 b   |  32 lines  |  [TEXT/MPS ]

  1. /* some glue code so static & global constructors will be called, & to glue to make
  2.     some c++ routines avail from c */
  3.  
  4. #include    <String.h>
  5. #include    <Machine Dependencies.h>
  6. #include    <KerbConf.h>
  7.  
  8. extern "C" {
  9. void    c_main();
  10. }
  11.  
  12. void    main()
  13. {
  14.     OpenNet();
  15.     c_main();
  16.     }
  17.  
  18. extern "C" {
  19.  
  20. void    cplus_cleanup()
  21. {
  22.     CloseNet();
  23.     }
  24.  
  25. void    forgetsession(char *name, char *inst, char *realm)
  26. {
  27.     gKerbConf.DeleteSession(name, inst, realm);
  28.     }
  29.  
  30. }
  31.  
  32.