diff options
Diffstat (limited to 'src/backend/commands/user.c')
-rw-r--r-- | src/backend/commands/user.c | 10 |
1 files changed, 5 insertions, 5 deletions
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)); |