/*
 *  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
 *
 * Edit History
 * Date        Initials                 Change Description
 */

#ifndef _INIT_H
#define _INIT_H

/* These defines specify the file system volume (mounted by the    */
/* BSP) and root directory used by the FTP server                  */
#define FS_VOLUME1                  "FLASH0"
#define FS_VOLUME1_DIR              FS_VOLUME1 "/"

/* These defines specify the FTP server superuser username and     */
/* password for downloading SSL certificate data                   */
#define FTP_SUPERUSER_USERNAME      "user"
#define FTP_SUPERUSER_PASSWORD      "password"

/* These defines specify the HTTP server username and password for */
/* accessing the HTTP servers web pages                            */
#define HTTP_USERNAME               "digi"
#define HTTP_PASSWORD               "sysadm"

/* These defines specify the file name and full path name of the   */
/* CA certificate file. We need this to verify the client if client */
/* sends the certificate                                            */
#define CA_CERTICATE_FILE               "cacert.pem"
#define CA_CERTICATE_FILEPATH       FS_VOLUME1_DIR CA_CERTICATE_FILE

/* These defines specify the file name and full path name of the   */
/* certificate revocation list.                                     */
#define CERTICATE_REV_LIST_FILE         "nassl.crl"
#define CERTICATE_REV_LIST_FILEPATH     FS_VOLUME1_DIR CERTICATE_REV_LIST_FILE

/* These defines specify the file name and full path name of the    */
/* server certificate file. Server sends this to client after       */
/* Server Hello                                                     */
#define SVR_CERTICATE_FILE              "svrcert.pem"
#define SVR_CERTICATE_FILEPATH          FS_VOLUME1_DIR SVR_CERTICATE_FILE

/* These defines specify the file name and full path name of the    */
/* client certificate file. Server can add this to peer whitelist   */
#define CLNT_CERTICATE_FILE             "clntcert.pem"
#define CLNT_CERTICATE_FILEPATH         FS_VOLUME1_DIR CLNT_CERTICATE_FILE

/* These defines specify the file name and full path name of the    */
/* client certificate file. Server can add this to peer revocation  */
/* list                                                             */
#define CLNT_REV_CERTICATE_FILE         "clntrevcert.pem"
#define CLNT_REV_CERTICATE_FILEPATH     FS_VOLUME1_DIR CLNT_REV_CERTICATE_FILE

/* These defines specify the file name and full path name of the    */
/* server private key. Server requires this to decrypt client's     */
/* random key                                                       */
#define SVR_KEY_FILE                    "svrkey.pem"
#define SVR_KEY_FILEPATH                FS_VOLUME1_DIR SVR_KEY_FILE

/* Server's pass phrase */
#define SVR_KEY_PASSWORD                "Digi sslsvr key"

/* These defines specify the maxium size (in bytes) of the buffers */
/* to store the CA certificate and key data                        */
#define MAX_SSL_CERTIFICATE_LEN         8 * 1024
#define MAX_SSL_KEY_LEN                 2 * 1024

extern int ftp_server_app_init(void);

#endif /*  INIT_H */
