Apache HTTPD
Functions | Variables
Base64 Encoding

Functions

 APU_DECLARE (int) apr_base64_encode_len(int len)
 

Variables

const charplain_src
 
const char int len_plain_src
 
const charcoded_src
 

Detailed Description

Function Documentation

◆ APU_DECLARE()

APU_DECLARE ( int  )

Given the length of an un-encoded string, get the length of the encoded string.

Parameters
lenthe length of an unencoded string.
Returns
the length of the string after it is encoded, including the trailing \0

Encode a text string using base64encoding.

Parameters
coded_dstThe destination string for the encoded string.
plain_srcThe original string in plain text
len_plain_srcThe length of the plain text string
Returns
the length of the encoded string

Encode an EBCDIC string using base64encoding.

Parameters
coded_dstThe destination string for the encoded string.
plain_srcThe original string in plain text
len_plain_srcThe length of the plain text string
Returns
the length of the encoded string

Determine the maximum buffer length required to decode the plain text string given the encoded string.

Parameters
coded_srcThe encoded string
Returns
the maximum required buffer length for the plain text string

Decode a string to plain text

Parameters
plain_dstThe destination string for the plain text
coded_srcThe encoded string
Returns
the length of the plain text string

Decode an EBCDIC string to plain text

Parameters
plain_dstThe destination string for the plain text
coded_srcThe encoded string
Returns
the length of the plain text string

< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.

< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.

< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".

< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".

< Replace

< Insert with duplicates

< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.

< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.

< mask to extract lock type

< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.

< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".

< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".

< Size of the file

< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.

< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".

Definition at line 358 of file apr_brigade.c.

Variable Documentation

◆ coded_src

const char * coded_src

Definition at line 97 of file apr_base64.h.

◆ len_plain_src

const unsigned char int len_plain_src

Definition at line 70 of file apr_base64.h.

◆ plain_src

const unsigned char * plain_src

Definition at line 69 of file apr_base64.h.