1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
8 * @file tor_version_st.h
9 * @brief Parsed Tor version structure.
12 #ifndef TOR_VERSION_ST_H
13 #define TOR_VERSION_ST_H
15 #define MAX_STATUS_TAG_LEN 32
16 /** Structure to hold parsed Tor versions. This is a little messier
17 * than we would like it to be, because we changed version schemes with 0.1.0.
19 * See version-spec.txt for the whole business.
21 struct tor_version_t
{
25 /** Release status. For version in the post-0.1 format, this is always
27 enum { VER_PRE
=0, VER_RC
=1, VER_RELEASE
=2, } status
;
29 char status_tag
[MAX_STATUS_TAG_LEN
];
33 char git_tag
[DIGEST_LEN
];
36 #endif /* !defined(TOR_VERSION_ST_H) */