Article View: comp.sys.sun
Article #6959Problem with Sun C Libraries and setkey()
From: Mike Maughmer
Date: Fri, 15 Mar 1991 22:44
Date: Fri, 15 Mar 1991 22:44
29 lines
1646 bytes
1646 bytes
I'm having some problems with the DES encryption library call "setkey()"
under SunOS 4.1.1 on a SPARCstation 1+.
The following program will not compile:
extern int setkey();
main()
{
setkey(/* the appropriate argument goes here */);
}
The problem is that ld complains about _setkey being an undefined symbol.
Running nm on /usr/lib/libc.a reveals that _setkey does not exist, but
that _des_setkey does. Changing setkey() to des_setkey() in the program
causes ld to bitch about _des_setkey, as well, being an undefined symbol.
Though setkey() is explained in the Sun man pages, along with crypt() and
encrypt(), is setkey() unavailable? How do I use it when ld can't even
find it? encrypt() relies upon the key set by setkey(). What am I
missing? (Did Sun simply forget to place the code for setkey() in their C
libraries?) :-)
Please mail your responses to mike@cosmos.acs.calpoly.edu. I'll post a
summary later. Thanks . . .
Mike Maughmer
Cal Poly State University
San Luis Obispo, California
mike@cosmos.acs.calpoly.edu
Technical Details
Message-ID:
<1900@brchh104.bnr.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: mike@cosmos.acs.calpoly.edu (Mike Maughmer) Newsgroups: comp.sys.sun Subject: Problem with Sun C Libraries and setkey() Keywords: Software Message-ID: <1900@brchh104.bnr.ca> Date: 15 Mar 91 22:44:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 29 Approved: Sun-Spots@rice.edu X-Original-Date: Wed, 27 Feb 91 23:54:45 -0800 X-Sun-Spots-Digest: Volume 10, Issue 53, message 5 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu