summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian2020-12-24 22:25:48 +0000
committerBruce Momjian2020-12-24 22:25:48 +0000
commitc3826f831e6e63e13a749fd3ab9fd7106707b549 (patch)
treea060a73607136f8bd58000ffc0b14410f136f986 /src/include
parent7519bd16d1a2a2007b3604f6740611c0b75a6cd0 (diff)
move hex_decode() to /common so it can be called from frontend
This allows removal of a copy of hex_decode() from ecpg, and will be used by the soon-to-be added pg_alterckey command. Backpatch-through: master
Diffstat (limited to 'src/include')
-rw-r--r--src/include/common/hex_decode.h16
-rw-r--r--src/include/utils/builtins.h1
2 files changed, 16 insertions, 1 deletions
diff --git a/src/include/common/hex_decode.h b/src/include/common/hex_decode.h
new file mode 100644
index 0000000000..1f99f069b2
--- /dev/null
+++ b/src/include/common/hex_decode.h
@@ -0,0 +1,16 @@
+/*
+ * hex_decode.h
+ * hex decoding
+ *
+ * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * src/include/common/hex_decode.h
+ */
+#ifndef COMMON_HEX_DECODE_H
+#define COMMON_HEX_DECODE_H
+
+extern uint64 hex_decode(const char *src, size_t len, char *dst);
+
+
+#endif /* COMMON_HEX_DECODE_H */
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h
index 4db5ad3f12..19271e0696 100644
--- a/src/include/utils/builtins.h
+++ b/src/include/utils/builtins.h
@@ -33,7 +33,6 @@ extern int errdomainconstraint(Oid datatypeOid, const char *conname);
/* encode.c */
extern uint64 hex_encode(const char *src, size_t len, char *dst);
-extern uint64 hex_decode(const char *src, size_t len, char *dst);
/* int.c */
extern int2vector *buildint2vector(const int16 *int2s, int n);