xauth_rmconf
xauth_rmconf_used(struct xauth_rmconf **xauth_rmconf)
if (*xauth_rmconf == NULL) {
*xauth_rmconf = racoon_malloc(sizeof(**xauth_rmconf));
if (*xauth_rmconf == NULL) {
(*xauth_rmconf)->login = NULL;
(*xauth_rmconf)->pass = NULL;
(*xauth_rmconf)->state = 0;
xauth_rmconf_delete(struct xauth_rmconf **xauth_rmconf)
if (*xauth_rmconf != NULL) {
if ((*xauth_rmconf)->login != NULL)
vfree((*xauth_rmconf)->login);
if ((*xauth_rmconf)->pass != NULL)
vfree((*xauth_rmconf)->pass);
racoon_free(*xauth_rmconf);
*xauth_rmconf = NULL;
struct xauth_rmconf *
xauth_rmconf_dup(struct xauth_rmconf *xauth_rmconf)
struct xauth_rmconf *new;
if (xauth_rmconf != NULL) {
memcpy(new, xauth_rmconf, sizeof(*new));
if (xauth_rmconf->login != NULL) {
new->login = vdup(xauth_rmconf->login);
if (xauth_rmconf->pass != NULL) {
new->pass = vdup(xauth_rmconf->pass);
int xauth_rmconf_used(struct xauth_rmconf **);
void xauth_rmconf_delete(struct xauth_rmconf **);
struct xauth_rmconf * xauth_rmconf_dup(struct xauth_rmconf *);
struct xauth_rmconf *xauth;