dsniff  2.4b2
About: A collection of tools for network auditing
  Fossies Dox: dsniff-2.4b2.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

base64.c File Reference
#include <sys/types.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "base64.h"
Include dependency graph for base64.c:

Go to the source code of this file.

Macros

#define Assert(Cond)   if (!(Cond)) abort()
 

Functions

int base64_pton (char const *src, u_char *target, size_t targsize)
 

Variables

static const char Base64 []
 
static const char Pad64 = '='
 

Macro Definition Documentation

◆ Assert

#define Assert (   Cond)    if (!(Cond)) abort()

Definition at line 52 of file base64.c.

Function Documentation

◆ base64_pton()

int base64_pton ( char const *  src,
u_char *  target,
size_t  targsize 
)

Definition at line 128 of file base64.c.

References Base64, and Pad64.

Referenced by decode_http(), decode_nntp(), decode_pop(), decode_smtp(), decode_sniffer(), and process_http_request().

Variable Documentation

◆ Base64

const char Base64[]
static
Initial value:
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

Definition at line 54 of file base64.c.

Referenced by base64_pton().

◆ Pad64

const char Pad64 = '='
static

Definition at line 56 of file base64.c.

Referenced by base64_pton().