Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
6f7d77ba
Commit
6f7d77ba
authored
Mar 31, 1992
by
Per Cederqvist
Browse files
Began to integrate rfc-931 authentication into the server.
parent
8ce883fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/server/ChangeLog
View file @
6f7d77ba
Tue Mar 31 23:48:47 1992 Per Cederqvist (ceder@robert)
* rfc931.[hc]: New file.
* Makefile: (GEN_OBJS, GEN_SRCS): Use it.
Tue Mar 24 18:05:18 1992 Per Cederqvist (ceder@robert)
* simple-cache.c (save_one_text): Check that the entire file made
...
...
src/server/Makefile
View file @
6f7d77ba
#
# $Id: Makefile,v 0.2
1
1992/0
2/26 18:45
:2
3
ceder Exp $
# $Id: Makefile,v 0.2
2
1992/0
3/31 21:51
:2
5
ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
...
...
@@ -22,7 +22,7 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
# $Id: Makefile,v 0.2
1
1992/0
2/26 18:45
:2
3
ceder Exp $
# $Id: Makefile,v 0.2
2
1992/0
3/31 21:51
:2
5
ceder Exp $
include
Topdir.make
SCRIPTDIR
=
$(TOPDIR)
/scripts
...
...
@@ -64,13 +64,13 @@ GENOBJS = connections.o log.o $(ATOMS) \
kom-types.o
\
send-async.o server-config.o text-garb.o
\
missing-ansi.o isc-parse.o memory.o
$(PROTA)
$(MUX)
\
internal-connections.o
internal-connections.o
rfc931.o
GEN_SRCS
=
connections.c log.c
$(ATOMS_SRCS)
\
kom-types.c
\
send-async.c server-config.c text-garb.c
\
missing-ansi.c isc-parse.c memory.c
$(PROTA_SRCS)
$(MUX_SRCS)
\
internal-connections.c
internal-connections.c
rfc931.o
# Files for lyskomd.
...
...
src/server/rfc931.c
0 → 100644
View file @
6f7d77ba
/*
* $Id: rfc931.c,v 1.1 1992/03/31 21:51:30 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
*
* LysKOM is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 1, or (at your option)
* any later version.
*
* LysKOM is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License
* along with LysKOM; see the file COPYING. If not, write to
* Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
* or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
* MA 02139, USA.
*
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* This function retrieves the real user that owns the TCP/IP link
* that is connecting via the IscSession "scb". The returned string
* points to static data which is overwritten on the next call.
*
* Link with "-lauthuser".
*/
#include
<stddef.h>
#include
"isc-interface.h"
#include
<m-config.h>
#include
"rfc931.h"
#include
<authuser.h>
#ifdef RFC_931
char
*
get_real_username
(
IscSession
*
scb
)
{
extern
int
auth_fd2
();
extern
char
*
auth_tcpuser2
();
unsigned
long
inlocal
;
unsigned
long
inremote
;
unsigned
short
local
;
unsigned
short
remote
;
if
(
auth_fd2
(
scb
->
fd
,
&
inlocal
,
&
inremote
,
&
local
,
&
remote
)
==
-
1
)
return
NULL
;
return
auth_tcpuser2
(
inlocal
,
inremote
,
local
,
remote
);
}
#endif
src/server/rfc931.h
0 → 100644
View file @
6f7d77ba
/*
* $Id: rfc931.h,v 1.1 1992/03/31 21:51:34 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
*
* LysKOM is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 1, or (at your option)
* any later version.
*
* LysKOM is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License
* along with LysKOM; see the file COPYING. If not, write to
* Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
* or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
* MA 02139, USA.
*
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
char
*
get_real_username
(
IscSession
*
scb
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment