mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 00:20:46 +00:00 
			
		
		
		
	verify jump link for valid characters
This commit is contained in:
		
							parent
							
								
									c8ae15041f
								
							
						
					
					
						commit
						3286bdb4a7
					
				
					 4 changed files with 60 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
/*
 | 
			
		||||
* Copyright (c) 2013-2020, The PurpleI2P Project
 | 
			
		||||
* Copyright (c) 2013-2023, The PurpleI2P Project
 | 
			
		||||
*
 | 
			
		||||
* This file is part of Purple i2pd project and licensed under BSD3
 | 
			
		||||
*
 | 
			
		||||
| 
						 | 
				
			
			@ -19,9 +19,11 @@ namespace data {
 | 
			
		|||
	size_t Base64ToByteStream (const char * InBuffer, size_t InCount, uint8_t * OutBuffer, size_t len );
 | 
			
		||||
	const char * GetBase32SubstitutionTable ();
 | 
			
		||||
	const char * GetBase64SubstitutionTable ();
 | 
			
		||||
	bool IsBase64 (char ch);
 | 
			
		||||
 | 
			
		||||
	size_t Base32ToByteStream (const char * inBuf, size_t len, uint8_t * outBuf, size_t outLen);
 | 
			
		||||
	size_t ByteStreamToBase32 (const uint8_t * InBuf, size_t len, char * outBuf, size_t outLen);
 | 
			
		||||
	bool IsBase32 (char ch);
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Compute the size for a buffer to contain encoded base64 given that the size of the input is input_size bytes
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue