diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-11 19:33:35 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-11 19:33:35 +0000 |
commit | e83eb833d4c427f66038ac36d59b87435d157f57 (patch) | |
tree | f08a64a76489e9691bb3f443309d320f3b2b7d0a /cram.c | |
parent | 2d69b9b093b7aaf9b2d2b97317fc54d0bd6813b7 (diff) | |
download | fetchmail-e83eb833d4c427f66038ac36d59b87435d157f57.tar.gz fetchmail-e83eb833d4c427f66038ac36d59b87435d157f57.tar.bz2 fetchmail-e83eb833d4c427f66038ac36d59b87435d157f57.zip |
We can specify the authentication command now.
svn path=/trunk/; revision=3062
Diffstat (limited to 'cram.c')
-rw-r--r-- | cram.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -60,7 +60,7 @@ static void hmac_md5 (unsigned char *password, size_t pass_len, MD5Final (response, &ctx); } -int do_cram_md5 (int sock, struct query *ctl) +int do_cram_md5 (int sock, char *command, struct query *ctl) /* authenticate as per RFC2195 */ { int result; @@ -70,7 +70,7 @@ int do_cram_md5 (int sock, struct query *ctl) unsigned char response[16]; unsigned char reply[1024]; - gen_send (sock, "AUTHENTICATE CRAM-MD5"); + gen_send (sock, "%s CRAM-MD5", command); /* From RFC2195: * The data encoded in the first ready response contains an |