--- On Mon, 4/12/10, Phillip Hellewell <[email protected]> wrote:

Thanks.  That's good advice.  BTW, I've finished implementing everything except 
gets().  Other implementations I've seen seem to be able to get away with not 
having it, but my unit tests are failing because of it.




what's failing? this is what mine looks like



BIO_METHOD bio_custom_method = 

{

    BIO_TYPE_SOURCE_SINK, /* BIO type constant*/

    "bio_custom_method", /* BIO char name */

    NULL, /* write func */

    bio_read, /* read func */

    NULL, /* puts func */

    NULL, /* gets func */

    bio_ctrl, /* ctrl func */

    bio_new, /* create func */

    bio_free, /* destroy func */

    NULL, /* callback_ctrl func */

};




what functions you need depend on what you're calling. but in any case
you'll need a bio_ctrl, openssl expects that to be defined. if i called
a function in openssl that needed to write i'd need to have a write
function defined, etc.






      

Reply via email to