LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-05-2005, 01:56 PM   #1
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Rep: Reputation: 30
Problem with OpenSSL and sockets


Hi folks,

I'm working on my IRC bot and it all works nice. It's written in C and I've read some OpenSSL tutorials and understood how to use it and tested it a few times with some simple codes.

But my problem is, I use select() in my bot, so I can multiple connections, but the problem is how am I gonna use OpenSSL sockets (BIO sockets) and the normal sockets , both with select()?

Or do I need to use something else?

Can anyone help me, so I can use normal sockets and SSL tunnels (cause the bot should have the possibility of joining more then one irc network)
 
Old 07-06-2005, 01:09 PM   #2
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 110Reputation: 110
SSL doesn't use polling to get information. Instead, you register a callback, and when data arrives, the callback function is called.

See: SSL_CTX_set_msg_callback(3)

-Aaron
 
Old 07-07-2005, 06:54 AM   #3
64bitprocessor
LQ Newbie
 
Registered: Jul 2005
Location: Bangalore
Distribution: Debian
Posts: 15

Rep: Reputation: 0
Hi,
Me too have some problems with SSL. In my SSL server I cannot create the SSL CTX objects. The SSL_CTX_new(SSLv23_client_method()) function always returns NULL. Can any body help me? I am using the fedora core 3 Linux. The SSL library of Redhat 9 is not working.
 
Old 07-08-2005, 12:45 PM   #4
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by orgcandman
SSL doesn't use polling to get information. Instead, you register a callback, and when data arrives, the callback function is called.

See: SSL_CTX_set_msg_callback(3)

-Aaron
Tnx for the info man, I will use it when I'm back from Spain
Going tomorrow on vacation.

But thanks anyway
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openssl problem James_dean Programming 0 09-22-2005 05:10 AM
problem with sockets... jp-lack Slackware 2 07-06-2005 11:25 AM
openssl problem abdullahgee Programming 0 06-03-2004 02:00 PM
epic + openssl problem ratty007 Linux - Newbie 2 02-24-2004 04:05 PM
openSSL problem raven Linux - Software 2 09-15-2002 11:24 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration