Here is a scenario that we are trying to build:

I have a system A which has a lot of Apps using cryptographic algorithms but we have to perform crypotography remotely.

Therefore, I have to send any calls to cryptographic (openssl) engines via socket to a remote system(B) with openssl support.

My plan is to have a small socket prog on System A which forwards these calls to system B.

However, it would be nice to get some ideas on how my "wrapper" on System B should look like.

How do I forward any openssl command received to the openssl libs without re-doing anything already existing??

I want to know if the "wrapper" that I am building in C language has to use some ssl socket calls to be able to call openssl libs on System B.

Or if not how do you think I should go about the problem?

Thanks folks.