Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ else ()
set (CMAKE_C_STANDARD 99)
endif ()

set(VERSION 0.2.0)
set(VERSION 0.2.1)

option(DEBUG "compile with debug symbol" OFF)
option(BUNDLE_CIVETWEB "bundle civetweb with uts-server" OFF)
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelogs
==========

0.2.1
-----

* [fix ] fix compilation for newer GCC (>10.2) (global variable definition issue

0.2.0
-----

Expand Down
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ Micro `RFC 3161 Time-Stamp <https://www.ietf.org/rfc/rfc3161.txt>`_ server writt

----

Demo
----

A demo is accessible here: https://uts-server.kakwalab.ovh/

License
-------

Expand Down
1 change: 0 additions & 1 deletion inc/http.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ int http_server_start(char *conffile, char *conf_wd, bool stdout_dbg);
#define STATIC_PAGE \
"HTTP/1.1 200 OK\r\n" \
"Content-Type: text/html\r\n" \
"Content-Length: 2774\r\n" \
"\r\n" \
"<html>" \
"<head>" \
Expand Down
4 changes: 0 additions & 4 deletions inc/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ int set_params(rfc3161_context *ct, char *conf_file, char *conf_wd);
static char *rand_string(char *str, size_t size);
void free_uts_context(rfc3161_context *ct);
const char *null_undef(const char *in);

// some global variable to handle signals
int g_uts_sig_up;
int g_uts_sig;
3 changes: 3 additions & 0 deletions src/lib/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include <time.h>
#include <unistd.h>

extern int g_uts_sig_up;
extern int g_uts_sig;

static char *rand_string(char *str, size_t size) {
const char charset[] = "1234567890ABCDEF";
if (size) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/rfc3161.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ int create_response(rfc3161_context *ct, char *query, int query_len,
BN_free(serial_bn);
} else {
serial_hex = calloc(SERIAL_ID_SIZE, sizeof(char));
strncpy(serial_hex, " NO ID ", SERIAL_ID_SIZE + 2);
strncpy(serial_hex, " NO ID ", SERIAL_ID_SIZE + 4);
}
#endif
#ifdef OPENSSL_API_1_0
Expand Down
4 changes: 4 additions & 0 deletions src/lib/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
#include <syslog.h>
#include <unistd.h>

// some global variable to handle signals
int g_uts_sig_up;
int g_uts_sig;

static void signal_handler_general(int sig_num) {
g_uts_sig = sig_num;
}
Expand Down