search for: liblogin_alloc_entry

Displaying 1 result from an estimated 1 matches for "liblogin_alloc_entry".

2000 Jan 13
0
new login library alpha release
.... As Damien said before on the list, it's the nastiest part of porting OpenSSH to new platforms. The old record_login() function (login.c) is about 100 lines of code, full of #ifdef statements. The liblogin version is this: void record_login( <params> ) { struct logininfo *li; li = liblogin_alloc_entry(pid, user, host, ttyname); liblogin_set_ip4(li, addr); liblogin_login(li); } A good deal less hassle. Of course, the hassle has moved somewhere else, but, because it's liblogin's raison d'etre, it's designed with portability in mind and hopefully it will be easier to manage. I...