middleware_agent/srcs/libs/include/proto.h

28 lines
657 B
C
Raw Normal View History

2024-12-09 08:28:32 +00:00
//
2024-12-17 02:07:29 +00:00
// Created by huangxin@chmi.chinamobile.com on 2022/12/2.
2024-12-09 08:28:32 +00:00
//
#ifndef PROJECT_PROTO_H
#define PROJECT_PROTO_H
#ifdef __cplusplus
extern "C" {
#endif
#include <s2j/cJSON.h>
typedef enum {
CRYPTO_NONE = 0,
CRYPTO_BASE64 = 1,
CRYPTO_AES128 = 2,
CRYPTO_3DES = 3,
CRYPTO_AES256 = 4,
} PROTO_CRYPTO_TYPE;
const char *proto_msg_validation(const char *pJsonStr, const char *msgJson, const char *errMsg);
const char *proto_create_new(cJSON *pMsgCtx, int httpCode);
const char *proto_decode_context(const char *pString, unsigned int *pVer, unsigned long long *pTm, int *pErrCode);
#ifdef __cplusplus
}
#endif
#endif //PROJECT_PROTO_H