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
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
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
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
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
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,
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
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.