]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - cproxy.c
first pass
[PuTTY.git] / cproxy.c
index 934ce3dc228d6f26f5f66d9074e6b11327afd6ca..4f9a3ffa591c8b00833d0f6b24c69f83ca64ec06 100644 (file)
--- a/cproxy.c
+++ b/cproxy.c
@@ -21,7 +21,7 @@ static void hmacmd5_chap(const unsigned char *challenge, int challen,
     void *hmacmd5_ctx;
     int pwlen;
 
-    hmacmd5_ctx = hmacmd5_make_context();
+    hmacmd5_ctx = hmacmd5_make_context(NULL);
 
     pwlen = strlen(passwd);
     if (pwlen>64) {
@@ -173,7 +173,8 @@ int proxy_socks5_selectchap(Proxy_Socket p)
        chapbuf[5] = '\x02'; /* Second attribute - username */
 
        ulen = strlen(username);
-       if (ulen > 255) ulen = 255; if (ulen < 1) ulen = 1;
+       if (ulen > 255) ulen = 255;
+       if (ulen < 1) ulen = 1;
 
        chapbuf[6] = ulen;
        memcpy(chapbuf+7, username, ulen);