Go to the source code of this file.
◆ BASE64_EXTERN
      
        
          | #define BASE64_EXTERN   extern | 
      
 
 
◆ base64_decode()
      
        
          | BASE64_EXTERN int base64_decode | ( | const char * | in, | 
        
          |  |  | unsigned char * | out, | 
        
          |  |  | size_t | outlen | 
        
          |  | ) |  |  | 
      
 
Decode a base64 string into a byte array. 
- Parameters
- 
  
    | in | Input string data |  | out | Pointer to pre-allocated buffer space |  | outlen | Size of buffer |  
 
- Returns
- Length of converted byte array, or -1 on error 
 
 
◆ base64_encode()
      
        
          | BASE64_EXTERN int base64_encode | ( | const unsigned char * | in, | 
        
          |  |  | size_t | len, | 
        
          |  |  | unsigned char * | out, | 
        
          |  |  | size_t * | outlen | 
        
          |  | ) |  |  | 
      
 
Encode byte array into a base64 string. 
- Parameters
- 
  
    | in | Pointer to byte array |  | len | lenght of input data |  | out | Pointer to preallocated buffer space |  | outlen | Size of buffer |  
 
- Returns
- 0 on sucess, -1 on error