[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: up-imapproxy hurd patch (PATH_MAX)

Tanguy LE CARROUR, le Fri 03 Feb 2012 11:18:26 +0100, a écrit :
> 1) "guess" the buffer size from the knowledge I have about the
> RAND_file_name() function.
> This function set the content of the buffer depending on
> getenv("RANDFILE"), getenv("HOME") and some defined constants.
> The problem is that I have to change the allocated size if the OpenSSL
> code changes.

That'd be ugly, yes.

> 2) I can modify the OpenSSL code to accept a NULL buffer.
> The OpenSSL code would allocate the buffer memory according to the
> expected size.

That'd be preferrable.

> 3) maybe there is a different OpenSSL function that I can use... but I
> haven't dug this far yet!

There is no other function.


Reply to: