* Programming question
@ 1998-11-18 20:53 Rick Beebe
0 siblings, 0 replies; only message in thread
From: Rick Beebe @ 1998-11-18 20:53 UTC (permalink / raw)
To: tru64-unix-managers
I need to SSL-ize our imap server and while looking to see if someone else
had done that work I came across an interesting program segment at
http://fy.chalmers.se/~appro/ssl_inetd.html. Basically, it's a code segment
that replaces read and write from libc with SSL'd versions. Link it into an
existing program and you're golden. There are caveats of course but it
looked like it would work for us.
Anyway, for this thing to work it needs to insert itself into the .init
segment so it gets magically run before the real program. The author wrote
it for Sun and he uses either
#pragma init(ssl_init)
static
or
asm("
.section \".init\"
call ssl_init
nop
");
static
Neither of these works under Digital C 5.6-071 (DU4.0d). The first on
compiles okay, but ssl_init isn't getting run. The second dies with syntax
errors. Anyone got any idea what the equivalent for DEC C would be? It's a
bit beyond me. I couldn't find anything in the manuals about integrating
assembly into C.
_______________________________________________________________________
Rick Beebe (203) 785-6416
Network Engineering Manager FAX: (203) 785-3606
ITS-Med Technology Operations Richard.Beebe@yale.edu
Yale University School of Medicine
P.O. Box 208078, New Haven, CT 06520-8078
_______________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-11-18 20:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-18 20:53 Programming question Rick Beebe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox