X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fcrypto.h;h=0bf74a16554622af6273e749334c7321331bf9eb;hp=d573cbc279c87b859c3614b90f7a16343ac42cab;hb=0b86eb3ea66628997a11bc8588c4695eabd90e62;hpb=5a88a6eabfe4fe08cb603974a476b33b722e69a3 diff --git a/crypto/crypto.h b/crypto/crypto.h index d573cbc279..0bf74a1655 100644 --- a/crypto/crypto.h +++ b/crypto/crypto.h @@ -63,8 +63,12 @@ extern "C" { #endif -#include "stack.h" -#include "opensslv.h" +#ifndef NO_FP_API +#include +#endif + +#include +#include /* Backward compatibility to SSLeay */ /* This is more to be used to check the correct DLL is being used @@ -233,7 +237,7 @@ typedef struct crypto_ex_data_func_st #ifndef NOPROTO -char *SSLeay_version(int type); +const char *SSLeay_version(int type); unsigned long SSLeay(void); int CRYPTO_get_ex_new_index(int idx,STACK **sk,long argl,char *argp, @@ -246,20 +250,21 @@ void CRYPTO_new_ex_data(STACK *meth, char *obj, CRYPTO_EX_DATA *ad); int CRYPTO_mem_ctrl(int mode); int CRYPTO_get_new_lockid(char *name); -void CRYPTO_lock(int mode, int type,char *file,int line); -void CRYPTO_set_locking_callback(void (*func)(int mode,int type,char *file, - int line)); -void (*CRYPTO_get_locking_callback(void))(int mode,int type,char *file, +void CRYPTO_lock(int mode, int type,const char *file,int line); +void CRYPTO_set_locking_callback(void (*func)(int mode,int type, + const char *file,int line)); +void (*CRYPTO_get_locking_callback(void))(int mode,int type,const char *file, int line); -void CRYPTO_set_add_lock_callback(int (*func)(int *num,int mount, - int type,char *file, int line)); -int (*CRYPTO_get_add_lock_callback(void))(int *num,int mount, - int type,char *file,int line); +void CRYPTO_set_add_lock_callback(int (*func)(int *num,int mount,int type, + const char *file, int line)); +int (*CRYPTO_get_add_lock_callback(void))(int *num,int mount,int type, + const char *file,int line); void CRYPTO_set_id_callback(unsigned long (*func)(void)); unsigned long (*CRYPTO_get_id_callback(void))(void); unsigned long CRYPTO_thread_id(void); -char *CRYPTO_get_lock_name(int type); -int CRYPTO_add_lock(int *pointer,int amount,int type, char *file,int line); +const char *CRYPTO_get_lock_name(int type); +int CRYPTO_add_lock(int *pointer,int amount,int type, const char *file, + int line); void CRYPTO_set_mem_functions(char *(*m)(),char *(*r)(), void (*free_func)()); void CRYPTO_get_mem_functions(char *(**m)(),char *(**r)(), void (**f)()); @@ -273,10 +278,10 @@ void CRYPTO_free(void *); void *CRYPTO_realloc(void *addr,int num); void *CRYPTO_remalloc(void *addr,int num); -void *CRYPTO_dbg_malloc(int num,char *file,int line); -void *CRYPTO_dbg_realloc(void *addr,int num,char *file,int line); +void *CRYPTO_dbg_malloc(int num,const char *file,int line); +void *CRYPTO_dbg_realloc(void *addr,int num,const char *file,int line); void CRYPTO_dbg_free(void *); -void *CRYPTO_dbg_remalloc(void *addr,int num,char *file,int line); +void *CRYPTO_dbg_remalloc(void *addr,int num,const char *file,int line); #ifndef NO_FP_API void CRYPTO_mem_leaks_fp(FILE *); #endif @@ -308,7 +313,7 @@ int (*CRYPTO_get_add_lock_callback())(); void CRYPTO_set_id_callback(); unsigned long (*CRYPTO_get_id_callback())(); unsigned long CRYPTO_thread_id(); -char *CRYPTO_get_lock_name(); +const char *CRYPTO_get_lock_name(); int CRYPTO_add_lock(); void CRYPTO_set_mem_functions(); @@ -332,6 +337,10 @@ void ERR_load_CRYPTO_strings(); #endif /* BEGIN ERROR CODES */ +/* The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ + /* Error codes for the CRYPTO functions. */ /* Function codes. */ @@ -340,7 +349,7 @@ void ERR_load_CRYPTO_strings(); #define CRYPTO_F_CRYPTO_SET_EX_DATA 102 /* Reason codes. */ - + #ifdef __cplusplus } #endif