blob: b3c998f8bcddd60659d2a40d4c6f472430607f01 [file] [log] [blame]
/* Copyright (c) 2013, Jacob Appelbaum
* Copyright (c) 2012, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file tlsdate.h
* \brief The main header for our clock helper.
**/
#ifndef TLSDATE_H
#define TLSDATE_H
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <time.h>
#include <unistd.h>
#define UNPRIV_USER "nobody"
#define DEFAULT_HOST "www.ptb.de"
#define DEFAULT_PORT "443"
#define DEFAULT_PROTOCOL "tlsv1"
#define DEFAULT_CERTDIR "/etc/ssl/certs"
/** The current version of tlsdate. */
#define tlsdate_version "0.1"
/** This is where we store parsed commandline options. */
typedef struct {
int verbose;
int ca_racket;
int help;
int showtime;
int setclock;
time_t manual_time;
char *host;
char *port;
char *protocol;
} tlsdate_options_t;
#endif /* TLSDATE_H */