|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.106 2003/07/2613:50:02 momjian Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.107 2003/07/2615:22:22 momjian Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -440,15 +440,16 @@ ClientAuthentication(Port *port)
|
440 | 440 | NI_NUMERICHOST);
|
441 | 441 |
|
442 | 442 | #ifdefUSE_SSL
|
443 |
| -#defineEREPORT_SSL_STATUS(port->ssl ? "on" : "off") |
444 |
| -#else |
445 |
| -#defineEREPORT_SSL_STATUS"off" |
446 |
| -#endif |
447 |
| - |
448 | 443 | ereport(FATAL,
|
449 | 444 | (errcode(ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION),
|
450 | 445 | errmsg("no pg_hba.conf entry for host \"%s\", user \"%s\", database \"%s\", SSL \"%s\"",
|
451 |
| -hostinfo,port->user_name,port->database_name,EREPORT_SSL_STATUS))); |
| 446 | +hostinfo,port->user_name,port->database_name,port->ssl ?"on" :"off"))); |
| 447 | +#else |
| 448 | +ereport(FATAL, |
| 449 | +(errcode(ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION), |
| 450 | +errmsg("no pg_hba.conf entry for host \"%s\", user \"%s\", database \"%s\"", |
| 451 | +hostinfo,port->user_name,port->database_name))); |
| 452 | +#endif |
452 | 453 | break;
|
453 | 454 | }
|
454 | 455 |
|
|