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

Поиск
Список
Период
Сортировка
От The One
Тема What libraries need to be included in C program for encrypt and decrypt functions?
Дата
Msg-id 20050816135940.80368.qmail@web33902.mail.mud.yahoo.com
обсуждение исходный текст
Ответы Re: What libraries need to be included in C program for encrypt and decrypt functions?  ("Owen Jacobson" <ojacobson@osl.com>)
Список 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

В списке pgsql-sql по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: ARRAYs and INDEXes ...
Следующее
От: Greg Stark
Дата:
Сообщение: Re: ARRAYs and INDEXes ...