Browse Source

fixing compilation errors and warnings

master
kakwa 1 year ago
parent
commit
4975f90af6
  1. 4
      inc/utils.h
  2. 3
      src/lib/http.c
  3. 2
      src/lib/rfc3161.c
  4. 4
      src/lib/utils.c

4
inc/utils.h

@ -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
src/lib/http.c

@ -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) {

2
src/lib/rfc3161.c

@ -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

4
src/lib/utils.c

@ -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…
Cancel
Save