2020-09-11 07:49:16 -05:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 FreeIPA Contributors see COPYING for license
|
|
|
|
*/
|
|
|
|
|
2020-09-18 06:11:28 -05:00
|
|
|
/* FQDN host name length including trailing NULL byte
|
2020-09-11 07:49:16 -05:00
|
|
|
*
|
2020-09-18 06:11:28 -05:00
|
|
|
* This may be longer than HOST_NAME_MAX. The hostname (effectively uname()'s
|
|
|
|
* node name) is limited to 64 characters on Linux. ipa_gethostfqdn() returns
|
|
|
|
* a FQDN from NSS which can be up to 255 octets including NULL byte.
|
|
|
|
* Effectively the FQDN is 253 ASCII characters.
|
2020-09-11 07:49:16 -05:00
|
|
|
*/
|
2020-09-18 06:11:28 -05:00
|
|
|
#define IPA_HOST_FQDN_LEN 255
|
2020-09-11 07:49:16 -05:00
|
|
|
|
2020-10-22 09:06:15 -05:00
|
|
|
/* Get the host FQDN.
|
|
|
|
*
|
|
|
|
* Returns a null-terminated static char[]. The string length is
|
|
|
|
* at most IPA_HOST_FQDN_LEN - 1. The caller MUST NOT modify this
|
|
|
|
* buffer. If modification could occur, the caller MUST copy
|
|
|
|
* the string.
|
|
|
|
*/
|
2020-09-18 06:11:28 -05:00
|
|
|
const char*
|
|
|
|
ipa_gethostfqdn(void);
|