mirror of
				https://github.com/libssh2/libssh2.git
				synced 2025-11-03 22:13:11 +03:00 
			
		
		
		
	wincng.h: fix return code of libssh2_md5_init()
This commit is contained in:
		@@ -135,7 +135,7 @@ typedef struct __libssh2_wincng_hash_ctx {
 | 
				
			|||||||
#define libssh2_md5_ctx _libssh2_wincng_hash_ctx
 | 
					#define libssh2_md5_ctx _libssh2_wincng_hash_ctx
 | 
				
			||||||
#define libssh2_md5_init(ctx) \
 | 
					#define libssh2_md5_init(ctx) \
 | 
				
			||||||
  _libssh2_wincng_hash_init(ctx, _libssh2_wincng.hAlgHashMD5, \
 | 
					  _libssh2_wincng_hash_init(ctx, _libssh2_wincng.hAlgHashMD5, \
 | 
				
			||||||
                            MD5_DIGEST_LENGTH, NULL, 0)
 | 
					                            MD5_DIGEST_LENGTH, NULL, 0) == 0
 | 
				
			||||||
#define libssh2_md5_update(ctx, data, datalen) \
 | 
					#define libssh2_md5_update(ctx, data, datalen) \
 | 
				
			||||||
  _libssh2_wincng_hash_update(&ctx, (unsigned char *) data, datalen)
 | 
					  _libssh2_wincng_hash_update(&ctx, (unsigned char *) data, datalen)
 | 
				
			||||||
#define libssh2_md5_final(ctx, hash) \
 | 
					#define libssh2_md5_final(ctx, hash) \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user