!1009 加密user mapping中的password选项

Merge pull request !1009 from TotaJ/feature/encode_fdw
This commit is contained in:
opengauss-bot
2021-06-07 09:24:33 +08:00
committed by Gitee
9 changed files with 155 additions and 90 deletions

View File

@ -1513,9 +1513,12 @@ extern Datum text_timestamp(PG_FUNCTION_ARGS);
extern void encryptOBS(char* srcplaintext, char destciphertext[], uint32 destcipherlength);
extern void decryptOBS(
const char* srcciphertext, char destplaintext[], uint32 destplainlength, const char* obskey = NULL);
extern void encryptECString(char* src_plain_text, char* dest_cipher_text, uint32 dest_cipher_length);
extern void decryptECString(const char* src_cipher_text, char* dest_plain_text, uint32 dest_plain_length);
extern void encryptECString(char* src_plain_text, char* dest_cipher_text, uint32 dest_cipher_length, bool isDataSource);
extern bool decryptECString(const char* src_cipher_text, char* dest_plain_text, uint32 dest_plain_length, bool isDataSource = true);
extern bool IsECEncryptedString(const char* src_cipher_text);
extern void EncryptGenericOptions(List* options, const char** sensitiveOptionsArray, int arrayLength, bool isDataSource);
#define EC_CIPHER_TEXT_LENGTH 1024
/* fencedudf.cpp */
extern Datum fenced_udf_process(PG_FUNCTION_ARGS);