mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	fix for openssl 1.1
This commit is contained in:
		
							parent
							
								
									8b49a55442
								
							
						
					
					
						commit
						f498fabd27
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -27,10 +27,13 @@ uint8_t p[32] =
 | 
			
		|||
 | 
			
		||||
int main ()
 | 
			
		||||
{
 | 
			
		||||
#if !OPENSSL_X25519
 | 
			
		||||
// we test it for openssl < 1.1.0
 | 
			
		||||
    uint8_t buf[32];
 | 
			
		||||
    BN_CTX * ctx = BN_CTX_new ();
 | 
			
		||||
    i2p::crypto::GetEd25519 ()->ScalarMul (u, k, buf, ctx);
 | 
			
		||||
    BN_CTX_free (ctx);
 | 
			
		||||
    assert(memcmp (buf, p, 32) == 0);
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue