Authentication Results; Noc.h Contents - Colubris Networks CN3000 Administrator's Manual

Table of Contents

Advertisement

Chapter 17 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Experimenting with NOC authentication - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chapter 17

Authentication results

The file noc.h contains the definitions used by the CN3000 when building the
authentication results that are sent in reply to a customer authentication request.

noc.h contents

/******************************************************************************
* noc.h - Definition of messages and constants used for NOC authentication
*
* Copyright (c) Colubris Networks Inc. 2002
*
* This code is provided "as is", without any warranty of any kind, either
* expressed or implied, including but not limited to, any implied warranty
* of merchantability or fitness for any purpose.
* In no event will Colubris Networks Inc. or any party who distributed
* the code be liable for damages or for any claim(s) by any other party,
* including but not limited to, any lost profits, lost data or data rendered
* inaccurate, losses sustained by third parties, or any other special,
* incidental or consequential damages arising out of the use or inability to
* use the program, even if the possibility of such damages has been advised
* against.
* The entire risk as to the quality, the performance, and the fitness of the
* program for any particular purpose lies with the party using the code.
*
* This file should be usable on both win32 and Unix platforms.
*
******************************************************************************/
#ifndef _NOC_H_
#define _NOC_H_
// Codes that will be returned by the authentication function
#define
ERR_NOC_AUTHENTICATION_BASE
#define
ERR_NOC_AUTHENTICATION_SUCCESS
#define
ERR_NOC_AUTHENTICATION_FAILURE
#define
ERR_NOC_AUTHENTICATION_DISABLED
#define
ERR_NOC_AUTHENTICATION_LOGGED_IN
// Messages that will be sent to the client in reply to an authentication
// request.
#ifdef _WIN32
//
Using UNICODE constants
#define
NOC_HTML_BEGIN
#define
NOC_HTML_END
#define
NOC_INFO_STATUS
#define
NOC_INFO_WELCOME_URL
#define
NOC_INFO_LOGIN_ERR_URL
#define
NOC_INFO_ERR_MESSAGE
#define
NOC_INFO_INT_ERR_MESSAGE
#define
NOC_INFO_SESSION_URL
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 410 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
0x1000
(ERR_NOC_AUTHENTICATION_BASE + 1)
(ERR_NOC_AUTHENTICATION_BASE + 2)
(ERR_NOC_AUTHENTICATION_BASE + 3)
(ERR_NOC_AUTHENTICATION_BASE + 4)
L"<html>"
L"</html>"
L"status"
L"welcome-url"
L"login-err-url"
L"external-err-msg"
L"local-err-msg"
L"session-url"

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents