telnet:// URLs don't always have the //. (Incorrect but common.)
[u/mdw/putty] / ssh.h
diff --git a/ssh.h b/ssh.h
index d154af7..a9057e7 100644 (file)
--- a/ssh.h
+++ b/ssh.h
@@ -8,8 +8,13 @@
 struct RSAKey {
     int bits;
     int bytes;
+#ifdef MSCRYPTOAPI
+    unsigned long exponent;
+    unsigned char *modulus;
+#else
     void *modulus;
     void *exponent;
+#endif
 };
 
 int makekey(unsigned char *data, struct RSAKey *result,
@@ -23,10 +28,19 @@ typedef unsigned int uint32;
 
 unsigned long crc32(const void *s, size_t len);
 
+typedef struct {
+    uint32 h[4];
+} MD5_Core_State;
+
 struct MD5Context {
-        uint32 buf[4];
-        uint32 bits[2];
-        unsigned char in[64];
+#ifdef MSCRYPTOAPI
+    unsigned long hHash;
+#else
+    MD5_Core_State core;
+    unsigned char block[64];
+    int blkused;
+    uint32 lenhi, lenlo;
+#endif
 };
 
 void MD5Init(struct MD5Context *context);
@@ -40,7 +54,9 @@ struct ssh_cipher {
     void (*decrypt)(unsigned char *blk, int len);
 };
 
+#ifndef MSCRYPTOAPI
 void SHATransform(word32 *digest, word32 *data);
+#endif
 
 int random_byte(void);
 void random_add_noise(void *noise, int length);