What libraries need to be included in C program for encrypt and decrypt functions?

From: The One <i51359(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: What libraries need to be included in C program for encrypt and decrypt functions?
Date: 2005-08-16 13:59:40
Message-ID: 20050816135940.80368.qmail@web33902.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Greg Stark 2005-08-16 14:59:28 Re: ARRAYs and INDEXes ...
Previous Message Akshay Mathur 2005-08-16 05:53:06 Re: sql function: using set as argument