"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nsd-control.c" between
nsd-4.3.5.tar.gz and nsd-4.3.6.tar.gz

About: NSD is an authoritative only, high performance, simple name server daemon.

nsd-control.c  (nsd-4.3.5):nsd-control.c  (nsd-4.3.6)
skipping to change at line 63 skipping to change at line 63
#ifdef HAVE_OPENSSL_ERR_H #ifdef HAVE_OPENSSL_ERR_H
#include <openssl/err.h> #include <openssl/err.h>
#endif #endif
#ifdef HAVE_OPENSSL_RAND_H #ifdef HAVE_OPENSSL_RAND_H
#include <openssl/rand.h> #include <openssl/rand.h>
#endif #endif
#ifdef HAVE_SYS_UN_H #ifdef HAVE_SYS_UN_H
#include <sys/un.h> #include <sys/un.h>
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX
#endif
#include "util.h" #include "util.h"
#include "tsig.h" #include "tsig.h"
#include "options.h" #include "options.h"
static void usage(void) ATTR_NORETURN; static void usage(void) ATTR_NORETURN;
static void ssl_err(const char* s) ATTR_NORETURN; static void ssl_err(const char* s) ATTR_NORETURN;
static void ssl_path_err(const char* s, const char *path) ATTR_NORETURN; static void ssl_path_err(const char* s, const char *path) ATTR_NORETURN;
/** timeout to wait for connection over stream, in msec */ /** timeout to wait for connection over stream, in msec */
#define NSD_CONTROL_CONNECT_TIMEOUT 5000 #define NSD_CONTROL_CONNECT_TIMEOUT 5000
skipping to change at line 495 skipping to change at line 498
fprintf(stderr, "out of memory\n"); fprintf(stderr, "out of memory\n");
exit(1); exit(1);
} }
tsig_init(opt->region); tsig_init(opt->region);
if(!parse_options_file(opt, cfgfile, NULL, NULL)) { if(!parse_options_file(opt, cfgfile, NULL, NULL)) {
fprintf(stderr, "could not read config file\n"); fprintf(stderr, "could not read config file\n");
exit(1); exit(1);
} }
if(!opt->control_enable) if(!opt->control_enable)
fprintf(stderr, "warning: control-enable is 'no' in the config fi le.\n"); fprintf(stderr, "warning: control-enable is 'no' in the config fi le.\n");
resolve_interface_names(opt);
ctx = setup_ctx(opt); ctx = setup_ctx(opt);
/* contact server */ /* contact server */
fd = contact_server(svr, opt, argc>0&&strcmp(argv[0],"status")==0); fd = contact_server(svr, opt, argc>0&&strcmp(argv[0],"status")==0);
ssl = setup_ssl(ctx, fd); ssl = setup_ssl(ctx, fd);
/* send command */ /* send command */
ret = go_cmd(ssl, fd, argc, argv); ret = go_cmd(ssl, fd, argc, argv);
if(ssl) SSL_free(ssl); if(ssl) SSL_free(ssl);
 End of changes. 2 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)