⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xsupconfig_parse_trusted_servers.c

📁 linux 下通过802.1认证的安装包
💻 C
字号:
/**
 * Licensed under a dual GPL/BSD license.  (See LICENSE file for more info.)
 *
 * \file xsupconfig_parse_trusted_servers.c
 *
 * \author chris@open1x.org
 *
 * $Id: xsupconfig_parse_trusted_servers.c,v 1.1.2.6 2007/07/21 11:42:50 cgrohmann Exp $
 * $Date: 2007/07/21 11:42:50 $
 **/

#include <stdio.h>

#ifndef WINDOWS
#include <stdint.h>
#endif

#include <libxml/parser.h>
#include <libxml/tree.h>
#include <string.h>

#include "xsupconfig_structs.h"
#include "../../src/xsup_common.h"
#include "xsupconfig.h"
#include "xsupconfig_vars.h"
#include "xsupconfig_structs.h"
#include "xsupconfig_parse.h"
#include "xsupconfig_parse_trusted_servers.h"
#include "xsupconfig_parse_trusted_server.h"
#include "xsupconfig_common.h"
#include "xsupconfig.h"

void *xsupconfig_parse_trusted_servers(void **attr, xmlNodePtr node)
{
#ifdef PARSE_DEBUG
  printf("Building trusted servers config.\n");
#endif

  conf_trusted_servers = malloc(sizeof(struct config_trusted_servers));
  if (conf_trusted_servers == NULL)
    {
      printf("Couldn't allocate memory to store trusted servers configuration!"
	     "  (Line %ld)\n", xsupconfig_parse_get_line_num());
      exit(1);
    }

  memset(conf_trusted_servers, 0x00, sizeof(struct config_trusted_servers));

  return conf_trusted_servers;
}


parser trusted_servers[] = {
  {"Trusted_Server", (struct conf_parse_struct *)&trusted_server, TRUE, 
	xsupconfig_parse_trusted_server},
  
  {NULL, NULL, FALSE, NULL}};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -