The Battle for Wesnoth  1.13.11+dev
Macros | Functions
wrapper.c File Reference
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "ow-crypt.h"
#include "crypt_blowfish.h"
#include "crypt_gensalt.h"
Include dependency graph for wrapper.c:

Go to the source code of this file.

Macros

#define __set_errno(val)   errno = (val)
 
#define CRYPT_OUTPUT_SIZE   (7 + 22 + 31 + 1)
 
#define CRYPT_GENSALT_OUTPUT_SIZE   (7 + 22 + 1)
 
#define __crypt_gensalt_rn   crypt_gensalt_rn
 
#define __crypt_gensalt_ra   crypt_gensalt_ra
 
#define __crypt_gensalt   crypt_gensalt
 

Functions

static int _crypt_data_alloc (void **data, int *size, int need)
 
static char * _crypt_retval_magic (char *retval, const char *setting, char *output, int size)
 
char * crypt_rn (const char *key, const char *setting, void *data, int size)
 
char * crypt_ra (const char *key, const char *setting, void **data, int *size)
 
char * crypt_r (const char *key, const char *setting, void *data)
 
char * crypt (const char *key, const char *setting)
 
char * __crypt_gensalt_rn (const char *prefix, unsigned long count, const char *input, int size, char *output, int output_size)
 
char * __crypt_gensalt_ra (const char *prefix, unsigned long count, const char *input, int size)
 
char * __crypt_gensalt (const char *prefix, unsigned long count, const char *input, int size)
 

Macro Definition Documentation

◆ __crypt_gensalt

#define __crypt_gensalt   crypt_gensalt

Definition at line 197 of file wrapper.c.

◆ __crypt_gensalt_ra

#define __crypt_gensalt_ra   crypt_gensalt_ra

Definition at line 196 of file wrapper.c.

◆ __crypt_gensalt_rn

#define __crypt_gensalt_rn   crypt_gensalt_rn

Definition at line 195 of file wrapper.c.

◆ __set_errno

#define __set_errno (   val)    errno = (val)

Definition at line 22 of file wrapper.c.

◆ CRYPT_GENSALT_OUTPUT_SIZE

#define CRYPT_GENSALT_OUTPUT_SIZE   (7 + 22 + 1)

Definition at line 38 of file wrapper.c.

◆ CRYPT_OUTPUT_SIZE

#define CRYPT_OUTPUT_SIZE   (7 + 22 + 31 + 1)

Definition at line 37 of file wrapper.c.

Function Documentation

◆ __crypt_gensalt()

char* __crypt_gensalt ( const char *  prefix,
unsigned long  count,
const char *  input,
int  size 
)

Definition at line 257 of file wrapper.c.

◆ __crypt_gensalt_ra()

char* __crypt_gensalt_ra ( const char *  prefix,
unsigned long  count,
const char *  input,
int  size 
)

Definition at line 236 of file wrapper.c.

◆ __crypt_gensalt_rn()

char* __crypt_gensalt_rn ( const char *  prefix,
unsigned long  count,
const char *  input,
int  size,
char *  output,
int  output_size 
)

Definition at line 200 of file wrapper.c.

◆ _crypt_data_alloc()

static int _crypt_data_alloc ( void **  data,
int *  size,
int  need 
)
static

Definition at line 60 of file wrapper.c.

◆ _crypt_retval_magic()

static char* _crypt_retval_magic ( char *  retval,
const char *  setting,
char *  output,
int  size 
)
static

Definition at line 87 of file wrapper.c.

◆ crypt()

char* crypt ( const char *  key,
const char *  setting 
)

Definition at line 186 of file wrapper.c.

◆ crypt_r()

char* crypt_r ( const char *  key,
const char *  setting,
void *  data 
)

Definition at line 179 of file wrapper.c.

◆ crypt_ra()

char* crypt_ra ( const char *  key,
const char *  setting,
void **  data,
int *  size 
)

Definition at line 171 of file wrapper.c.

◆ crypt_rn()

char* crypt_rn ( const char *  key,
const char *  setting,
void *  data,
int  size 
)

Definition at line 166 of file wrapper.c.