X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fcrypto.h;h=f5cb4c7106bc69397c7ad4abdb647359758331bf;hp=4b542ce622a09f24d00ef3c92cd07ee905d2e6fe;hb=1d97c8435171a7af575f73c526d79e1ef0ee5960;hpb=c603c723ce0007c78b154096f1b2f67cea786389 diff --git a/crypto/crypto.h b/crypto/crypto.h index 4b542ce622..f5cb4c7106 100644 --- a/crypto/crypto.h +++ b/crypto/crypto.h @@ -139,16 +139,6 @@ one way or another */ #include -/* For FIPS mode rename all OpenSSL symbols to avoid clashes with a - * non-FIPS OpenSSL. - */ - -#if defined(OPENSSL_FIPSCANISTER) -# include -#else -# define __fips_constseg -#endif - #ifdef __cplusplus extern "C" { #endif @@ -452,10 +442,14 @@ void CRYPTO_THREADID_current(CRYPTO_THREADID *id); int CRYPTO_THREADID_cmp(const CRYPTO_THREADID *a, const CRYPTO_THREADID *b); void CRYPTO_THREADID_cpy(CRYPTO_THREADID *dest, const CRYPTO_THREADID *src); unsigned long CRYPTO_THREADID_hash(const CRYPTO_THREADID *id); -#ifndef OPENSSL_NO_DEPRECATED -void CRYPTO_set_id_callback(unsigned long (*func)(void)); +#ifdef OPENSSL_USE_DEPRECATED +DECLARE_DEPRECATED(void CRYPTO_set_id_callback(unsigned long (*func)(void))); +/* + * mkdef.pl cannot handle this next one so not inside DECLARE_DEPRECATED, + * but still inside OPENSSL_USE_DEPRECATED + */ unsigned long (*CRYPTO_get_id_callback(void))(void); -unsigned long CRYPTO_thread_id(void); +DECLARE_DEPRECATED(unsigned long CRYPTO_thread_id(void)); #endif const char *CRYPTO_get_lock_name(int type); @@ -531,7 +525,8 @@ int CRYPTO_remove_all_info(void); void CRYPTO_dbg_malloc(void *addr,int num,const char *file,int line,int before_p); void CRYPTO_dbg_realloc(void *addr1,void *addr2,int num,const char *file,int line,int before_p); void CRYPTO_dbg_free(void *addr,int before_p); -/* Tell the debugging code about options. By default, the following values +/*- + * Tell the debugging code about options. By default, the following values * apply: * * 0: Clear all options.