Hello. I'm a newbie for OpenSSL and network programming.

Currently, I'm trying to write transparent proxy with openSSL and translate
the previous vanilla socket programming into openSSL BIO.

However, when relaying connection, I think there is a need to poll or
select socket (I want this with BIO socket) but I'm not sure what I can do.
Currently, I have two BIO, respectively for client and destination server.

What I thought is by getting socket descriptor for each BIO, I might be
able to poll on each socket and when change is detected, use BIO that I
created before. However, I'm not sure this is the right approach.

Currently, I'm working on only insecure connection but I'm planning to deal
with secure connection as all with BIO. The reason why I mentioned this is,
when doing research on this topic, I found that someone says what I want is
SSL_pending, but if I want to use BIO, I think I need to use different way.

If my question is ambiguous, please let me know.

Thanks.

Reply via email to