/*
SSSD
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Copyright (C) 2013 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DP_DYNDNS_H_
#define DP_DYNDNS_H_
/* dynamic dns helpers */
struct sss_iface_addr;
enum be_nsupdate_auth {
};
struct be_nsupdate_ctx {
bool timer_in_progress;
void *timer_pvt;
};
enum dp_dyndns_opts {
};
errno_t be_nsupdate_check(void);
struct be_nsupdate_ctx **_ctx);
struct tevent_context *ev,
void *timer_pvt);
struct be_nsupdate_ctx *ctx);
struct sss_iface_addr **_addrlist);
struct sss_iface_addr *ifaddr_list,
char ***_straddrs);
const char *servername,
char **_update_msg);
const char *servername, const char *hostname,
const unsigned int ttl,
struct sockaddr_storage *address,
bool delete,
char **_update_msg);
/* Returns:
* * ERR_OK - on success
* * ERR_DYNDNS_FAILED - if nsupdate fails for any reason
* * ERR_DYNDNS_TIMEOUT - if the update times out. child_status
* is ETIMEDOUT in this case
*/
struct tevent_context *ev,
enum be_nsupdate_auth auth_type,
char *nsupdate_msg,
bool force_tcp);
struct tevent_context *ev,
struct be_resolv_ctx *be_res,
const char *hostname);
struct sss_iface_addr **_addrlist,
void
struct sss_iface_addr *list2);
struct sss_iface_addr **_iface_addrs);
struct sss_iface_addr *
struct sockaddr_storage*
#endif /* DP_DYNDNS_H_ */