Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3KBPg323624 for ; Fri, 20 Apr 2001 07:25:42 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f3KBAL684907 for pgsql-interfaces@postgresql.org; Fri, 20 Apr 2001 07:10:21 -0400 (EDT) (envelope-from news) From: Brendan Guenther X-Newsgroups: comp.databases.postgresql.interfaces Subject: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff Date: Fri, 20 Apr 2001 07:11:44 -0400 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 21 Message-ID: <3AE01970.EC523C59@msu.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: scrappy@hub.org X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en To: pgsql-interfaces@postgresql.org X-Archive-Number: 200104/89 X-Sequence-Number: 1473 Peter Eisentraut wrote: > The best things might be not to mess with this but call textin() and > textout() to convert your data to C strings. I can't seem to find documentation for textin() and textout() can somebody point me in the right direction for this or provide an example. I'm having similar problems that Lonnie is having with VARDATA and I think this might help. I'm trying to link in a C function that makes use of OpenSSL's libcrypto functions. Basically I just need to hash and verify passwords in the database, so as an alternate question, if I'm missing something and there is a better way to do password storage let me know. Thanks, -- Brendan Guenther guenthe8@msu.edu