• Staale Smedseng's avatar
    Bug #45770 errors reading server SSL files are printed, but · 94db736d
    Staale Smedseng authored
    not logged
            
    Errors encountered during initialization of the SSL subsystem
    are printed to stderr, rather than to the error log.
            
    This patch adds a parameter to several SSL init functions to
    report the error (if any) out to the caller. The function
    init_ssl() in mysqld.cc is moved after the initialization of
    the log subsystem, so that any error messages can be logged to
    the error log. Printing of messages to stderr has been 
    retained to get diagnostic output in a client context.
    
    
    include/violite.h:
      Adding an enumeration for the various errors that can
      occur during initialization of the SSL module.
    sql/mysqld.cc:
      Adding more logging of SSL init errors, and moving
      init_ssl() till after initialization of logging 
      subsystem.
    vio/viosslfactories.c:
      Define error strings, provide an access method for these
      strings, and maintain an error parameter in several funcs
      to return the error (if any) to the caller.
    94db736d
viosslfactories.c 10.4 KB