From: The One <i51359@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: What libraries need to be included in C program for encrypt and decrypt functions?
Date: Tue, 16 Aug 2005 06:59:40 -0700 (PDT)
Message-ID: <20050816135940.80368.qmail@web33902.mail.mud.yahoo.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: i51359@yahoo.com
Subject: Re: What libraries need to be included in C program for encrypt and decrypt functions?
In-Reply-To: <20050816135940.80368.qmail@web33902.mail.mud.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox