summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/pgcrypto/pgcrypto.sql.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/pgcrypto/pgcrypto.sql.in b/contrib/pgcrypto/pgcrypto.sql.in
index bb5b4c167f0..3efb2ed9693 100644
--- a/contrib/pgcrypto/pgcrypto.sql.in
+++ b/contrib/pgcrypto/pgcrypto.sql.in
@@ -1,6 +1,8 @@
+-- drop function digest(text, text);
-- drop function digest(bytea, text);
-- drop function digest_exists(text);
+-- drop function hmac(text, text, text);
-- drop function hmac(bytea, bytea, text);
-- drop function hmac_exists(text);
-- drop function crypt(text, text);
@@ -14,6 +16,10 @@
+CREATE FUNCTION digest(text, text) RETURNS bytea
+ AS 'MODULE_PATHNAME',
+ 'pg_digest' LANGUAGE 'C';
+
CREATE FUNCTION digest(bytea, text) RETURNS bytea
AS 'MODULE_PATHNAME',
'pg_digest' LANGUAGE 'C';
@@ -22,6 +28,10 @@ CREATE FUNCTION digest_exists(text) RETURNS bool
AS 'MODULE_PATHNAME',
'pg_digest_exists' LANGUAGE 'C';
+CREATE FUNCTION hmac(text, text, text) RETURNS bytea
+ AS 'MODULE_PATHNAME',
+ 'pg_hmac' LANGUAGE 'C';
+
CREATE FUNCTION hmac(bytea, bytea, text) RETURNS bytea
AS 'MODULE_PATHNAME',
'pg_hmac' LANGUAGE 'C';