From 05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 18 Mar 2010 10:10:32 +0100 Subject: Fix lots of warnings, most around string literals... ...that were converted to char* when they should have been converted to const char *. Use braces for empty if/else statements. --- cram.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cram.c') diff --git a/cram.c b/cram.c index ee97475a..16591b8d 100644 --- a/cram.c +++ b/cram.c @@ -17,8 +17,8 @@ #include "i18n.h" #include "md5.h" -void hmac_md5 (char *password, size_t pass_len, - char *challenge, size_t chal_len, +void hmac_md5 (const char *password, size_t pass_len, + const char *challenge, size_t chal_len, unsigned char *response, size_t resp_len) { int i; @@ -60,7 +60,7 @@ void hmac_md5 (char *password, size_t pass_len, MD5Final (response, &ctx); } -int do_cram_md5 (int sock, char *command, struct query *ctl, char *strip) +int do_cram_md5 (int sock, const char *command, struct query *ctl, const char *strip) /* authenticate as per RFC2195 */ { int result; -- cgit v1.2.3