2c8668479c
to be able to deliver the client component onto distributions targeting desktops without having to deliver the server components. This commit is for the resulting client project.
71 lines
2.7 KiB
C
71 lines
2.7 KiB
C
/***********************************************************************
|
|
*
|
|
* Copyright (C) 2006 Novell, Inc. All Rights Reserved.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; version 2.1
|
|
* of the License.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, Novell, Inc.
|
|
*
|
|
* To contact Novell about this file by physical or electronic mail,
|
|
* you may find current contact information at www.novell.com.
|
|
*
|
|
* Author: Juan Carlos Luciani <jluciani@novell.com>
|
|
*
|
|
***********************************************************************/
|
|
|
|
#ifndef _PROTO_H_
|
|
#define _PROTO_H_
|
|
|
|
//===[ Include files ]=====================================================
|
|
|
|
|
|
//===[ Type definitions ]==================================================
|
|
|
|
//
|
|
// XML Constants for the documents exchanged between the CASA Client
|
|
// and the CASA Server.
|
|
//
|
|
#define XML_DECLARATION "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"
|
|
#define AUTH_REQUEST_ELEMENT_NAME "auth_req"
|
|
#define AUTH_RESPONSE_ELEMENT_NAME "auth_resp"
|
|
#define GET_AUTH_POLICY_REQUEST_ELEMENT_NAME "get_auth_policy_req"
|
|
#define GET_AUTH_POLICY_RESPONSE_ELEMENT_NAME "get_auth_policy_resp"
|
|
#define GET_AUTH_TOKEN_REQUEST_ELEMENT_NAME "get_auth_tok_req"
|
|
#define GET_AUTH_TOKEN_RESPONSE_ELEMENT_NAME "get_auth_tok_resp"
|
|
#define AUTH_MECH_TOKEN_ELEMENT_NAME "auth_mech_token"
|
|
#define AUTH_TOKEN_ELEMENT_NAME "auth_token"
|
|
#define AUTH_POLICY_ELEMENT_NAME "auth_policy"
|
|
#define AUTH_SOURCE_ELEMENT_NAME "auth_source"
|
|
#define STATUS_ELEMENT_NAME "status"
|
|
#define SESSION_TOKEN_ELEMENT_NAME "session_token"
|
|
#define LIFETIME_ELEMENT_NAME "lifetime"
|
|
#define DESCRIPTION_ELEMENT_NAME "description"
|
|
#define SERVICE_ELEMENT_NAME "service"
|
|
#define HOST_ELEMENT_NAME "host"
|
|
#define REALM_ELEMENT_NAME "realm"
|
|
#define MECHANISM_ELEMENT_NAME "mechanism"
|
|
#define MECHANISM_INFO_ELEMENT_NAME "mechanism_info"
|
|
#define SIGNATURE_ELEMENT_NAME "signature"
|
|
#define TYPE_ELEMENT_NAME "type"
|
|
#define IDENTITY_TOKEN_ELEMENT_NAME "ident_token"
|
|
|
|
//
|
|
// HTTP Status Codes
|
|
//
|
|
#define HTTP_OK_STATUS_CODE "200"
|
|
#define HTTP_UNAUTHORIZED_STATUS_CODE "401"
|
|
#define HTTP_NOT_FOUND_STATUS_CODE "404"
|
|
#define HTTP_SERVER_ERROR_STATUS_CODE "500"
|
|
|
|
|
|
#endif // _PROTO_H_
|