2022-12-03 08:46:52 +00:00
|
|
|
//
|
|
|
|
// Created by xajhuang on 2022/12/2.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef VCPE_PROJECT_PROTO_H
|
|
|
|
#define VCPE_PROJECT_PROTO_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2022-12-07 07:58:32 +00:00
|
|
|
#include <s2j/cJSON.h>
|
2022-12-03 08:46:52 +00:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
CRYPTO_NONE = 0,
|
|
|
|
CRYPTO_BASE64 = 1,
|
|
|
|
CRYPTO_AES128 = 2,
|
|
|
|
CRYPTO_3DES = 3,
|
|
|
|
CRYPTO_AES256 = 4,
|
|
|
|
} PROTO_CRYPTO_TYPE;
|
|
|
|
|
2022-12-05 10:14:07 +00:00
|
|
|
const char *proto_create_new(cJSON *pMsgCtx, int httpCode);
|
|
|
|
const char *proto_decode_context(const char *pString, unsigned int *pVer, unsigned long long *pTm);
|
2022-12-03 08:46:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif //VCPE_PROJECT_PROTO_H
|