| 534 | */ |
| 535 | PG_FUNCTION_INFO_V1(sepgsql_getcon); |
| 536 | Datum |
| 537 | sepgsql_getcon(PG_FUNCTION_ARGS) |
| 538 | { |
| 539 | char *client_label; |
| 540 | |
| 541 | if (!sepgsql_is_enabled()) |
| 542 | PG_RETURN_NULL(); |
| 543 | |
| 544 | client_label = sepgsql_get_client_label(); |
| 545 | |
| 546 | PG_RETURN_TEXT_P(cstring_to_text(client_label)); |
| 547 | } |
| 548 | |
| 549 | /* |
| 550 | * BOOL sepgsql_setcon(TEXT) |
nothing calls this directly
no test coverage detected