The ERR library must either

  -  define a constant telling the user how much space has to be
     provided for char errstring[SOME_LEN] in a call
     ERR_error_string(e, errstring),

or

  -  ERR_error_string needs an additional parameter so that the caller
     can tell it how much space has actually been reserved.

Using errstring = ERR_error_string(e, NULL) uses static memory and
thus can fail for applications that use threads.

Maybe someone who has looked into the automatic generation of error
definitions can suggest the most convenient way to add a definition
ERR_ERROR_STRING_BUFSIZE, or whatever we should call it ...
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to