Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
saslprep.h31 linesDownload Raw Back to common
1/*-------------------------------------------------------------------------2 *3 * saslprep.h4 *	  SASLprep normalization, for SCRAM authentication5 *6 * These definitions are used by both frontend and backend code.7 *8 * Copyright (c) 2017-2023, PostgreSQL Global Development Group9 *10 * src/include/common/saslprep.h11 *12 *-------------------------------------------------------------------------13 */14#ifndef SASLPREP_H15#define SASLPREP_H16 17/*18 * Return codes for pg_saslprep() function.19 */20typedef enum21{22	SASLPREP_SUCCESS = 0,23	SASLPREP_OOM = -1,			/* out of memory (only in frontend) */24	SASLPREP_INVALID_UTF8 = -2, /* input is not a valid UTF-8 string */25	SASLPREP_PROHIBITED = -3	/* output would contain prohibited characters */26} pg_saslprep_rc;27 28extern pg_saslprep_rc pg_saslprep(const char *input, char **output);29 30#endif							/* SASLPREP_H */31 
codekingpro/portable-devtools · Team Ai