Codebase list cyrus-imapd / e6420226-8b73-4397-8a6c-43c7623996f2/main imap / tls_th-lock.h
e6420226-8b73-4397-8a6c-43c7623996f2/main

Tree @e6420226-8b73-4397-8a6c-43c7623996f2/main (Download .tar.gz)

tls_th-lock.h @e6420226-8b73-4397-8a6c-43c7623996f2/mainraw · history · blame

/* tls_th-lock.h */
/* Derived from openssl-0.9.8i/crypto/threads/th-lock.c
 * by Duncan Gibb <duncan.gibb@siriusit.co.uk>
 * 4 November 2008
 */

#ifndef INCLUDED_TLS_TH_LOCK_H
#define INCLUDED_TLS_TH_LOCK_H

#ifdef HAVE_SSL

/*
 * This entire interface is obsoleted by OpenSSL 1.1.0.
 * Keep it around for a while for backward compatibility though.
 */
#if OPENSSL_VERSION_NUMBER < 0x10100000L

void CRYPTO_thread_setup(void);
void CRYPTO_thread_cleanup(void);
/*
static void pthreads_locking_callback(int mode,int type,char *file,int line);
static unsigned long pthreads_thread_id(void );
*/
void pthreads_locking_callback(int mode,int type,char *file,int line);
unsigned long pthreads_thread_id(void );

#endif /* OPENSSL_VERSION_NUMBER */

#endif /* HAVE_SSL */
#endif /* INCLUDED_TLS_TH_LOCK_H */