aboutsummaryrefslogtreecommitdiffstats
path: root/cram.c
diff options
context:
space:
mode:
Diffstat (limited to 'cram.c')
-rw-r--r--cram.c6
1 files changed, 3 insertions, 3 deletions
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;