/* Copyright 2001,2002,2003 Roger Dingledine, Matej Pfajfar. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char aes_c_id[] = "$Id$";
/**
* \file aes.c
#ifndef __AES_H
#define __AES_H
+#define AES_H_ID "$Id$"
/**
* \file aes.h
/* Copyright 2003-2004 Roger Dingledine; Copyright 2004 Nick Mathewson */
/* See LICENSE for licensing information */
/* $Id$ */
+const char compat_c_id[] = "$Id$";
/* This is required on rh7 to make strptime not complain.
*/
#ifndef __COMPAT_H
#define __COMPAT_H
+#define COMPAT_H_ID "$Id$"
#include "orconfig.h"
#include "torint.h"
/* Copyright 2003-2004 Roger Dingledine; Copyright 2004 Nick Mathewson */
/* See LICENSE for licensing information */
/* $Id$ */
+const char container_c_id[] = "$Id$";
#include "compat.h"
#include "util.h"
#ifndef __CONTAINER_H
#define __CONTAINER_H
+#define CONTAINER_H_ID "$Id$"
/** Generic resizeable array. */
typedef struct smartlist_t smartlist_t;
/* Copyright 2001,2002,2003 Roger Dingledine, Matej Pfajfar. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char crypto_c_id[] = "$Id$";
/**
* \file crypto.c
#ifndef __CRYPTO_H
#define __CRYPTO_H
+#define CRYPTO_H_ID "$Id$"
#include <stdio.h>
/* Copyright 2002,2003 Nick Mathewson, Roger Dingledine */
/* See LICENSE for licensing information */
/* $Id$ */
+const char fakepoll_c_id[] = "$Id$";
/**
* \file fakepoll.c
#ifndef __FAKEPOLL_H
#define __FAKEPOLL_H
+#define FAKEPOLL_H_ID "$Id$"
/**
* \file fakepoll.h
/* Copyright 2001,2002,2003 Roger Dingledine, Matej Pfajfar. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char log_c_id[] = "$Id$";
/**
* \file log.c
**/
#ifndef __LOG_H
-
-/**
- * \file log.h
- * \brief Headers for log.c
- */
+#define LOG_H_ID "$Id$"
#include "../common/compat.h"
#ifndef __TEST_H
#define __TEST_H
+#define TEST_H_ID "$Id$"
/**
* \file test.h
/* Copyright 2004 Roger Dingledine */
/* See LICENSE for licensing information */
/* $Id$ */
+const char torgzip_c_id[] = "$Id$";
/**
* \file torgzip.c
#ifndef __TORGZIP_H
#define __TORGZIP_H
+#define TORGZIP_H_ID "$Id$"
typedef enum { GZIP_METHOD=1, ZLIB_METHOD=2 } compress_method_t;
#ifndef __TORINT_H
#define __TORINT_H
+#define TORINT_H_ID "$Id$"
#include "orconfig.h"
/* Copyright 2003 Roger Dingledine. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char tortls_c_id[] = "$Id$";
/**
* \file tortls.c
#ifndef _TORTLS_H
#define _TORTLS_H
+#define TORTLS_H_ID "$Id$"
/**
* \file tortls.h
/* Copyright 2003 Roger Dingledine */
/* See LICENSE for licensing information */
/* $Id$ */
+const char util_c_id[] = "$Id$";
/**
* \file util.c
#ifndef __UTIL_H
#define __UTIL_H
+#define UTIL_H_ID "$Id$"
#include "orconfig.h"
#include "torint.h"
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char buffers_c_id[] = "$Id$";
/**
* \file buffers.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char circuitbuild_c_id[] = "$Id$";
/**
* \file circuitbuild.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char circuitlist_c_id[] = "$Id$";
/**
* \file circuitlist.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char circuituse_c_id[] = "$Id$";
/**
* \file circuituse.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char command_c_id[] = "$Id$";
/**
* \file command.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char config_c_id[] = "$Id$";
/**
* /file config.c
#ifdef MS_WINDOWS
#include <shlobj.h>
#endif
+#include "../common/aes.h"
/** Enumeration of types which option values can take */
typedef enum config_type_t {
static uint64_t config_parse_memunit(const char *s, int *ok);
static int config_parse_interval(const char *s, int *ok);
+static void print_cvs_version(void);
/*
* Functions to read and write the global options pointer.
if (argc > 1 && (!strcmp(argv[1],"--version"))) {
printf("Tor version %s.\n",VERSION);
+ if (argc > 2 && (!strcmp(argv[2],"--version"))) {
+ print_cvs_version();
+ }
exit(0);
}
return (int)r;
}
+static void
+print_cvs_version(void)
+{
+ extern const char aes_c_id[];
+ extern const char compat_c_id[];
+ extern const char container_c_id[];
+ extern const char crypto_c_id[];
+ extern const char fakepoll_c_id[];
+ extern const char log_c_id[];
+ extern const char torgzip_c_id[];
+ extern const char tortls_c_id[];
+ extern const char util_c_id[];
+
+ extern const char buffers_c_id[];
+ extern const char circuitbuild_c_id[];
+ extern const char circuitlist_c_id[];
+ extern const char circuituse_c_id[];
+ extern const char command_c_id[];
+ extern const char config_c_id[];
+ extern const char connection_c_id[];
+ extern const char connection_edge_c_id[];
+ extern const char connection_or_c_id[];
+ extern const char control_c_id[];
+ extern const char cpuworker_c_id[];
+ extern const char directory_c_id[];
+ extern const char dirserv_c_id[];
+ extern const char dns_c_id[];
+ extern const char hibernate_c_id[];
+ extern const char main_c_id[];
+ extern const char onion_c_id[];
+ extern const char relay_c_id[];
+ extern const char rendclient_c_id[];
+ extern const char rendcommon_c_id[];
+ extern const char rendmid_c_id[];
+ extern const char rendservice_c_id[];
+ extern const char rephist_c_id[];
+ extern const char router_c_id[];
+ extern const char routerlist_c_id[];
+ extern const char routerparse_c_id[];
+
+ puts(AES_H_ID);
+ puts(COMPAT_H_ID);
+ puts(CONTAINER_H_ID);
+ puts(CRYPTO_H_ID);
+ puts(FAKEPOLL_H_ID);
+ puts(LOG_H_ID);
+ puts(TORGZIP_H_ID);
+ puts(TORINT_H_ID);
+ puts(TORTLS_H_ID);
+ puts(UTIL_H_ID);
+ puts(aes_c_id);
+ puts(compat_c_id);
+ puts(container_c_id);
+ puts(crypto_c_id);
+ puts(fakepoll_c_id);
+ puts(log_c_id);
+ puts(torgzip_c_id);
+ puts(tortls_c_id);
+ puts(util_c_id);
+
+ puts(OR_H_ID);
+ puts(buffers_c_id);
+ puts(circuitbuild_c_id);
+ puts(circuitlist_c_id);
+ puts(circuituse_c_id);
+ puts(command_c_id);
+ puts(config_c_id);
+ puts(connection_c_id);
+ puts(connection_edge_c_id);
+ puts(connection_or_c_id);
+ puts(control_c_id);
+ puts(cpuworker_c_id);
+ puts(directory_c_id);
+ puts(dirserv_c_id);
+ puts(dns_c_id);
+ puts(hibernate_c_id);
+ puts(main_c_id);
+ puts(onion_c_id);
+ puts(relay_c_id);
+ puts(rendclient_c_id);
+ puts(rendcommon_c_id);
+ puts(rendmid_c_id);
+ puts(rendservice_c_id);
+ puts(rephist_c_id);
+ puts(router_c_id);
+ puts(routerlist_c_id);
+ puts(routerparse_c_id);
+}
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char connection_c_id[] = "$Id$";
/**
* \file connection.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char connection_edge_c_id[] = "$Id$";
/**
* \file connection_edge.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char connection_or_c_id[] = "$Id$";
/**
* \file connection_or.c
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char control_c_id[] = "$Id$";
/**
* /file control.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char cpuworker_c_id[] = "$Id$";
/**
* \file cpuworker.c
/* Copyright 2001-2004 Roger Dingledine.
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
-
-/* See LICENSE for licensing information */
/* $Id$ */
+const char directory_c_id[] = "$Id$";
#include "or.h"
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char dirserv_c_id[] = "$Id$";
#include "or.h"
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char dns_c_id[] = "$Id$";
/**
* \file dns.c
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char hibernate_c_id[] = "$Id$";
/**
* \file hibernate.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char main_c_id[] = "$Id$";
/**
* \file main.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char onion_c_id[] = "$Id$";
/**
* \file onion.c
#ifndef __OR_H
#define __OR_H
+#define OR_H_ID "$Id$"
#include "orconfig.h"
#ifdef MS_WINDOWS
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char relay_c_id[] = "$Id$";
/**
* \file relay.c
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char rendclient_c_id[] = "$Id$";
/**
* \file rendclient.c
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char rendcommon_c_id[] = "$Id$";
/**
* \file rendcommon.c
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char rendmid_c_id[] = "$Id$";
/**
* \file rendmid.c
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char rendservice_c_id[] = "$Id$";
/**
* \file rendservice.c
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char rephist_c_id[] = "$Id$";
/**
* \file rephist.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char router_c_id[] = "$Id$";
#include "or.h"
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char routerlist_c_id[] = "$Id$";
#include "or.h"
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char routerparse_c_id[] = "$Id$";
/**
* \file routerparse.c
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char test_c_id[] = "$Id$";
#include <stdio.h>
#ifdef HAVE_FCNTL_H
/* Copyright 2001-2004 Roger Dingledine. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char tor_main_c_id[] = "$Id$";
/**
* \file tor_main.c