#include <arpa/inet.h>#include <pwd.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include <unistd.h>#include <gcrypt.h>#include <atalk/afp.h>#include <atalk/uam.h>#include "afpclient.h"#include "afptest_uam.h"Data Structures | |
| struct | afptest_uam_server |
| struct | afp_rx_buffer |
Macros | |
| #define | AFP_MAX_USERNAME_LEN 127 |
| #define | kFPAuthContinue AFPERR_AUTHCONT |
Functions | |
| static unsigned char | copy_to_pascal (char *dest, const char *src) |
| static void | afptest_copy_string (char *dest, size_t size, const char *src) |
| static uint16_t | afptest_read_be16 (const char *src) |
| static int | afptest_uam_copy_reply (struct afptest_uam_server *server, struct afp_rx_buffer *reply) |
| static int | afptest_uam_login_initial (struct afptest_uam_server *server, const char *uam, char *auth_info, unsigned int auth_info_len, struct afp_rx_buffer *reply) |
| static int | afptest_uam_login_cont (struct afptest_uam_server *server, unsigned short id, char *auth_info, unsigned int auth_info_len, struct afp_rx_buffer *reply) |
| static int | dhx_login (struct afptest_uam_server *server, const char *username, const char *passwd) |
| static int | dhx2_login (struct afptest_uam_server *server, const char *username, const char *passwd) |
| int | afptest_uam_uses_legacy_login (const char *uam) |
| unsigned int | afptest_uam_login (CONN *conn, const char *vers, const char *uam, const char *username, const char *password) |
Variables | |
| static const unsigned char | dhx_c2siv [] |
| static const unsigned char | dhx_s2civ [] |
| static const unsigned char | p_binary [] |
| static const unsigned char | g_binary [] = { 0x07 } |
| #define AFP_MAX_USERNAME_LEN 127 |
| #define kFPAuthContinue AFPERR_AUTHCONT |
|
static |
|
static |
|
static |
| unsigned int afptest_uam_login | ( | CONN * | conn, |
| const char * | vers, | ||
| const char * | uam, | ||
| const char * | username, | ||
| const char * | password ) |
|
static |
|
static |
| int afptest_uam_uses_legacy_login | ( | const char * | uam | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |