KNP_MAJOR_VERSION = 4
KNP_MINOR_VERSION = 1
KNP_MAGIC_NUMBER = (0x8724 << 16)
KNP_CONTACT_CAT = KNP_MAGIC_NUMBER + (1 << 8)
KNP_CONTACT_KPS = KNP_CONTACT_CAT + 1
KNP_CONTACT_OPS = KNP_CONTACT_CAT + 2
KNP_CONTACT_OUS = KNP_CONTACT_CAT + 3
KNP_CONTACT_OTS = KNP_CONTACT_CAT + 4
KNP_CONTACT_IKS = KNP_CONTACT_CAT + 5
KNP_CONTACT_EKS = KNP_CONTACT_CAT + 6
KNP_CMD_CAT = KNP_MAGIC_NUMBER + (2 << 8)
KNP_RES_CAT = KNP_MAGIC_NUMBER + (3 << 8)
KNP_CMD_LOGIN_ANON = KNP_CMD_CAT + 10
KNP_CMD_LOGIN_USER = KNP_CMD_CAT + 11
KNP_CMD_LOGIN_OTUT = KNP_CMD_CAT + 12
KNP_RES_LOGIN_OK = KNP_RES_CAT + 10
KNP_CMD_GET_USER_INFO = KNP_CMD_CAT + 20
KNP_RES_GET_USER_INFO = KNP_RES_CAT + 20
KNP_CMD_GET_SIGN_KEY = KNP_CMD_CAT + 30
KNP_RES_GET_SIGN_KEY = KNP_RES_CAT + 30
KNP_CMD_GET_ENC_KEY_BY_ID = KNP_CMD_CAT + 31
KNP_RES_GET_ENC_KEY_BY_ID = KNP_RES_CAT + 31
KNP_CMD_GET_ENC_KEY = KNP_CMD_CAT + 40
KNP_RES_GET_ENC_KEY = KNP_RES_CAT + 40
KNP_CMD_PACKAGE_MAIL = KNP_CMD_CAT + 50
KNP_CMD_PACKAGE_LIC = KNP_CMD_CAT + 51
KNP_RES_PACKAGE_MAIL = KNP_RES_CAT + 50
KNP_RES_PACKAGE_FAIL = KNP_RES_CAT + 51
KNP_CMD_GET_OTUT_TICKET = KNP_CMD_CAT + 60
KNP_RES_GET_OTUT_TICKET = KNP_RES_CAT + 60
KNP_CMD_VALIDATE_OTUT = KNP_CMD_CAT + 61
KNP_RES_VALIDATE_OTUT = KNP_RES_CAT + 61
KNP_CMD_GET_OTUT_STRING = KNP_CMD_CAT + 70
KNP_RES_GET_OTUT_STRING = KNP_RES_CAT + 70
KNP_CMD_DEC_SYM_KEY = KNP_CMD_CAT + 80
KNP_RES_DEC_KEY_HALF = KNP_RES_CAT + 80
KNP_RES_DEC_KEY_FULL = KNP_RES_CAT + 81
KNP_RES_DEC_KEY_POD_ERROR = KNP_RES_CAT + 82
KNP_RES_DEC_KEY_BAD_PWD = KNP_RES_CAT + 83
KNP_RES_DEC_KEY_NOT_AUTH = KNP_RES_CAT + 84
KNP_CMD_GET_KWS_TICKET = KNP_CMD_CAT + 86
KNP_RES_GET_KWS_TICKET = KNP_RES_CAT + 86
KNP_CMD_CONVERT_EXCHANGE = KNP_CMD_CAT + 87
KNP_RES_CONVERT_EXCHANGE = KNP_RES_CAT + 87
KNP_RES_FAIL = KNP_RES_CAT + 90
KNP_RES_UPGRADE_PLUGIN = KNP_RES_CAT + 91
KNP_RES_UPGRADE_KPS = KNP_RES_CAT + 92
KNP_MAIL_PART_CAT = KNP_MAGIC_NUMBER + (4 << 8)
KNP_MAIL_PART_IMPLICIT = KNP_MAIL_PART_CAT + 1
KNP_MAIL_PART_EXPLICIT = KNP_MAIL_PART_CAT + 2
KNP_MAIL_PART_UNKNOWN = KNP_MAIL_PART_CAT + 3
KNP_MAIL_PART_TEXT_BODY = KNP_MAIL_PART_CAT + 4
KNP_MAIL_PART_HTML_BODY = KNP_MAIL_PART_CAT + 5
KNP_LANG_EN = 0
KNP_LANG_FR = 1
KNP_UINT32 = 1
KNP_UINT64 = 2
KNP_STR = 3
KNP_PKG_ENC_CAT = KNP_MAGIC_NUMBER + (5 << 8)
KNP_PKG_ENC_KEY = KNP_PKG_ENC_CAT + 1
KNP_PKG_ENC_PWD = KNP_PKG_ENC_CAT + 2
KNP_PKG_TYPE_ENC = 1
KNP_PKG_TYPE_POD = 2
KNP_PKG_BODY_CAT = KNP_MAGIC_NUMBER + (6 << 8)
KNP_PKG_BODY_TEXT = KNP_PKG_BODY_CAT + 1
KNP_PKG_BODY_HTML = KNP_PKG_BODY_CAT + 2
KNP_PKG_BODY_BOTH = KNP_PKG_BODY_CAT + 3
KNP_ENC_BODY_MAGIC = 0x8945869276912348
