X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4F83E52952 for ; Tue, 16 Aug 2005 10:59:42 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 89455-06 for ; Tue, 16 Aug 2005 13:59:39 +0000 (GMT) Received: from web33902.mail.mud.yahoo.com (web33902.mail.mud.yahoo.com [66.163.178.66]) by svr1.postgresql.org (Postfix) with SMTP id D1820528B4 for ; Tue, 16 Aug 2005 10:59:37 -0300 (ADT) Received: (qmail 80370 invoked by uid 60001); 16 Aug 2005 13:59:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=V6UrvGOh61gDkIfz65P+yeq2fpXvZjuzibmZ9rxKEmKFuEOeoSUZ2IyFebxaemJ+CErGWq9tq7Cp8BXZwU6ReTNy5VVgis5N8BlFDzY6z93LAZSdUMcEjMuAxVQPUHk7pL6squy6lHKQQQcRoOFXMySXFKD7wabMNIdOxZNLMT4= ; Message-ID: <20050816135940.80368.qmail@web33902.mail.mud.yahoo.com> Received: from [68.209.250.7] by web33902.mail.mud.yahoo.com via HTTP; Tue, 16 Aug 2005 06:59:40 PDT Date: Tue, 16 Aug 2005 06:59:40 -0700 (PDT) From: The One Subject: What libraries need to be included in C program for encrypt and decrypt functions? To: pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-619883052-1124200780=:80334" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.078 required=5 tests=[AWL=0.131, DNS_FROM_RFC_ABUSE=0.374, FROM_ENDS_IN_NUMS=0.516, HTML_30_40=0.056, HTML_MESSAGE=0.001] X-Spam-Level: * X-Archive-Number: 200508/113 X-Sequence-Number: 22341 --0-619883052-1124200780=:80334 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, Can some body tell me what I need to include in the makefile for my C program so it will call the correct encrypt/decrypt functions. This is what I have in the makefile testcrypto: ${CC} -o ${BIN}/testcrypto.exe testcrypto.c -I/usr/include/postgresql/server/libpq -L/lib/postgresql -lpq -lcrypt I'm calling the function like this printf("test encryption: %s", encrypt("hello", "0000BBBB", "aes"); But I'm getting too many arguments in function encrypt. Thank you --------------------------------- Start your day with Yahoo! - make it your home page --0-619883052-1124200780=:80334 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi,
 
Can some body tell me what I need to include in the makefile for my C program so it will call the correct encrypt/decrypt functions.
 
This is what I have in the makefile
testcrypto:
  ${CC} -o ${BIN}/testcrypto.exe testcrypto.c -I/usr/include/postgresql/server/libpq -L/lib/postgresql -lpq -lcrypt
 
I'm calling the function like this
printf("test encryption: %s", encrypt("hello", "0000BBBB", "aes");
 
But I'm getting too many arguments in function encrypt.
 
Thank you
 
 


Start your day with Yahoo! - make it your home page --0-619883052-1124200780=:80334--