irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

base64.h File Reference
#include "rodsDef.h"
Include dependency graph for base64.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int base64_encode (const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen)
 
int base64_decode (const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen)
 

Function Documentation

◆ base64_decode()

int base64_decode ( const unsigned char *  in,
unsigned long  inlen,
unsigned char *  out,
unsigned long *  outlen 
)

base64 decode a block of memory

Parameters
inThe base64 data to decode
inlenThe length of the base64 data
out[out] The destination of the binary decoded data
outlen[in/out] The max size and resulting size of the decoded data
Returns
OK if successful

Definition at line 91 of file base64.cpp.

References BASE64_BUFFER_OVERFLOW, BASE64_INVALID_PACKET, mymap, OK, and manual_cleanup::out.

◆ base64_encode()

int base64_encode ( const unsigned char *  in,
unsigned long  inlen,
unsigned char *  out,
unsigned long *  outlen 
)

base64 Encode a buffer (NUL terminated)

Parameters
inThe input buffer to encode
inlenThe length of the input buffer
out[out] The destination of the base64 encoded data
outlen[in/out] The max size and resulting size
Returns
OK if successful

Definition at line 45 of file base64.cpp.

References irods.six::b(), BASE64_BUFFER_OVERFLOW, codes, OK, manual_cleanup::out, and pid_age::p.

Referenced by irods::SHA256Strategy::digest(), and packChar().

Here is the call graph for this function: