diff options
author | miod <> | 2014-06-01 11:16:08 +0000 |
---|---|---|
committer | miod <> | 2014-06-01 11:16:08 +0000 |
commit | 8bb62fb7da776d7dcb99f1e741d3bc588c7acdbe (patch) | |
tree | 3063f7c813101801fb1c6e3429c0b29f0cea8b44 | |
parent | 8feed9c0b8cf35589d2442426a7f5c022f055e9d (diff) | |
download | openbsd-8bb62fb7da776d7dcb99f1e741d3bc588c7acdbe.tar.gz openbsd-8bb62fb7da776d7dcb99f1e741d3bc588c7acdbe.tar.bz2 openbsd-8bb62fb7da776d7dcb99f1e741d3bc588c7acdbe.zip |
Add a deprecated attribute to all CRYPTO_dbg_ functions.
ok deraadt@
-rw-r--r-- | src/lib/libcrypto/crypto.h | 20 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/crypto.h | 20 |
2 files changed, 20 insertions, 20 deletions
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h index e3cf3ec7a9..a88a5b9888 100644 --- a/src/lib/libcrypto/crypto.h +++ b/src/lib/libcrypto/crypto.h | |||
@@ -345,11 +345,6 @@ int CRYPTO_is_mem_check_on(void); | |||
345 | #define MemCheck_start() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) | 345 | #define MemCheck_start() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) |
346 | #define MemCheck_stop() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) | 346 | #define MemCheck_stop() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) |
347 | 347 | ||
348 | /* for library-internal use */ | ||
349 | #define MemCheck_on() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE) | ||
350 | #define MemCheck_off() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE) | ||
351 | #define is_MemCheck_on() CRYPTO_is_mem_check_on() | ||
352 | |||
353 | #define OPENSSL_malloc(num) CRYPTO_malloc((int)num,__FILE__,__LINE__) | 348 | #define OPENSSL_malloc(num) CRYPTO_malloc((int)num,__FILE__,__LINE__) |
354 | #define OPENSSL_strdup(str) CRYPTO_strdup((str),__FILE__,__LINE__) | 349 | #define OPENSSL_strdup(str) CRYPTO_strdup((str),__FILE__,__LINE__) |
355 | #define OPENSSL_realloc(addr,num) \ | 350 | #define OPENSSL_realloc(addr,num) \ |
@@ -499,9 +494,12 @@ int CRYPTO_remove_all_info(void); | |||
499 | * 0: called before the actual memory allocation has taken place | 494 | * 0: called before the actual memory allocation has taken place |
500 | * 1: called after the actual memory allocation has taken place | 495 | * 1: called after the actual memory allocation has taken place |
501 | */ | 496 | */ |
502 | void CRYPTO_dbg_malloc(void *addr, int num, const char *file, int line, int before_p); | 497 | void CRYPTO_dbg_malloc(void *addr, int num, const char *file, int line, int before_p) |
503 | void CRYPTO_dbg_realloc(void *addr1, void *addr2, int num, const char *file, int line, int before_p); | 498 | __attribute__ ((deprecated)); |
504 | void CRYPTO_dbg_free(void *addr, int before_p); | 499 | void CRYPTO_dbg_realloc(void *addr1, void *addr2, int num, const char *file, int line, int before_p) |
500 | __attribute__ ((deprecated)); | ||
501 | void CRYPTO_dbg_free(void *addr, int before_p) | ||
502 | __attribute__ ((deprecated)); | ||
505 | /* Tell the debugging code about options. By default, the following values | 503 | /* Tell the debugging code about options. By default, the following values |
506 | * apply: | 504 | * apply: |
507 | * | 505 | * |
@@ -510,8 +508,10 @@ void CRYPTO_dbg_free(void *addr, int before_p); | |||
510 | * V_CRYPTO_MDEBUG_THREAD (2): Set the "Show Thread Number" option. | 508 | * V_CRYPTO_MDEBUG_THREAD (2): Set the "Show Thread Number" option. |
511 | * V_CRYPTO_MDEBUG_ALL (3): 1 + 2 | 509 | * V_CRYPTO_MDEBUG_ALL (3): 1 + 2 |
512 | */ | 510 | */ |
513 | void CRYPTO_dbg_set_options(long bits); | 511 | void CRYPTO_dbg_set_options(long bits) |
514 | long CRYPTO_dbg_get_options(void); | 512 | __attribute__ ((deprecated)); |
513 | long CRYPTO_dbg_get_options(void) | ||
514 | __attribute__ ((deprecated)); | ||
515 | 515 | ||
516 | 516 | ||
517 | void CRYPTO_mem_leaks_fp(FILE *); | 517 | void CRYPTO_mem_leaks_fp(FILE *); |
diff --git a/src/lib/libssl/src/crypto/crypto.h b/src/lib/libssl/src/crypto/crypto.h index e3cf3ec7a9..a88a5b9888 100644 --- a/src/lib/libssl/src/crypto/crypto.h +++ b/src/lib/libssl/src/crypto/crypto.h | |||
@@ -345,11 +345,6 @@ int CRYPTO_is_mem_check_on(void); | |||
345 | #define MemCheck_start() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) | 345 | #define MemCheck_start() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) |
346 | #define MemCheck_stop() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) | 346 | #define MemCheck_stop() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) |
347 | 347 | ||
348 | /* for library-internal use */ | ||
349 | #define MemCheck_on() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE) | ||
350 | #define MemCheck_off() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE) | ||
351 | #define is_MemCheck_on() CRYPTO_is_mem_check_on() | ||
352 | |||
353 | #define OPENSSL_malloc(num) CRYPTO_malloc((int)num,__FILE__,__LINE__) | 348 | #define OPENSSL_malloc(num) CRYPTO_malloc((int)num,__FILE__,__LINE__) |
354 | #define OPENSSL_strdup(str) CRYPTO_strdup((str),__FILE__,__LINE__) | 349 | #define OPENSSL_strdup(str) CRYPTO_strdup((str),__FILE__,__LINE__) |
355 | #define OPENSSL_realloc(addr,num) \ | 350 | #define OPENSSL_realloc(addr,num) \ |
@@ -499,9 +494,12 @@ int CRYPTO_remove_all_info(void); | |||
499 | * 0: called before the actual memory allocation has taken place | 494 | * 0: called before the actual memory allocation has taken place |
500 | * 1: called after the actual memory allocation has taken place | 495 | * 1: called after the actual memory allocation has taken place |
501 | */ | 496 | */ |
502 | void CRYPTO_dbg_malloc(void *addr, int num, const char *file, int line, int before_p); | 497 | void CRYPTO_dbg_malloc(void *addr, int num, const char *file, int line, int before_p) |
503 | void CRYPTO_dbg_realloc(void *addr1, void *addr2, int num, const char *file, int line, int before_p); | 498 | __attribute__ ((deprecated)); |
504 | void CRYPTO_dbg_free(void *addr, int before_p); | 499 | void CRYPTO_dbg_realloc(void *addr1, void *addr2, int num, const char *file, int line, int before_p) |
500 | __attribute__ ((deprecated)); | ||
501 | void CRYPTO_dbg_free(void *addr, int before_p) | ||
502 | __attribute__ ((deprecated)); | ||
505 | /* Tell the debugging code about options. By default, the following values | 503 | /* Tell the debugging code about options. By default, the following values |
506 | * apply: | 504 | * apply: |
507 | * | 505 | * |
@@ -510,8 +508,10 @@ void CRYPTO_dbg_free(void *addr, int before_p); | |||
510 | * V_CRYPTO_MDEBUG_THREAD (2): Set the "Show Thread Number" option. | 508 | * V_CRYPTO_MDEBUG_THREAD (2): Set the "Show Thread Number" option. |
511 | * V_CRYPTO_MDEBUG_ALL (3): 1 + 2 | 509 | * V_CRYPTO_MDEBUG_ALL (3): 1 + 2 |
512 | */ | 510 | */ |
513 | void CRYPTO_dbg_set_options(long bits); | 511 | void CRYPTO_dbg_set_options(long bits) |
514 | long CRYPTO_dbg_get_options(void); | 512 | __attribute__ ((deprecated)); |
513 | long CRYPTO_dbg_get_options(void) | ||
514 | __attribute__ ((deprecated)); | ||
515 | 515 | ||
516 | 516 | ||
517 | void CRYPTO_mem_leaks_fp(FILE *); | 517 | void CRYPTO_mem_leaks_fp(FILE *); |