mirror of
https://github.com/kakwa/uts-server
synced 2024-12-04 15:05:54 +01:00
fixing compilation errors and warnings
This commit is contained in:
parent
86d9094cca
commit
4975f90af6
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -269,7 +269,7 @@ end:
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user