diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/objects/o_names.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/lib/libcrypto/objects/o_names.c b/src/lib/libcrypto/objects/o_names.c index 4c959db2da..c238a8b266 100644 --- a/src/lib/libcrypto/objects/o_names.c +++ b/src/lib/libcrypto/objects/o_names.c | |||
| @@ -8,17 +8,6 @@ | |||
| 8 | #include <openssl/safestack.h> | 8 | #include <openssl/safestack.h> |
| 9 | #include <openssl/e_os2.h> | 9 | #include <openssl/e_os2.h> |
| 10 | 10 | ||
| 11 | /* Later versions of DEC C has started to add lnkage information to certain | ||
| 12 | * functions, which makes it tricky to use them as values to regular function | ||
| 13 | * pointers. One way is to define a macro that takes care of casting them | ||
| 14 | * correctly. | ||
| 15 | */ | ||
| 16 | #ifdef OPENSSL_SYS_VMS_DECC | ||
| 17 | # define OPENSSL_strcmp (int (*)(const char *,const char *))strcmp | ||
| 18 | #else | ||
| 19 | # define OPENSSL_strcmp strcmp | ||
| 20 | #endif | ||
| 21 | |||
| 22 | /* I use the ex_data stuff to manage the identifiers for the obj_name_types | 11 | /* I use the ex_data stuff to manage the identifiers for the obj_name_types |
| 23 | * that applications may define. I only really use the free function field. | 12 | * that applications may define. I only really use the free function field. |
| 24 | */ | 13 | */ |
| @@ -91,12 +80,8 @@ int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *), | |||
| 91 | return(0); | 80 | return(0); |
| 92 | } | 81 | } |
| 93 | name_funcs->hash_func = lh_strhash; | 82 | name_funcs->hash_func = lh_strhash; |
| 94 | name_funcs->cmp_func = OPENSSL_strcmp; | 83 | name_funcs->cmp_func = strcmp; |
| 95 | name_funcs->free_func = 0; /* NULL is often declared to | 84 | name_funcs->free_func = NULL; |
| 96 | * ((void *)0), which according | ||
| 97 | * to Compaq C is not really | ||
| 98 | * compatible with a function | ||
| 99 | * pointer. -- Richard Levitte*/ | ||
| 100 | MemCheck_off(); | 85 | MemCheck_off(); |
| 101 | sk_NAME_FUNCS_push(name_funcs_stack,name_funcs); | 86 | sk_NAME_FUNCS_push(name_funcs_stack,name_funcs); |
| 102 | MemCheck_on(); | 87 | MemCheck_on(); |
