/*
 *  Copyright (c) 1996-2007 Digi International Inc., All Rights Reserved
 *
 *  This software contains proprietary and confidential information of Digi
 *  International Inc.  By accepting transfer of this copy, Recipient agrees
 *  to retain this software in confidence, to prevent disclosure to others,
 *  and to make no use of this software other than that for which it was
 *  delivered.  This is an unpublished copyrighted work of Digi International
 *  Inc.  Except as permitted by federal law, 17 USC 117, copying is strictly
 *  prohibited.
 *
 *  Restricted Rights Legend
 *
 *  Use, duplication, or disclosure by the Government is subject to
 *  restrictions set forth in sub-paragraph (c)(1)(ii) of The Rights in
 *  Technical Data and Computer Software clause at DFARS 252.227-7031 or
 *  subparagraphs (c)(1) and (2) of the Commercial Computer Software -
 *  Restricted Rights at 48 CFR 52.227-19, as applicable.
 *
 *  Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
 *
 * Description.
 * =======================================================================
 * Contains the security realms for this applications.
 *                                                                        
 *                                                                        
 * Edit Date/Ver   Edit Description
 * ==============  ===================================================
 * SW  09/19/01    added http_security.h
 *
 */


#include "AsExtern.h"
#include <http_awsapi.h>
#include <http_security.h>


/*
    The RpHSInitSecurityTable routine is called once at start up to
	allow setting of security databases. The serverdata is passed and
	can be used to perform other initialization as needed.
*/
void RpHSInitSecurityTable(void *serverdata)
{
    NAHttpSetRealmSecurity (0, "NA-HTTP AWS Realm",
#ifdef THIS_APPLICATION_USES_DIGEST_AUTHENTICATION
        /*  Set realm 1 to Single Access with MD5 Digest Authentication */
        NA_HTTP_SECURITY_SINGLE_ACCESS, NA_HTTP_SECURITY_DIGEST_AUTHENTICATION);
#else
        /*  Set realm 1 to Multiple Access with Basic Authentication    */
        NA_HTTP_SECURITY_MULTIPLE_ACCESS, NA_HTTP_SECURITY_BASIC_AUTHENTICATION);
#endif
}


