Problem with linking library

2007-02-03 Thread Tuan Minh Nguyen
Hi all, which options should I use to compile when I see this error? : client.c:(.text+0xcb): undefined reference to `init_OpenSSL' client.c:(.text+0xfc): undefined reference to `handle_error' client.c:(.text+0x13f): undefined reference to `handle_error' common.c:(.text+0x51): undefined reference

RE: Problem with linking library

2007-02-05 Thread Tuan Minh Nguyen
Hi Dinh Thao, thank you very much for your reply. I have no more problem with linking. but now I have problem when I compile file client.c and common.c: [EMAIL PROTECTED]:~/SSL-connection$ gcc client.c -o client -Wall -lcrypto -lssl -lpthread /tmp/ccUugnSm.o: In function `main': client.c:(.text+0x

RE: Problem with linking library

2007-02-06 Thread Tuan Minh Nguyen
Hi, my problem is solved. Thanks anyway, Minh. --- > Hi Dinh Thao, > thank you very much for your reply. I have no more problem with > linking. > but now I have problem when I compile file client.c and common.c: > > [EMAIL PROTECTED]:~/SSL-connection$ gcc client.c -o client -Wal

how create rsa key with encrypted

2007-05-30 Thread Tuan Minh Nguyen
hi everybody, I did this command: openssl req -newkey rsa:1024 -keyout testkey.pem -keyform PEM -out testreq.pem to create a pair of private key (testkey.pem) and a request certificate (testreq.pem). I read in book "Network Security with Openssl", it said that the gerenated rsa private key wi