replace macros with functions
Submitted by: Tracy Camp <tracyx.e.camp@intel.com>
This commit is contained in:
@@ -2416,14 +2416,14 @@ int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile,
|
||||
#endif
|
||||
|
||||
void SSL_set_info_callback(SSL *ssl,
|
||||
void (*cb)(const SSL *ssl,int type,int val))
|
||||
void (*cb)(const SSL *ssl,int type,int val))
|
||||
{
|
||||
ssl->info_callback=cb;
|
||||
}
|
||||
|
||||
/* One compiler (Diab DCC) doesn't like argument names in returned
|
||||
function pointer. */
|
||||
void (*SSL_get_info_callback(const SSL *ssl))(const SSL * /*ssl*/,int /*type*/,int /*val*/)
|
||||
void (*SSL_get_info_callback(const SSL *ssl))(const SSL * /*ssl*/,int /*type*/,int /*val*/)
|
||||
{
|
||||
return ssl->info_callback;
|
||||
}
|
||||
|
Reference in New Issue
Block a user