aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-auth-scram.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/libpq/fe-auth-scram.c')
-rw-r--r--src/interfaces/libpq/fe-auth-scram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-auth-scram.c b/src/interfaces/libpq/fe-auth-scram.c
index e5ad13daa50..6ee51d4e5e7 100644
--- a/src/interfaces/libpq/fe-auth-scram.c
+++ b/src/interfaces/libpq/fe-auth-scram.c
@@ -931,7 +931,7 @@ pg_fe_scram_build_secret(const char *password, const char **errstr)
rc = pg_saslprep(password, &prep_password);
if (rc == SASLPREP_OOM)
{
- *errstr = _("out of memory");
+ *errstr = libpq_gettext("out of memory");
return NULL;
}
if (rc == SASLPREP_SUCCESS)
@@ -940,7 +940,7 @@ pg_fe_scram_build_secret(const char *password, const char **errstr)
/* Generate a random salt */
if (!pg_strong_random(saltbuf, SCRAM_DEFAULT_SALT_LEN))
{
- *errstr = _("could not generate random salt");
+ *errstr = libpq_gettext("could not generate random salt");
if (prep_password)
free(prep_password);
return NULL;