mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:20:05 +00:00 
			
		
		
		
	Verify downloaded file against content-md5 response header
This commit is contained in:
		
							parent
							
								
									2f397106f9
								
							
						
					
					
						commit
						3ab05a1654
					
				
					 5 changed files with 171 additions and 12 deletions
				
			
		
							
								
								
									
										18
									
								
								wxdata/include/scwx/util/digest.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								wxdata/include/scwx/util/digest.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <istream> | ||||
| #include <vector> | ||||
| 
 | ||||
| #include <openssl/evp.h> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace util | ||||
| { | ||||
| 
 | ||||
| bool ComputeDigest(const EVP_MD*              mdtype, | ||||
|                    std::istream&              is, | ||||
|                    std::vector<std::uint8_t>& digest); | ||||
| 
 | ||||
| } // namespace util
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat