#ifndef FM_GLOBAL_H
#define FM_GLOBAL_H

#define NUM_SIZE					60
#define KEY_SIZE					24
#define MAX_LOG_LINE_NUM			1024
#define MAX_RSA_KEY_LEN				2048
#define MAX_BUF_LEN					25600
#define MAX_JSON_KEY_LEN			128
#define MAX_SIGN_LEN				256
#define CFG_FILE_NAME				"fmclient.cfg"
#define RBG_FILE_NAME				"fmclient.rbk"

#define DES3_KEY					"ABCD@#9876DFSAAWKLDEOPDD"
//#define DES3_KEY					"DDDDEEEE45LPODDCXZZLKDDO"
#define DES3_KEY_PRT				"1JG23G12Y12V123G123F1DI1"
#define CRET_FILE_NAME				"client.p12"
#define JSON_KEY_ONLY				"partnerOrderId"
#define JSON_KEY_MAC				"mac"
#define JSON_KEY_SIGN				"sign"
#define JSON_KEY_FMTEST		        "test"
#define JSON_KEY_STATUS		        "statusCode"
#define JSON_KEY_SERPBLICKEY		"serverPublicKey"
#define JSON_KEY_CLIENTPRIKEY		"clientPrivateKey"
#define JSON_KEY_REQTYPE            "reqType"

#define VALUE_URL                   "all/url"
#define VALUE_URL_CRET              "all/creturl"
#define VALUE_HOST                  "all/host"
#define VALUE_TIMEOUT               "all/timeout"

#define CFG_KEY						"template"
#define TMP_JSON					"json.ini"
#define DB_ORDER					"rollback.db"
#define DB_TABLE_NAME				"orderlist"
#define USERCONFIG_NAME             "sbkpay.ini"
#define MAX_ORDERID_LEN				200

#define SQL_KEY_ORDERID             "orderid"
#define SQL_KET_CONTENT             "content"

#endif
