mirror of https://github.com/FreeRDP/FreeRDP
Fixed -Wincompatible-pointer-types
This commit is contained in:
parent
bc7c4cc6a1
commit
a40ade5abc
|
@ -1708,7 +1708,7 @@ BOOL rdp_set_state(rdpRdp* rdp, CONNECTION_STATE state)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
const char* rdp_get_state_string(rdpRdp* rdp)
|
||||
const char* rdp_get_state_string(const rdpRdp* rdp)
|
||||
{
|
||||
CONNECTION_STATE state = rdp_get_state(rdp);
|
||||
return rdp_state_string(state);
|
||||
|
|
|
@ -62,7 +62,7 @@ FREERDP_LOCAL BOOL rdp_server_accept_confirm_active(rdpRdp* rdp, wStream* s, UIN
|
|||
FREERDP_LOCAL BOOL rdp_server_establish_keys(rdpRdp* rdp, wStream* s);
|
||||
FREERDP_LOCAL BOOL rdp_server_reactivate(rdpRdp* rdp);
|
||||
FREERDP_LOCAL BOOL rdp_server_transition_to_state(rdpRdp* rdp, CONNECTION_STATE state);
|
||||
FREERDP_LOCAL const char* rdp_get_state_string(rdpRdp* rdp);
|
||||
FREERDP_LOCAL const char* rdp_get_state_string(const rdpRdp* rdp);
|
||||
|
||||
FREERDP_LOCAL const char* rdp_client_connection_state_string(int state);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "hmac_md5.h"
|
||||
#include "md5.h"
|
||||
|
||||
void hmac_md5_init(WINPR_HMAC_MD5_CTX* ctx, unsigned char* key, size_t key_len)
|
||||
void hmac_md5_init(WINPR_HMAC_MD5_CTX* ctx, const unsigned char* key, size_t key_len)
|
||||
{
|
||||
const WINPR_HMAC_MD5_CTX empty = { 0 };
|
||||
unsigned char k_ipad[KEY_IOPAD_SIZE] = { 0 };
|
||||
|
@ -40,7 +40,7 @@ void hmac_md5_init(WINPR_HMAC_MD5_CTX* ctx, unsigned char* key, size_t key_len)
|
|||
winpr_MD5_Update(&ctx->ocontext, k_opad, KEY_IOPAD_SIZE);
|
||||
}
|
||||
|
||||
void hmac_md5_update(WINPR_HMAC_MD5_CTX* ctx, unsigned char* text, size_t text_len)
|
||||
void hmac_md5_update(WINPR_HMAC_MD5_CTX* ctx, const unsigned char* text, size_t text_len)
|
||||
{
|
||||
assert(ctx);
|
||||
winpr_MD5_Update(&ctx->icontext, text, text_len);
|
||||
|
|
|
@ -12,8 +12,8 @@ typedef struct
|
|||
WINPR_MD5_CTX ocontext;
|
||||
} WINPR_HMAC_MD5_CTX;
|
||||
|
||||
void hmac_md5_init(WINPR_HMAC_MD5_CTX* ctx, unsigned char* key, size_t key_len);
|
||||
void hmac_md5_update(WINPR_HMAC_MD5_CTX* ctx, unsigned char* text, size_t text_len);
|
||||
void hmac_md5_init(WINPR_HMAC_MD5_CTX* ctx, const unsigned char* key, size_t key_len);
|
||||
void hmac_md5_update(WINPR_HMAC_MD5_CTX* ctx, const unsigned char* text, size_t text_len);
|
||||
void hmac_md5_finalize(WINPR_HMAC_MD5_CTX* ctx, unsigned char* hmac);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue