From d330f1554d3a99304e1965e3acf63c10ec34ce20 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 17 Oct 2005 16:24:20 +0000 Subject: Clean up libpq's pollution of application namespace by renaming the exported routines of ip.c, md5.c, and fe-auth.c to begin with 'pg_'. Also get rid of the vestigial fe_setauthsvc/fe_getauthsvc routines altogether. --- src/backend/commands/user.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/backend/commands/user.c') diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 706e85dea5b..3a2eb01af70 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.161 2005/10/15 02:49:16 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.162 2005/10/17 16:24:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -313,8 +313,8 @@ CreateRole(CreateRoleStmt *stmt) DirectFunctionCall1(textin, CStringGetDatum(password)); else { - if (!EncryptMD5(password, stmt->role, strlen(stmt->role), - encrypted_password)) + if (!pg_md5_encrypt(password, stmt->role, strlen(stmt->role), + encrypted_password)) elog(ERROR, "password encryption failed"); new_record[Anum_pg_authid_rolpassword - 1] = DirectFunctionCall1(textin, CStringGetDatum(encrypted_password)); @@ -642,8 +642,8 @@ AlterRole(AlterRoleStmt *stmt) DirectFunctionCall1(textin, CStringGetDatum(password)); else { - if (!EncryptMD5(password, stmt->role, strlen(stmt->role), - encrypted_password)) + if (!pg_md5_encrypt(password, stmt->role, strlen(stmt->role), + encrypted_password)) elog(ERROR, "password encryption failed"); new_record[Anum_pg_authid_rolpassword - 1] = DirectFunctionCall1(textin, CStringGetDatum(encrypted_password)); -- cgit v1.2.3