Back to index

im-sdk  12.3.91
Functions | Variables
IMAuth.cpp File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <alloca.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "IMAuth.hh"
#include "IMLog.hh"
#include "iwrap.h"

Go to the source code of this file.

Functions

int compare_hostname (const char *h1, const char *h2)

Variables

const int init_auth_entry_slot_num = 10
const int addr_elements_maxnum = (32 / 8)
const int addr6_elements_maxnum = (128 / 16)
const char * domainname_symbol_name = "DOMAINNAME"
const char * hostname_symbol_name = "HOSTNAME"

Function Documentation

int compare_hostname ( const char *  h1,
const char *  h2 
)

Definition at line 73 of file IMAuth.cpp.

{
    while (*h1 && *h2) {
       if (tolower(*h1) != tolower(*h2)) return 0;
       h1++;
       h2++;
    }
    if ((*h1 == '\0') && (*h2 == '\0'))
       return 1;

    return 0;
}

Here is the caller graph for this function:


Variable Documentation

const int addr6_elements_maxnum = (128 / 16)

Definition at line 68 of file IMAuth.cpp.

const int addr_elements_maxnum = (32 / 8)

Definition at line 67 of file IMAuth.cpp.

const char* domainname_symbol_name = "DOMAINNAME"

Definition at line 69 of file IMAuth.cpp.

const char* hostname_symbol_name = "HOSTNAME"

Definition at line 70 of file IMAuth.cpp.

const int init_auth_entry_slot_num = 10

Definition at line 66 of file IMAuth.cpp.