How to use OpenSSL on system without conventional file system?

2008-01-24 Thread OpenSSL
How might I make OpenSSL use my own 'file system' instead of fopen, fread, etc.? I need to make OpenSSL work on a system without implementations of fopen, fread, etc. However, I have access to functionality that is essentially the same as fopen, fread, etc. I see BIO_FLAGS_UPLINK but am not

Re: How to use OpenSSL on system without conventional file system?

2008-01-24 Thread Michael S. Zick
On Thu January 24 2008 13:03, OpenSSL wrote: How might I make OpenSSL use my own 'file system' instead of fopen, fread, etc.? The usual way to do that is to write a small bit of wrapper code that resolves the fopen, fread, etc calls - and re-issues them as whatever your system requires. Then

Re: How to use OpenSSL on system without conventional file system?

2008-01-24 Thread OpenSSL
Thanks, but as I said, I cannot simply provide my own linkable versions of fopen, fread, etc. These functions are reserved by the system for other uses. Is there no way to cleanly override IO in OpenSSL? Thanks. On Thu January 24 2008 13:03, OpenSSL wrote: How might I make OpenSSL use

Re: How to use OpenSSL on system without conventional file system?

2008-01-24 Thread Michael S. Zick
On Thu January 24 2008 14:42, OpenSSL wrote: Thanks, but as I said, I cannot simply provide my own linkable versions of fopen, fread, etc. These functions are reserved by the system for other uses. Sure you can. At least you can if the loader of your tool-chain you are using supports

Re: How to use OpenSSL on system without conventional file system?

2008-01-24 Thread OpenSSL
Sure you can. At least you can if ... Thanks, but I'm looking for a clean solution, and foremost that means a portable solution. What you suggest is not portable. Needless to say, there are numerous platforms which don't provide usable implementations of fopen, and in fact there are

Re: How to use OpenSSL on system without conventional file system?

2008-01-24 Thread Kyle Hamilton
Look at the BIO section of the library manpages. It provides the I/O abstraction that openssl uses throughout. -Kyle H Sent from my iPhone On Jan 24, 2008, at 13:58, OpenSSL [EMAIL PROTECTED] wrote: Sure you can. At least you can if ... Thanks, but I'm looking for a clean solution,

RE: How to use OpenSSL on system without conventional file system?

2008-01-24 Thread David Schwartz
Thanks, but as I said, I cannot simply provide my own linkable versions of fopen, fread, etc. These functions are reserved by the system for other uses. Is there no way to cleanly override IO in OpenSSL? Thanks. Just never ask OpenSSL to operate on a file. If you want to read a key in

Re: How to use OpenSSL on system without conventional file system?

2008-01-24 Thread Victor Duchovni
On Thu, Jan 24, 2008 at 05:10:00PM -0800, David Schwartz wrote: Thanks, but as I said, I cannot simply provide my own linkable versions of fopen, fread, etc. These functions are reserved by the system for other uses. Is there no way to cleanly override IO in OpenSSL? Thanks.