netatalk  4.6.1
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
test_srp_lookup.c File Reference
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "../../etc/uams/uams_srp.c"

Macros

#define fstat   test_fstat
 

Functions

const char * tmpdir (void)
 Find a suitable temporary directory for Netatalk.
 
static int test_fstat (int fd, struct stat *st)
 
int uam_register (const int type, const char *path, const char *name,...)
 
void uam_unregister (const int type, const char *name)
 
struct passwd * uam_getname (void *private, char *name, const int len)
 helper functions for plugin uams
 
int uam_checkuser (void *private, const struct passwd *pwd)
 
int uam_afpserver_option (void *private, const int what, void *option, size_t *len)
 
int main (void)
 

Variables

static struct stat verifier_directory
 
static struct stat verifier_file
 

Macro Definition Documentation

◆ fstat

#define fstat   test_fstat

Function Documentation

◆ main()

int main ( void  )

◆ test_fstat()

static int test_fstat ( int  fd,
struct stat *  st 
)
static

◆ tmpdir()

const char * tmpdir ( void  )
extern

Find a suitable temporary directory for Netatalk.

Creates a subdirectory for current gid if it doesn't exist. The result should be copied immediately as it may be overwritten by a subsequent call.

◆ uam_afpserver_option()

int uam_afpserver_option ( void *  private,
const int  what,
void *  option,
size_t *  len 
)

Crap to support uams which call this afpd function

◆ uam_checkuser()

int uam_checkuser ( void *  private,
const struct passwd *  pwd 
)

◆ uam_getname()

struct passwd * uam_getname ( void *  private,
char *  name,
const int  len 
)

helper functions for plugin uams

Parameters
privatepointer to AFPObj
nameuser name
lensize of name buffer.

◆ uam_register()

int uam_register ( const int  type,
const char *  path,
const char *  name,
  ... 
)

set up stuff for this uam.

◆ uam_unregister()

void uam_unregister ( const int  type,
const char *  name 
)

Variable Documentation

◆ verifier_directory

struct stat verifier_directory
static

◆ verifier_file

struct stat verifier_file
static